RE: EOL of servelet-api

2024-06-12 Thread Madhu Mitha (EXT-Nokia)
Hi Mark, We have done research as well before reaching you. Tomcat 10.x series is designed to run on JAVA 11 or later, but we are in JAVA 8 environment. Hence for clarification raised mail. Thanks, Madhu -Original Message- From: Mark Thomas Sent: Wednesday, June 12, 2024 3:36 PM To:

Re: EOL of servelet-api

2024-06-12 Thread Mark Thomas
On 12/06/2024 10:54, Madhu Mitha (EXT-Nokia) wrote: Hi, I'm currently using Apache Tomcat 9.0.86, in my component(JOMA) that runs in RHEL 8.6. Customer has triggered security scan and found servlet-api.jar has reached EOL in 2018 and the recommendation is to migrate to

EOL of servelet-api

2024-06-12 Thread Madhu Mitha (EXT-Nokia)
Hi, I'm currently using Apache Tomcat 9.0.86, in my component(JOMA) that runs in RHEL 8.6. Customer has triggered security scan and found servlet-api.jar has reached EOL in 2018 and the recommendation is to migrate to Jakarta-servelet-api.jar. So, when can we expect the changes from Tomcat.

Re: Side effect of Tomcat 10.1.20 with Freemarker

2024-06-12 Thread Jeroen Hoffman
On 11-Jun-24 18:28, Mark Thomas wrote: On 11/06/2024 12:30, Mark Thomas wrote: I need to confirm that it doesn't break the original fix but my plan is to check clazz after line 2311 and rethrow the original exception if it is null. Testing with the original reproducer looks good. Fixed

Re: Excluding specific files when creating WAR files?

2024-06-11 Thread Christopher Schultz
James, On 6/10/24 13:09, James H. H. Lampert wrote: Please forgive me if this is a RTFM issue, or if it's outside the scope of this List (and this isn't exactly the first time I've imposed upon the friendly nature of this List, knowing that it's a much more forgiving environment than a lot of

Re: Tomcat 9: Java 11 to Java 17

2024-06-11 Thread Christopher Schultz
Ryan, Word-wrapping didn't help on this one... On 6/10/24 15:44, Ryan Esch wrote: Hi folks,I have a webapp running Apache Tomcat 9.0.67 with Java 11, using JASPIC for authentication. For reference, using these:             org.apache.tomcat            tomcat-catalina            9.0.85      

Re: PKCS#8 encryption algorithm unrecognized

2024-06-11 Thread Christopher Schultz
Mark, On 6/10/24 14:56, Timothy Resh wrote: After much debugging, I have found the issue in my situation. In the server.xml file, you must put keystoreType="PKCS12" for it to recognize the keystore properly. That doesn't make any sense to me. Not a single one of your previous posts has been

Re: Mysterious websocket disconnection--no logs

2024-06-11 Thread Mark Thomas
On 09/06/2024 01:08, Flaviu Tamas wrote: I'm writing some tests for my Spring Boot application, which uses tomcat-embed-websocket-10.1.18. When I send a message to the socket from handleVideoFrame, all I see is .WebSocketAnnotationMethodMessageHandler : Invoking

Re: Side effect of Tomcat 10.1.20 with Freemarker

2024-06-11 Thread Mark Thomas
On 11/06/2024 12:30, Mark Thomas wrote: I need to confirm that it doesn't break the original fix but my plan is to check clazz after line 2311 and rethrow the original exception if it is null. Testing with the original reproducer looks good. Fixed in: - 11.0.x for 11.0.0-M21 onwards -

Re: Side effect of Tomcat 10.1.20 with Freemarker

2024-06-11 Thread Mark Thomas
On 07/06/2024 09:04, Jeroen Hoffman wrote: On 06-Jun-24 18:17, Mark Thomas wrote: On 06/06/2024 11:01, Jeroen Hoffman wrote: Hi all, We've found a side effect of change #68721 [1] in Tomcat 10.1.20 that we'd like to notify you about. We're using Apache Freemarker for back-end templating,

Re: Tomcat 9: Java 11 to Java 17

2024-06-10 Thread Chuck Caldarale
> On Jun 10, 2024, at 14:48, Paul Leo wrote: > > I could be wrong, but I don't think you need jakarta for Tomcat 9. You need > it for TomEE 9 and Tomcat 10. But please someone verify. Not sure about TomEE, but Tomcat 9 certainly expects javax.* classes, not jakarta.* ones; the use of

Re: Tomcat 9: Java 11 to Java 17

2024-06-10 Thread Paul Leo
I could be wrong, but I don't think you need jakarta for Tomcat 9.  You need it for TomEE 9 and Tomcat 10.  But please someone verify. On 6/10/2024 1:44 PM, Ryan Esch wrote: Hi folks,I have a webapp running Apache Tomcat 9.0.67 with Java 11, using JASPIC for authentication. For reference,

Tomcat 9: Java 11 to Java 17

2024-06-10 Thread Ryan Esch
Hi folks,I have a webapp running Apache Tomcat 9.0.67 with Java 11, using JASPIC for authentication. For reference, using these:             org.apache.tomcat            tomcat-catalina            9.0.85             org.apache.tomcat            catalina            6.0.53 This works.I need to

Re: PKCS#8 encryption algorithm unrecognized

2024-06-10 Thread Timothy Resh
After much debugging, I have found the issue in my situation. In the server.xml file, you must put keystoreType="PKCS12" for it to recognize the keystore properly. On Fri, Apr 5, 2024 at 4:27 AM Roberto Benedetti < roberto.benede...@dedalus.eu> wrote: > > I got the Object ID and version straight

Re: Excluding specific files when creating WAR files?

2024-06-10 Thread James H. H. Lampert
On 6/10/24 11:02 AM, Sebastian Trost wrote: On 10.06.2024 19:47, James H. H. Lampert wrote: Danke, Herr Trost. Gern geschehen, Herr Lampert. Alas, it doesn't look like WAR file generation is something we're doing with Maven: while at least one of our Eclipse projects has a pom.xml file, I

Re: Excluding specific files when creating WAR files?

2024-06-10 Thread Sebastian Trost
On 10.06.2024 19:47, James H. H. Lampert wrote: Danke, Herr Trost. Gern geschehen, Herr Lampert. Given that I can't remember the last time I personally generated a WAR file (although I'm pretty sure I've done it at least once), I haven't a clue. I think our development environment is

Re: Excluding specific files when creating WAR files?

2024-06-10 Thread James H. H. Lampert
On 6/10/24 10:23 AM, Sebastian Trost wrote: How do you generate your WAR files? With Maven? You should read the documentation at https://maven.apache.org/plugins/maven-war-plugin/examples/including-excluding-files-from-war.html Generally, WAR files are built on the ZIP file format. You can

Re: Excluding specific files when creating WAR files?

2024-06-10 Thread Sebastian Trost
On 10.06.2024 19:09, James H. H. Lampert wrote: Please forgive me if this is a RTFM issue, or if it's outside the scope of this List (and this isn't exactly the first time I've imposed upon the friendly nature of this List, knowing that it's a much more forgiving environment than a lot of

Excluding specific files when creating WAR files?

2024-06-10 Thread James H. H. Lampert
Please forgive me if this is a RTFM issue, or if it's outside the scope of this List (and this isn't exactly the first time I've imposed upon the friendly nature of this List, knowing that it's a much more forgiving environment than a lot of StackExchange forums are). I've just been alerted

Mysterious websocket disconnection--no logs

2024-06-08 Thread Flaviu Tamas
I'm writing some tests for my Spring Boot application, which uses tomcat-embed-websocket-10.1.18. When I send a message to the socket from handleVideoFrame, all I see is .WebSocketAnnotationMethodMessageHandler : Invoking VideoStreamController#handleVideoFrame[3 args]

RE: Re: Embedded Tomcat common classloader

2024-06-08 Thread Terence M. Bandoian
From the Oracle (Java 8) documentation: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html Class Path Wild Cards Class path entries can contain the base name wildcard character (*), which is considered equivalent to specifying a list of all of the files in

Re: Embedded Tomcat common classloader

2024-06-08 Thread Dave Breeze
hi first thank you for the insights. I did not realise that the wildcard was expanded by the shell. I thought this was handled by java itself. However in my instance the jvm is not being created by a shell but by a JNI wrapper. Originally this JNI wrapper included myDir/lib/*.jar in the classpath

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
Chuck, On 6/7/24 10:02, Chuck Caldarale wrote: On Jun 7, 2024, at 08:11, Christopher Schultz wrote: On 6/7/24 01:49, Mark Thomas wrote: On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt -

Re: Embedded Tomcat common classloader

2024-06-07 Thread Chuck Caldarale
> On Jun 7, 2024, at 08:11, Christopher Schultz > wrote: > > On 6/7/24 01:49, Mark Thomas wrote: >> On 06/06/2024 18:48, Dave Breeze wrote: >>> Thanks Mark >>> appreciate that the url was for 8.0 >>> >>> With regards to classpath that was my first attempt - unfortunately it >>> would seem

Re: PersistentManager and ClassNotFoundException

2024-06-07 Thread Christopher Schultz
Jakub, On 5/30/24 08:08, Jakub Królikowski wrote: Hi Christopher, On Thu, May 30, 2024 at 1:40 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Jakub, On 5/30/24 05:25, Jakub Królikowski wrote: Where is your configuration located? It *should* be inside your located in

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
Mark, On 6/7/24 01:49, Mark Thomas wrote: On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example

Re: 8443 connector configuration (tomcat9)

2024-06-07 Thread Christopher Schultz
Christoph, On 6/6/24 08:33, Christoph Kukulies wrote: I have the following configuration: |HAPROXY TOMCAT9 https://cms.site.org/ ==> https://cms.site.org:8443/ | Haproxy is passing the https-request through to tomcat. So far the request

Re: Side effect of Tomcat 10.1.20 with Freemarker

2024-06-07 Thread Jeroen Hoffman
On 06-Jun-24 18:17, Mark Thomas wrote: On 06/06/2024 11:01, Jeroen Hoffman wrote: Hi all, We've found a side effect of change #68721 [1] in Tomcat 10.1.20 that we'd like to notify you about. We're using Apache Freemarker for back-end templating, and its NodeModel class uses reflection to

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example dirpath/lib/*.jar - at least in version 9. The

Re: Webapp Getting redirected to an external IP Address

2024-06-06 Thread Tom Robinson
Hi Rubel, No, we are running on premises. Definitely not in the cloud. *Kind regards,* *Tom Robinson* *IT Manager/System Administrator* On Thu, 6 Jun 2024 at 12:32, Owen Rubel wrote: > Are you using this with a cloud service? > > This seems more like a misconfig of your setup. I have seen

Re: Embedded Tomcat common classloader

2024-06-06 Thread Dave Breeze
Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunately it would seem that Tomcat does not support wildcards in the classpath - for example dirpath/lib/*.jar - at least in version 9. Dave Breeze

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
On 06/06/2024 17:52, Dave Breeze wrote: I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html Those are the Tomcat 8.0.x docs. You are

Re: Side effect of Tomcat 10.1.20 with Freemarker

2024-06-06 Thread Mark Thomas
On 06/06/2024 11:01, Jeroen Hoffman wrote: Hi all, We've found a side effect of change #68721 [1] in Tomcat 10.1.20 that we'd like to notify you about. We're using Apache Freemarker for back-end templating, and its NodeModel class uses reflection to determine what classes to use for xpath,

Embedded Tomcat common classloader

2024-06-06 Thread Dave Breeze
I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. When the application is packaged into a single war file – the application loads and performs as expected (classes are fond in WEB-INF/lib. Due to some

8443 connector configuration (tomcat9)

2024-06-06 Thread Christoph Kukulies
I have the following configuration: HAPROXY TOMCAT9 https://cms.site.org/==> https://cms.site.org:8443/ Haproxy is passing the https-request through to tomcat. So far the request seems to arrive on the tomcat side but a secure connection can't be established since

Side effect of Tomcat 10.1.20 with Freemarker

2024-06-06 Thread Jeroen Hoffman
Hi all, We've found a side effect of change #68721 [1] in Tomcat 10.1.20 that we'd like to notify you about. We're using Apache Freemarker for back-end templating, and its NodeModel class uses reflection to determine what classes to use for xpath, thereby catching IllegalAccessError, see

Re: Webapp Getting redirected to an external IP Address

2024-06-05 Thread Owen Rubel
Are you using this with a cloud service? This seems more like a misconfig of your setup. I have seen this in AWS before where it routes to their internal IP due to a misconfiguration. Owen Rubel oru...@gmail.com On Tue, Jun 4, 2024 at 6:26 PM Tom Robinson wrote: > Hi Mark, > > On Tue, 4 Jun

Re: Invalid character found in the request target

2024-06-05 Thread Mark Thomas
On 04/06/2024 15:37, Christopher Schultz wrote: On 6/4/24 09:10, Chuck Caldarale wrote: The problem is the { and } characters. My reading of RFC 7230 is that { and } /should/ be allowed, but Tomcat's code rejects them by default. My reading is as follows: RFC 9110: http-URI = "http"

Re: Tomcat 9.0.xx JDK Version Support and EOL

2024-06-05 Thread Christopher Schultz
Chaitanya, On 6/5/24 09:11, Chaitanya Gopisetti wrote: Also can you update on the End of life expected date for Tomcat 9.0.x version -Original Message- From: Christopher Schultz Sent: Wednesday, June 5, 2024 6:37 PM To: users@tomcat.apache.org Subject: Re: Tomcat 9.0.xx JDK Version

Re: Tomcat 9.0.xx JDK Version Support and EOL

2024-06-05 Thread Mark Thomas
On 05/06/2024 15:11, Chaitanya Gopisetti wrote: Also can you update on the End of life expected date for Tomcat 9.0.x version Best guess (based on the next major release being in ~3 years time) right now is 31 March 2027 for 9.0.x noting that a 9.10.x will follow to retain supoprt for the

RE: Tomcat 9.0.xx JDK Version Support and EOL

2024-06-05 Thread Chaitanya Gopisetti
Also can you update on the End of life expected date for Tomcat 9.0.x version -Original Message- From: Christopher Schultz Sent: Wednesday, June 5, 2024 6:37 PM To: users@tomcat.apache.org Subject: Re: Tomcat 9.0.xx JDK Version Support and EOL Chaitanya, On 6/5/24 08:47, Chaitanya

Re: Tomcat 9.0.xx JDK Version Support and EOL

2024-06-05 Thread Christopher Schultz
Chaitanya, On 6/5/24 08:47, Chaitanya Gopisetti wrote: It was mentioned that Tomcat 9.0.x supports java 8 and later. So wanted to know whether it supports Jdk 21? Also wanted to know the End of life expected date for Tomcat 9.0.x version. Tomcat 9 should run jut fine on any Java version from

Tomcat 9.0.xx JDK Version Support and EOL

2024-06-05 Thread Chaitanya Gopisetti
Hi, It was mentioned that Tomcat 9.0.x supports java 8 and later. So wanted to know whether it supports Jdk 21? Also wanted to know the End of life expected date for Tomcat 9.0.x version. Regards, Chaitanya To the extent permitted by law, we may monitor electronic communications for the

Re: Webapp Getting redirected to an external IP Address

2024-06-04 Thread Tom Robinson
Hi Mark, On Tue, 4 Jun 2024 at 15:50, Mark Thomas wrote: > On 04/06/2024 05:07, Tom Robinson wrote: > > Hi, > > > > We are running a tomcat7 application > > You do realise that support for Tomcat 7 ended on 31 March 2021 don't you? > Yes, I do realise that tomcat7 is very old. We are running a

Re: Invalid character found in the request target

2024-06-04 Thread Christopher Schultz
Chuck, On 6/4/24 09:10, Chuck Caldarale wrote: On Jun 4, 2024, at 06:07, Christopher Schultz wrote: 04-Jun-2024 09:49:11.448 INFO [http-nio-8080-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP request

Re: Invalid character found in the request target

2024-06-04 Thread Chuck Caldarale
> On Jun 4, 2024, at 06:07, Christopher Schultz > wrote: >> 04-Jun-2024 09:49:11.448 INFO [http-nio-8080-exec-6] >> org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request >> header >> Note: further occurrences of HTTP request parsing errors will be logged at >>

Re: Invalid character found in the request target

2024-06-04 Thread Christopher Schultz
Christoph, On 6/4/24 05:49, Christoph Kukulies wrote: I'm getting these when startig tomcat9: This is a request, not startup. But it's not important. 04-Jun-2024 09:49:11.448 INFO [http-nio-8080-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header

Re: Webapp Getting redirected to an external IP Address

2024-06-04 Thread Christopher Schultz
Mark, On 6/4/24 01:50, Mark Thomas wrote: On 04/06/2024 05:07, Tom Robinson wrote: Hi, We are running a tomcat7 application You do realise that support for Tomcat 7 ended on 31 March 2021 don't you? on our LAN which gets redirected from a private, internal IP Address to an external ip

Re: Tomcat 9 memory leak message

2024-06-04 Thread Christopher Schultz
Jenny, On 6/3/24 12:35, Ying Jin wrote: Chris, Thanks for your suggestion! Another question I would like to confirm with you is if we have to remove the ojdbc jar file from our web application’s web-inf/lib folder or not. The reason of our concern is that we need to use the same code base to

Re: Cannot invoke "org.apache.tomcat.util.net.SSLHostConfig.getProtocols()" because "this.sslHostConfig" is null

2024-06-04 Thread Christopher Schultz
Adam, On 6/3/24 04:16, Adam Danischewski wrote: Using Embedded Tomcat 10 in SpringBoot, trying to manually configure a new HTTPS/SSL port. I've got the following SSL bundle set in my application properties (fairly sure this part is working fine): > > [snip] Note: I am new to Tomcat and most

Invalid character found in the request target

2024-06-04 Thread Christoph Kukulies
I'm getting these when startig tomcat9: 04-Jun-2024 09:49:11.448 INFO [http-nio-8080-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.

Re: Webapp Getting redirected to an external IP Address

2024-06-03 Thread Mark Thomas
On 04/06/2024 05:07, Tom Robinson wrote: Hi, We are running a tomcat7 application You do realise that support for Tomcat 7 ended on 31 March 2021 don't you? on our LAN which gets redirected from a private, internal IP Address to an external ip address at which point it fails. I can't find

Webapp Getting redirected to an external IP Address

2024-06-03 Thread Tom Robinson
Hi, We are running a tomcat7 application on our LAN which gets redirected from a private, internal IP Address to an external ip address at which point it fails. I can't find where this is happening. Where and what can I check for this redirect and how to control it or switch it off all together.

Re: Tomcat 9 memory leak message

2024-06-03 Thread Ying Jin
Terence, thanks for your reply! best, Jenny On Sun, Jun 2, 2024 at 3:11 AM Terence M. Bandoian wrote: > A long time ago (Tomcat 7), I would see a Tomcat memory leak detection > error on shutdown if the JDBC driver was located in WEB-INF/lib but not > if it was in the Tomcat lib directory.

Re: Tomcat 9 memory leak message

2024-06-03 Thread Ying Jin
Chris, Thanks for your suggestion! Another question I would like to confirm with you is if we have to remove the ojdbc jar file from our web application’s web-inf/lib folder or not. The reason of our concern is that we need to use the same code base to create a jar file and deploy it to stone

Re: Cannot invoke "org.apache.tomcat.util.net.SSLHostConfig.getProtocols()" because "this.sslHostConfig" is null

2024-06-03 Thread Adam Danischewski
Thanks for the quick response, I had hostname matching been banging my head on this for a while. I just fixed it - something is up with using a default constructor for SSLHostConfigCertificate (orig was new SSLHostConfigCertificate ()) and possibly with setting the keystore directly from the

Re: Cannot invoke "org.apache.tomcat.util.net.SSLHostConfig.getProtocols()" because "this.sslHostConfig" is null

2024-06-03 Thread Mark Thomas
On 03/06/2024 09:16, Adam Danischewski wrote: Not sure why I'm getting: Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.tomcat.util.net.SSLHostConfig.getProtocols()" because "this.sslHostConfig" is null You haven't configured a default SSLHostConfig. Either use

Cannot invoke "org.apache.tomcat.util.net.SSLHostConfig.getProtocols()" because "this.sslHostConfig" is null

2024-06-03 Thread Adam Danischewski
Using Embedded Tomcat 10 in SpringBoot, trying to manually configure a new HTTPS/SSL port. I've got the following SSL bundle set in my application properties (fairly sure this part is working fine): spring.ssl.bundle.jks.rbupbundle.key.alias=RBup

Re: Tomcat 9 memory leak message

2024-06-02 Thread Terence M. Bandoian
A long time ago (Tomcat 7), I would see a Tomcat memory leak detection error on shutdown if the JDBC driver was located in WEB-INF/lib but not if it was in the Tomcat lib directory. Explicitly de-registering the driver with a ServletContextListener on shutdown eliminated the error. I'm not

Re: Tomcat 9 memory leak message

2024-06-02 Thread Christopher Schultz
Jenny, (Apologies for top-posting) “Safely ignored” can mean many things. You are only in danger of running out of heap space. So if you aren’t worried about that, feel free to ignore the error message. If it were my system, I would want to ensure a clean unload of the driver when the

Re: Tomcat 9 memory leak message

2024-06-01 Thread Ying Jin
Chris, Thanks so much for your suggestions! We use Oracle version 19. I read the post you mentioned and found that this warning message can be safely ignored. Please correct me if I'm wrong. Thanks again! Jenny On Sat, Jun 1, 2024 at 7:57 AM Thomas Hoffmann (Speed4Trade GmbH) wrote: >

AW: Tomcat 9 memory leak message

2024-06-01 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Jenny, > -Ursprüngliche Nachricht- > Von: Ying Jin > Gesendet: Samstag, 1. Juni 2024 00:18 > An: Tomcat Users List > Betreff: Re: Tomcat 9 memory leak message > > Chris, > > Thanks for your reply! > > We already removed the ojdbc8.jar file from the application's Web-inf/lib >

Re: Tomcat 9 memory leak message

2024-05-31 Thread Ying Jin
Chris, Thanks for your reply! We already removed the ojdbc8.jar file from the application's Web-inf/lib folder as suggested in the following post, however, we still got the warning messages below after the application is deployed to the Tomcat 9 server.

Re: Tomcat 9 memory leak message

2024-05-31 Thread Christopher Schultz
Jenny, On 5/31/24 14:52, Ying Jin wrote: We removed the ojdbc8 driver jar from web-inf/lib from the web application and kept the ojdbc8 jar file in the Tomcat/lib folder, but we still can see the following memory link warning message whenever we redeploy the web application. We use the Tomcat

Tomcat 9 memory leak message

2024-05-31 Thread Ying Jin
We removed the ojdbc8 driver jar from web-inf/lib from the web application and kept the ojdbc8 jar file in the Tomcat/lib folder, but we still can see the following memory link warning message whenever we redeploy the web application. We use the Tomcat 9 server in the Linux environment. The other

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Eric Robinson
Chris, > -Original Message- > From: Christopher Schultz > Sent: Friday, May 31, 2024 12:50 PM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > Eric, > > On 5/31/24 13:44, Eric Robinson wrote: > >>

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Terence M. Bandoian
On 5/31/2024 11:44 AM, Mark Thomas wrote: On 31/05/2024 16:09, Eric Robinson wrote: The results are looking great so far. Excellent. Here's what we know: Before the patch, we had 2 load-balanced tomcats in production for this customer. Due to the driver search bottleneck, we were seeing

Re: Need help installing SSL certificate in tomcat keystore

2024-05-31 Thread Christopher Schultz
Mark, On 5/30/24 08:46, Fung-A-Fat, Mark wrote: I am running a java web app on windows 2019 server and need some help getting the SSL certificate installed into my keystore. I am running tomcat 9.x and java 11 I am able to generate a certificate request using both keytool and/or openssl

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Christopher Schultz
Eric, On 5/31/24 13:44, Eric Robinson wrote: -Original Message- From: Christopher Schultz Sent: Friday, May 31, 2024 12:38 PM To: users@tomcat.apache.org Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All) Mark, On 5/31/24 12:44, Mark Thomas

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Eric Robinson
> -Original Message- > From: Christopher Schultz > Sent: Friday, May 31, 2024 12:38 PM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > Mark, > > On 5/31/24 12:44, Mark Thomas wrote: > > On 31/05/2024 16:09,

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Christopher Schultz
Mark, On 5/31/24 12:44, Mark Thomas wrote: On 31/05/2024 16:09, Eric Robinson wrote: The results are looking great so far. Excellent. Here's what we know: Before the patch, we had 2 load-balanced tomcats in production for this customer. Due to the driver search bottleneck, we were seeing

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Christopher Schultz
Eric, On 5/31/24 11:09, Eric Robinson wrote: The results are looking great so far. Here's what we know: Before the patch, we had 2 load-balanced tomcats in production for this customer. Due to the driver search bottleneck, we were seeing hundreds of stuck threads during the slowdown

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Eric Robinson
> -Original Message- > From: Mark Thomas > Sent: Friday, May 31, 2024 11:45 AM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > On 31/05/2024 16:09, Eric Robinson wrote: > > The results are looking great so

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Mark Thomas
On 31/05/2024 16:09, Eric Robinson wrote: The results are looking great so far. Excellent. Here's what we know: Before the patch, we had 2 load-balanced tomcats in production for this customer. Due to the driver search bottleneck, we were seeing hundreds of stuck threads during the

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Eric Robinson
The results are looking great so far. Here's what we know: Before the patch, we had 2 load-balanced tomcats in production for this customer. Due to the driver search bottleneck, we were seeing hundreds of stuck threads during the slowdown periods. To work around this problem, we threw more

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-31 Thread Eric Robinson
Mark, > -Original Message- > From: Mark Thomas > Sent: Thursday, May 30, 2024 9:30 AM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > OK. > > This is an interim binary patch for 9.0.80 only. > > The

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-30 Thread Eric Robinson
Hi Mark, > -Original Message- > From: Mark Thomas > Sent: Thursday, May 30, 2024 9:30 AM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > OK. > > This is an interim binary patch for 9.0.80 only. > > The

RE: Write listener question

2024-05-30 Thread joan.balaguero
Trying to simplify the code was a mistake ... private static final int WRITE_BUFFER_SIZE = 8 * 1024; <-- with 32K fails on this client private final AsyncContext ac; private final ServletResponse sr; private ServletOutputStream os; private boolean firstTime = true; private byte[]

Re: Write listener question

2024-05-30 Thread Chuck Caldarale
> On May 30, 2024, at 12:53, > wrote: > > isFirst is initialized to 'true' when the class is instantiated, so that > piece of code is just executed the first time the execution enters the ' > onWritePossible' method. Later, within the same 'if', 'isFirst' is set to > false, (not shown in the

RE: Write listener question

2024-05-30 Thread joan.balaguero
Hi Chuck, isFirst is initialized to 'true' when the class is instantiated, so that piece of code is just executed the first time the execution enters the ' onWritePossible' method. Later, within the same 'if', 'isFirst' is set to false, (not shown in the code, sorry) Perhaps this one client has

Re: Write listener question

2024-05-30 Thread Chuck Caldarale
> On May 30, 2024, at 08:47, > wrote: > > I have a NIO connector with an asynchronous servlet with its write listener > (working in both tomcat 8.5 and tomcat 10.1.20). > > @Override > public void onWritePossible() throws IOException { > > if (this.isFirst) { >this.os =

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-30 Thread Konstantin Kolinko
ср, 29 мая 2024 г. в 13:34, Mark Thomas : > > > > It is also problem number 3. The reason it is expensive is that class > loaders don't cache misses so if a web application has a large number of > JARs, they all get scanned every time the DriverManager tries to create > a new connection. > > > The

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-30 Thread Mark Thomas
OK. This is an interim binary patch for 9.0.80 only. The purpose is to: - confirm the proposed change fixes the problem - provide you with a workaround in the short term This is the binary patch: https://people.apache.org/~markt/dev/classloader-not-found-cache-9.0.80-v1.zip Extract the

Re: context.xml file location

2024-05-30 Thread Christopher Schultz
Hello, On 5/30/24 10:12, firstName lastName wrote: Renaming my context.xml to ROOT.xml (without changing the folder) fixed the problem. Thanks for the help! The best practice would be to put your context.xml file into your WAR file's META-INF/context.xml path. That way, it will be deployed

Re: context.xml file location

2024-05-30 Thread firstName lastName
Renaming my context.xml to ROOT.xml (without changing the folder) fixed the problem. Thanks for the help! On Thu, May 30, 2024 at 8:42 AM David Rush wrote: > I don't know about any docker-related differences, but > > I think that if you put a context config file under Catalina/localhost you

Write listener question

2024-05-30 Thread joan.balaguero
Hello, Sorry for the previous mail ... I have a NIO connector with an asynchronous servlet with its write listener (working in both tomcat 8.5 and tomcat 10.1.20). @Override public void onWritePossible() throws IOException { if (this.isFirst) { this.os =

Re: context.xml file location

2024-05-30 Thread David Rush
I don't know about any docker-related differences, but I think that if you put a context config file under Catalina/localhost you need to name the .xml file the same as your .war file. So if you have foo.war, then you'd have Catalina/localhost/foo.xml You can also put a file named

context.xml file location

2024-05-30 Thread firstName lastName
I am trying to setup JNDI for tomcat with a java webapp. I am using the official tomcat docker image (version 10.1.24-jdk21-temurin-jammy). However, I'm a bit confused about where to put the context.xml file. I tried putting it in /usr/local/tomcat/conf/Catalina/localhost/context.xml but tomcat

Need help installing SSL certificate in tomcat keystore

2024-05-30 Thread Fung-A-Fat, Mark
I am running a java web app on windows 2019 server and need some help getting the SSL certificate installed into my keystore. I am running tomcat 9.x and java 11 I am able to generate a certificate request using both keytool and/or openssl For both the CSR file looks like this, but the

Re: PersistentManager and ClassNotFoundException

2024-05-30 Thread Jakub Królikowski
Hi Christopher, On Thu, May 30, 2024 at 1:40 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Jakub, > > On 5/30/24 05:25, Jakub Królikowski wrote: > >> Where is your configuration located? It *should* be inside > >> your located in META-INF/context.xml in your web application.

Re: Write listener question

2024-05-30 Thread Christopher Schultz
Joan, Please don't hijack threads. Start a new message to the list without replying to an existing one. -chris On 5/30/24 06:03, joan.balagu...@ventusproxy.com wrote: Sorry, this issue happens with both Tomcat 8.5.x and 10.1.x. -Original Message- From:

Re: PersistentManager and ClassNotFoundException

2024-05-30 Thread Christopher Schultz
Jakub, On 5/30/24 05:25, Jakub Królikowski wrote: Where is your configuration located? It *should* be inside your located in META-INF/context.xml in your web application. If it's in there, then everything it does should be in the context (and ClassLoader) of your web application -- where your

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-30 Thread Christopher Schultz
Eric, On 5/29/24 12:10, Eric Robinson wrote: -Original Message- From: Mark Thomas Sent: Wednesday, May 29, 2024 10:19 AM To: users@tomcat.apache.org Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All) On 29/05/2024 16:08, Eric Robinson wrote:

RE: Write listener question

2024-05-30 Thread joan.balaguero
Sorry, this issue happens with both Tomcat 8.5.x and 10.1.x. -Original Message- From: joan.balagu...@ventusproxy.com Sent: Thursday, May 30, 2024 11:57 AM To: 'Tomcat Users List' Subject: Write listener question Hello, I have a NIO connector with an asynchronous servlet with its

Write listener question

2024-05-30 Thread joan.balaguero
Hello, I have a NIO connector with an asynchronous servlet with its write listener. @Override public void onWritePossible() throws IOException { if (this.isFirst) { this.os = this.asyncContext.getResponse().getOutputStream(); this.startIdx = 0; this.endIdx = WRITE_BUFFER_SIZE;

Re: PersistentManager and ClassNotFoundException

2024-05-30 Thread Jakub Królikowski
Hello Chris, On Tue, May 28, 2024 at 6:38 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Jakub, > > On 5/24/24 09:31, Jakub Królikowski wrote: > > On Fri, May 24, 2024 at 11:23 AM Mark Thomas wrote: > > > >> Can you provide the simplest web application (with source) that > >>

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-30 Thread Mark Thomas
On 29/05/2024 17:03, Eric Robinson wrote: One of the webapps is related to voice reminder messages that go out to people. The reminders go out sometime after 9 am, which tracks with the slowdowns. Ack. Something to try while I work on a patch is setting archiveIndexStrategy="bloom" on

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-29 Thread Eric Robinson
> -Original Message- > From: Mark Thomas > Sent: Wednesday, May 29, 2024 10:19 AM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > On 29/05/2024 16:08, Eric Robinson wrote: > > > I believe your assessment

RE: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-29 Thread Eric Robinson
Hi Mark, > -Original Message- > From: Mark Thomas > Sent: Wednesday, May 29, 2024 10:10 AM > To: users@tomcat.apache.org > Subject: Re: Database Connection Requests Initiated but Not Sent on the Wire > (Some, Not All) > > On 29/05/2024 13:38, Eric Robinson wrote: > >> -Original

Re: Database Connection Requests Initiated but Not Sent on the Wire (Some, Not All)

2024-05-29 Thread Mark Thomas
On 29/05/2024 16:08, Eric Robinson wrote: I believe your assessment is correct. How hard is it to enable pooling? Can it be bolted on, so to speak, through changes to the app context, such that the webapp itself does not necessarily need to implement special code? It looks like - from the

  1   2   3   4   5   6   7   8   9   10   >