Re: Tomcat hosting issue/bug:

2023-06-20 Thread Virendra Barad
Dear Thomas, I have multiple application with jdk-1.8. And i have alredy checked there is no log printed of any files like stdout, stderror, etc... it's only buffering for particular that application. I hope this will help you to understand problem. Thanks & Regards, Virendra Barad Software

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Christopher Schultz
Dan, On 6/20/23 11:32, Dan McLaughlin wrote: When I attach with a debugger, I can see what's causing it not to work. When the Web Application is started, then request.getContext(); returns the correct Web Application context, but when the application is stopped, request.getContext(); returns

Re: Tomcat 9 returns INameEnvironment error

2023-06-20 Thread Christopher Schultz
Joel, On 6/19/23 15:28, Joel Griffith wrote: I found a workaround that I'll post here in case anyone with the same problem stumbles on this thread. The fix is to install the older `libeclipse-jdt-core-java` JDT package from the Ubuntu 20.04 repo. 1. Add the line `deb

Re: Words of Wisdom re: Context Versioning - Parallel Deployment

2023-06-20 Thread Christopher Schultz
Dan, On 6/16/23 12:54, Dan McLaughlin wrote: Does anyone have any advice on implementing Context Versioning (parallel deployment) in Tomcat? It seems to have been a feature for quite some time. Is it stable? What are the typical issues people run into? JMX issues? Classloader issues? It

Re: AW: Deploying Multiple versions of Apache Tomcat on the same physical server/Machine

2023-06-20 Thread Christopher Schultz
Alex, On 6/14/23 15:28, a.grub...@bluewin.ch wrote: To be honest, on a production server, I would never install more than one application - of course, if possible. Just the fact, when the server dies, what do you do then? When it is a critical product, then distribute it. Technically, I

Re: Deploying Multiple versions of Apache Tomcat on the same physical server/Machine

2023-06-20 Thread Christopher Schultz
Shakila, On 6/14/23 12:33, Shakila Rajaiah wrote: I have several java applications running on different production servers. I have the first production server set up to run Java 1.8 and  apache-tomcat-9.0.46. I have the second production server set up to run Java 11 and  apache-tomcat-10.0.27

Re: Conclusion - Re: Crypto Randomly Not Getting Initialized

2023-06-20 Thread Christopher Schultz
Jerry, On 6/15/23 00:41, Jerry Malcolm wrote: On 6/13/2023 3:46 PM, Jerry Malcolm wrote: On 6/13/2023 12:39 PM, Jerry Malcolm wrote: Rob, On 6/13/2023 11:34 AM, Rob Sargent wrote: In /etc/rc.local I have: -- sleep 120s systemctl start tomcat9 -

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
FYI... Here is the valve I finally came up with that seems to work. import org.apache.catalina.*; import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; import org.apache.catalina.valves.ValveBase; import jakarta.servlet.ServletException; import

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
One thing I just tested was to undeploy the ROOT context, which is how we run anyways, and this causes request.getContext() to return null, which with the code, as is, results in a null pointer and a 500 being thrown--which inadvertently would cause mod_jk to retry on another node. I don't like

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
Mark, What are your thoughts on changing the Tomcat codebase to return a 503 instead of a 404 if a context is marked as distributable or if clustering is enabled and deployed but stopped? When I did searches years ago on this issue, most people at the time would recommend adding 404 to the

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
We typically don't deploy a ROOT context in our production environments--for no other reason than making it more difficult to poke around. I'll look at that as an option. Thanks for the tips. -- Thanks, Dan On Tue, Jun 20, 2023 at 10:28 AM Mark Thomas wrote: > On 20/06/2023 15:41, Dan

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
When I attach with a debugger, I can see what's causing it not to work. When the Web Application is started, then request.getContext(); returns the correct Web Application context, but when the application is stopped, request.getContext(); returns the ROOT context, which is up, so the 404 is

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Mark Thomas
On 20/06/2023 15:41, Dan McLaughlin wrote: So I tried to create a Valve to check to see if the application is stopped and convert the 404 response to a 503, but I haven't had any luck getting it to work. Is there another internal API that I should be using? context.getState().isAvailable ways

Re: Tomcat hosting issue/bug:

2023-06-20 Thread Mark Thomas
On 20/06/2023 14:36, Virendra Barad wrote: Dear Team, I have hosted multiple application in tomcat server 9.0.73, But after some time one application continually stop responding or stop working after 1 or 2 hours however other application works fine. Please guide me what can i do for

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-20 Thread Dan McLaughlin
So I tried to create a Valve to check to see if the application is stopped and convert the 404 response to a 503, but I haven't had any luck getting it to work. Is there another internal API that I should be using? context.getState().isAvailable ways seems to report the app is available even

Tomcat hosting issue/bug:

2023-06-20 Thread Virendra Barad
Dear Team, I have hosted multiple application in tomcat server 9.0.73, But after some time one application continually stop responding or stop working after 1 or 2 hours however other application works fine. Please guide me what can i do for resolving this issue. Looking for your assistance.