Re: Tomcat 9 data source configuration error

2023-06-13 Thread Ying Jin
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 application in Eclipse with JDK 11. Please see

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
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 that for some reason 'fixed' this same

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
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 that for some reason 'fixed' this same random, intermittent crypto file exception. You

RE: Informal CIS Benchmark question

2023-06-13 Thread jonmcalexander
Thank you Mark! I appreciate how your summations on many of these match mine. Smh. :-) Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Simon Matter
Hi, > Jerry, > > On 6/13/23 11:42, Jerry Malcolm wrote: >> Simon, >> >> On 6/13/2023 2:20 AM, Simon Matter wrote: >>> Hi, >>> I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Rob Sargent
In /etc/rc.local I have: -- sleep 120s systemctl start tomcat9 - I put the sleep in back a couple of years ago that for some reason 'fixed' this same random, intermittent crypto file exception. You mentioned earlier that you had recently tried a 3

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
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 cryptographic mechanism       at

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
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 cryptographic mechanism       at

Re: Is it possible to use the PersistentManager with the DeltaManager?

2023-06-13 Thread Christopher Schultz
Manak, On 6/12/23 11:59, Manak Bisht wrote: I am using the DeltaManager to support non-sticky sessions. Every node has a copy of the session information, therefore, there's no issues with this setup in a live application. However, sometimes, in a new build, there are changes which require

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Christopher Schultz
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 cryptographic mechanism       at java.base/javax.crypto.JceSecurity.(JceSecurity.java:120) ... 86 mo Caused

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Christopher Schultz
Jerry, On 6/13/23 11:42, Jerry Malcolm wrote: Simon, On 6/13/2023 2:20 AM, Simon Matter wrote: Hi, I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird errors that the "Crypto Mechanism"

Re: AW: AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Thomas, On 6/13/2023 10:45 AM, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello Jerry, -Ursprüngliche Nachricht- Von: Jerry Malcolm Gesendet: Dienstag, 13. Juni 2023 17:35 An: users@tomcat.apache.org Betreff: Re: AW: Crypto Randomly Not Getting Initialized Hi Thomas, On 6/13/2023

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Reg, On 6/13/2023 2:57 AM, r.barc...@habmalnefrage.de wrote: Hey Jerry, Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism     at java.base/javax.crypto.JceSecurity.(JceSecurity.java:120) ... 86 mo Caused by: java.lang.SecurityException: Can't read

AW: AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Jerry, > -Ursprüngliche Nachricht- > Von: Jerry Malcolm > Gesendet: Dienstag, 13. Juni 2023 17:35 > An: users@tomcat.apache.org > Betreff: Re: AW: Crypto Randomly Not Getting Initialized > > Hi Thomas, > > On 6/13/2023 2:08 AM, Thomas Hoffmann (Speed4Trade GmbH) wrote: > > Hello

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Simon, On 6/13/2023 2:20 AM, Simon Matter wrote: Hi, I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird errors that the "Crypto Mechanism" failed to initialize. Through a lot of trial and

Re: AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Hi Thomas, On 6/13/2023 2:08 AM, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello Jerry, -Ursprüngliche Nachricht- Von: Jerry Malcolm Gesendet: Dienstag, 13. Juni 2023 08:50 An: users@tomcat.apache.org Betreff: Crypto Randomly Not Getting Initialized I am running Tomcat 9.0.56 in

Re: Informal CIS Benchmark question

2023-06-13 Thread Mark Thomas
On 13/06/2023 15:07, Christopher Schultz wrote: On 6/12/23 15:52, Mark Thomas wrote: On 12/06/2023 19:13, jonmcalexan...@wellsfargo.com.INVALID wrote: I'm asking because we are doing a review of our base settings. We are using the CIS Benchmarks as a verification. One of these states to set

Re: Informal CIS Benchmark question

2023-06-13 Thread Christopher Schultz
Mark, On 6/12/23 15:52, Mark Thomas wrote: On 12/06/2023 19:13, jonmcalexan...@wellsfargo.com.INVALID wrote: I'm asking because we are doing a review of our base settings. We are using the CIS Benchmarks as a verification. One of these states to set matadata-complete to true. We have never

Re: How to implement a cluster with static membership when the StaticMembershipService does not exist in tomcat 8.5?

2023-06-13 Thread Mark Thomas
On 12/06/2023 21:04, Manak Bisht wrote: But then why do both of them exist in later tomcat versions? *StaticMembershipInterceptor *is not deprecated. In tomcat 9 (example - https://people.apache.org/~markt/dev/server-static-cluster-example.xml), only StaticMembershipService seems to be used. Do

Re: Error "Unable to send message through cluster sender" in a cluster with static members using delta manager

2023-06-13 Thread Mark Thomas
On 12/06/2023 21:00, Manak Bisht wrote: On Tue, Jun 13, 2023 at 1:26 AM Mark Thomas wrote: Try https://people.apache.org/~markt/dev/cluster-test.war instead. Mark Sure, I will give that a try. But is there some issue with the *carts.jsp *example? Or is it not meant for this purpose? The

Re: Is it possible to use the PersistentManager with the DeltaManager?

2023-06-13 Thread Mark Thomas
On 13/06/2023 08:07, Manak Bisht wrote: Is it not possible to extract the sessions from the servlet container in my application code? I could elect a node to schedule a periodic serialization to a data store. On restarts, I could deserialize from this store to inject the sessions back into the

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread r . barclay
Hey Jerry, > Caused by: java.lang.SecurityException: Can not initialize cryptographic > mechanism >     at > java.base/javax.crypto.JceSecurity.(JceSecurity.java:120) ... 86 mo > Caused by: java.lang.SecurityException: Can't read cryptographic policy > directory: unlimited Does this

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Simon Matter
Hi, > I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon > Linux2 in a production environment.  A couple of years ago, we started > getting weird errors that the "Crypto Mechanism" failed to initialize.  > Through a lot of trial and error, and reasons I don't quite remember, we

AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Jerry, > -Ursprüngliche Nachricht- > Von: Jerry Malcolm > Gesendet: Dienstag, 13. Juni 2023 08:50 > An: users@tomcat.apache.org > Betreff: Crypto Randomly Not Getting Initialized > > I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon > Linux2 in a production

Re: Is it possible to use the PersistentManager with the DeltaManager?

2023-06-13 Thread Manak Bisht
Is it not possible to extract the sessions from the servlet container in my application code? I could elect a node to schedule a periodic serialization to a data store. On restarts, I could deserialize from this store to inject the sessions back into the servlet container. I would handle the

Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird errors that the "Crypto Mechanism" failed to initialize.  Through a lot of trial and error, and reasons I don't quite remember, we put a