[GitHub] [tomcat] ChristopherSchultz commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
ChristopherSchultz commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-955018111 Your test-case looks even more complicated than necessary: just initialize two of them then deinitialize them. No shutdown hook necessary, right? Okay, so it's not

[GitHub] [tomcat] michael-o commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954959277 @ChristopherSchultz Here is an extremely primitive test case: ```java public class TomcatEmbeddedTest { static class ShutdownHook2 extends Thread {

[GitHub] [tomcat] michael-o commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954947125 > > > > [...] so the second Tomcat now shuts down APR globally, releasing the global structures. The first Tomcat is now shutting down, its `AprConnector` tries to use a

[GitHub] [tomcat] ChristopherSchultz edited a comment on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
ChristopherSchultz edited a comment on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954934999 > [...] so the second Tomcat now shuts down APR globally, releasing the global structures. The first Tomcat is now shutting down, its `AprConnector` tries to use

[GitHub] [tomcat] ChristopherSchultz commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
ChristopherSchultz commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954934999 > [...] so the second Tomcat now shuts down APR globally, releasing the global structures. The first Tomcat is now shutting down, its `AprConnector` tries to use a sub A

[GitHub] [tomcat] michael-o commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954912903 @wilkinsona Correct. The connector on main Tomcat is still active while APR is already gone. -- This is an automated message from the Apache Git Service. To respond to the mess

[GitHub] [tomcat] wilkinsona commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
wilkinsona commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954908926 I agree, @ChristopherSchultz. IMO, the second `AprLifecycleListener` should not be shutting down APR if it did nothing when asked to initialize it. The ordering in Spring

[GitHub] [tomcat] michael-o commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954898919 > > > Something is wrong with the premise, here. I read through [Spring-28472](https://github.com/spring-projects/spring-boot/issues/28472) and looked at the code for `Ap

[GitHub] [tomcat] ChristopherSchultz commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
ChristopherSchultz commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954890217 Something is wrong with the premise, here. I read through [Spring-28472](https://github.com/spring-projects/spring-boot/issues/28472) and looked at the code for `AprLife

Re: When did the path attribute in Context.xml go?

2021-10-29 Thread Mark Thomas
On 29/10/2021 11:56, Jochen Wiedmann wrote: Hi, Mark, yes, I *did* try to read the documentation. Problem is, if you don't know exactly, what you are looking for, things are hard to found. (The word "path" is used frequently, so Google won't help.) If you are looking for an explanation of a

[GitHub] [tomcat] michael-o edited a comment on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o edited a comment on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954648720 > > > This feels like a step forwards, but ideally one that will be reverted in the future as AprLifecycleListener is made more robust. It's difficult to gauge the

[GitHub] [tomcat] michael-o commented on a change in pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on a change in pull request #456: URL: https://github.com/apache/tomcat/pull/456#discussion_r739135782 ## File path: java/org/apache/catalina/core/AprLifecycleListener.java ## @@ -38,6 +38,13 @@ /** * Implementation of LifecycleListener that will init and

[GitHub] [tomcat] michael-o commented on a change in pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on a change in pull request #456: URL: https://github.com/apache/tomcat/pull/456#discussion_r739135782 ## File path: java/org/apache/catalina/core/AprLifecycleListener.java ## @@ -38,6 +38,13 @@ /** * Implementation of LifecycleListener that will init and

[GitHub] [tomcat] michael-o commented on pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o commented on pull request #456: URL: https://github.com/apache/tomcat/pull/456#issuecomment-954648720 > > > This feels like a step forwards, but ideally one that will be reverted in the future as AprLifecycleListener is made more robust. It's difficult to gauge the need f

Re: When did the path attribute in Context.xml go?

2021-10-29 Thread Jochen Wiedmann
Hi, Mark, yes, I *did* try to read the documentation. Problem is, if you don't know exactly, what you are looking for, things are hard to found. (The word "path" is used frequently, so Google won't help.) that said: Thanks for your reply, which provided all the information, that I need. Joc

[GitHub] [tomcat] wilkinsona commented on a change in pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
wilkinsona commented on a change in pull request #456: URL: https://github.com/apache/tomcat/pull/456#discussion_r739128184 ## File path: java/org/apache/catalina/core/AprLifecycleListener.java ## @@ -38,6 +38,13 @@ /** * Implementation of LifecycleListener that will init an

Re: When did the path attribute in Context.xml go?

2021-10-29 Thread Mark Thomas
On 29/10/2021 10:22, Jochen Wiedmann wrote: Hi, I am an occasional contributor to the Tomcat Eclipse Plugin [1]. One nice thing, that the plugin does is, that it creates a Context.xml for you, so that you can have the webapp in-place while developing. Right now, that Context.xml would look like

When did the path attribute in Context.xml go?

2021-10-29 Thread Jochen Wiedmann
Hi, I am an occasional contributor to the Tomcat Eclipse Plugin [1]. One nice thing, that the plugin does is, that it creates a Context.xml for you, so that you can have the webapp in-place while developing. Right now, that Context.xml would look like this: Well, with recent Tomcat versions, th

[GitHub] [tomcat] michael-o opened a new pull request #456: Document conditions under which the AprLifecycleListener can be used …

2021-10-29 Thread GitBox
michael-o opened a new pull request #456: URL: https://github.com/apache/tomcat/pull/456 …to avoid JVM crashes This basically document cases to avoid issues like https://github.com/spring-projects/spring-boot/issues/28472 -- This is an automated message from the Apache Git Servi

[tomcat] branch 8.5.x updated: Improve robustness

2021-10-29 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/8.5.x by this push: new 240e93e Improve robustness 240e93e is described bel

[tomcat] branch 9.0.x updated: Improve robustness

2021-10-29 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/9.0.x by this push: new 0df6494 Improve robustness 0df6494 is described bel

[tomcat] branch 10.0.x updated: Improve robustness

2021-10-29 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/10.0.x by this push: new 0781316 Improve robustness 0781316 is described b

[tomcat] branch main updated: Improve robustness

2021-10-29 Thread remm
This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git The following commit(s) were added to refs/heads/main by this push: new 67743cd Improve robustness 67743cd is described below