Conclusion - Re: Crypto Randomly Not Getting Initialized

2023-06-14 Thread Jerry Malcolm
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 - I put the sleep in back a couple of years ago

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-14 Thread Dan McLaughlin
Hey Mark, Thanks for the information and quick response! The typical use case is either during a hot redeployment of an application; we don't use the application context versions only because we had issues with it in the past, but the last time I tried it was years ago. If I remember correctly,

Re: Tomcat 9, websocket server, threading

2023-06-14 Thread Nikolai Zhubr
Hi Mark, On 6/14/23 19:43, Mark Thomas wrote: There are multiple things that do not make sense in the above paragraph. It well might be. Tomcat is quite large and complicated, I have not dig it through really thoroughly yet, that's why I asked here. Servlets play no role in processing

Re: Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-14 Thread Mark Thomas
On 14/06/2023 19:49, Dan McLaughlin wrote: Hello, This is probably a question that would be better suited for the dev list, but I thought I'd start here first. That depends. It is generally better to start on the users list. Does anyone understand the reasoning behind why Tomcat, when

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

2023-06-14 Thread a.grubner
Hello 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 cannot tell you - but just from this point of view,

Tomcat Clustering, Mod_JK, Fail_on_Status, Stopped Application

2023-06-14 Thread Dan McLaughlin
Hello, This is probably a question that would be better suited for the dev list, but I thought I'd start here first. Does anyone understand the reasoning behind why Tomcat, when clustered, throws an HTTP status 404 and not a 503 when you have an application deployed but stopped or paused? What's

Re: Tomcat 9 data source configuration error

2023-06-14 Thread Ying Jin
Great! Thomas, thanks for your clarification. best, Jenny On Wed, Jun 14, 2023 at 10:13 AM Thomas Hoffmann (Speed4Trade GmbH) wrote: > Hello Jenny, > > yes, endorsed was deprecated and removed from java 11 onwards: > >

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Nitish Chitta
Thanks for the help. Nitish On Wed, Jun 14, 2023 at 9:57 PM Mark Thomas wrote: > Call TomcatURLStreamHandlerFactory.disable() before you start Tomcat. > > Note that this means that if your Tomcat instance is using WAR files it > will only work if the WAR files are unpacked to a directory

Re: Crypto Randomly Not Getting Initialized

2023-06-14 Thread Christopher Schultz
Jerry, On 6/13/23 12:25, Jerry Malcolm wrote: Chris, On 6/13/2023 11:03 AM, Christopher Schultz wrote: Jerry, On 6/13/23 11:51, Jerry Malcolm wrote: Reg, On 6/13/2023 2:57 AM, r.barc...@habmalnefrage.de wrote: Hey Jerry, Caused by: java.lang.SecurityException: Can not initialize

Re: Tomcat 9, websocket server, threading

2023-06-14 Thread Mark Thomas
On 14/06/2023 15:21, Nikolai Zhubr wrote: Hi all, I'm trying to migrate my servlet previously running on Tomcat 7 for ages, to Tomcat 9.0.36 as per openSuse 15.4, and facing some problem. The servlet in question is using websocket, basically as a security-enhanced http-friendly replacement

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

2023-06-14 Thread Shakila Rajaiah
Dear Team, 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 due to different programming needs that

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Mark Thomas
Call TomcatURLStreamHandlerFactory.disable() before you start Tomcat. Note that this means that if your Tomcat instance is using WAR files it will only work if the WAR files are unpacked to a directory first. Mark On 14/06/2023 14:51, Nitish Chitta wrote: Please let me know in case a more

AW: Tomcat 9 data source configuration error

2023-06-14 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Jenny, yes, endorsed was deprecated and removed from java 11 onwards: https://docs.oracle.com/en/java/javase/11/migrate/index.html#JSMIG-GUID-8E83E51A-88A3-4E9A-8E2A-66E1D66A966C Greetings, Thoma > -Ursprüngliche Nachricht- > Von: Ying Jin > Gesendet: Mittwoch, 14. Juni 2023

Re: Tomcat 9 data source configuration error

2023-06-14 Thread Ying Jin
I think I found solution of this problem. It seems that this is a bug of older version of eclipse WTP. I removed the endorsed directory argument from the debug configuration and it works now. Thanks, Jenny On Wed, Jun 14, 2023 at 9:43 AM Ying Jin wrote: > The tomcat server can’t be started in

Re: Tomcat 9 data source configuration error

2023-06-14 Thread Ying Jin
The tomcat server can’t be started in Eclipse due to following error when JDK 11 is used: -Djava.endorsed.dirs=C:\ApacheTomcat 9.0.75\apache-tomcat-9.0.75\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.

Tomcat 9, websocket server, threading

2023-06-14 Thread Nikolai Zhubr
Hi all, I'm trying to migrate my servlet previously running on Tomcat 7 for ages, to Tomcat 9.0.36 as per openSuse 15.4, and facing some problem. The servlet in question is using websocket, basically as a security-enhanced http-friendly replacement of plain-old TCP socket. That is, as a

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Nitish Chitta
Please let me know in case a more detailed stack trace is required. Nitish On Wed, Jun 14, 2023 at 6:10 PM Nitish Chitta wrote: > Missed Tomcat 7 version : 7.0.94 > > Nitish > > On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta wrote: > >> Tomcat version : 9.0.44 >> Stack Trace : >> >> Caused by:

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Nitish Chitta
Missed Tomcat 7 version : 7.0.94 Nitish On Wed, Jun 14, 2023 at 5:10 PM Nitish Chitta wrote: > Tomcat version : 9.0.44 > Stack Trace : > > Caused by: java.lang.Error: factory already defined > at java.net.URL.setURLStreamHandlerFactory(URL.java:1159) > at >

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Nitish Chitta
Tomcat version : 9.0.44 Stack Trace : Caused by: java.lang.Error: factory already defined at java.net.URL.setURLStreamHandlerFactory(URL.java:1159) at org.apache.catalina.webresources.TomcatURLStreamHandlerFactory.(TomcatURLStreamHandlerFactory.java:130) at

Re: Factory already defined error with Tomcat 9

2023-06-14 Thread Mark Thomas
On 14/06/2023 12:16, Nitish Chitta wrote: Hello, I am trying to connect to a Weblogic server and have an embedded Tomcat 9 instance running in my application as well. I suppose the factory is being set twice and hence I am getting this error. I wanted to know why this issue was not occuring

Factory already defined error with Tomcat 9

2023-06-14 Thread Nitish Chitta
Hello, I am trying to connect to a Weblogic server and have an embedded Tomcat 9 instance running in my application as well. I suppose the factory is being set twice and hence I am getting this error. I wanted to know why this issue was not occuring with Tomcat 7? Regards, Nitish

Re: Tomcat 9 data source configuration error

2023-06-14 Thread Mark Thomas
On 14/06/2023 00:20, Ying Jin wrote: Mark, Thanks for the tip. I've resolved this error by using the way you suggested along with the newer version of jdbc driver ojdbc8.jar and modified the connection url in the right format. However, I encountered another problem trying to run the