How to properly enable logging in "org.apache.catalina.core.StandardContext"

2024-02-29 Thread David Karr
In our SpringBoot services, we sometimes run into situations where we get an exception like this: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat It

contextVersion NullPointerException due to race condition

2024-02-29 Thread FRANTS Patrick
Not sure this is the right mailing list or that it should go to dev. One of our unit tests will occasionally have a null pointer exception durin= g shutdown. Unfortunately I have not been able to create a small reproducti= on yet. The scenario is as follows. *

RE: server.xml setting broken with Tomcat 9.0.81

2024-02-28 Thread Jonathan Ho
I resolved my issue by recreate the private key with different encryption My old key was encrypted with DES-CBC, and new one I used AES-256-CBC https://stackoverflow.com/questions/17733536/how-to-convert-a-private-key-to-an-rsa-private-key openssl rsa -aes256 -in server.key -out new.key To

Re: server.xml setting broken with Tomcat 9.0.81

2024-02-28 Thread Konstantin Kolinko
ср, 28 февр. 2024 г. в 14:42, Jonathan Ho : > > I have following connectors in server.xml file and working for a long time > with various version of Tomcat 9 until I upgrade to 9.0.81 or newer versions. > I verified that 9.0.80 is working. > What I am getting from 9.0.81 on startup is I will get

server.xml setting broken with Tomcat 9.0.81

2024-02-28 Thread Jonathan Ho
I have following connectors in server.xml file and working for a long time with various version of Tomcat 9 until I upgrade to 9.0.81 or newer versions. I verified that 9.0.80 is working. What I am getting from 9.0.81 on startup is I will get pass phrase prompt on tomcat start up and following

Re: Core Dump File Generation

2024-02-28 Thread Olaf Kock
On 28.02.24 12:03, Chaudhary, Mohit wrote: Hi, Java version 1.8.0_121 is running on server. From the release notes of Java 1.8.0_121 (https://www.oracle.com/java/technologies/javase/8u121-relnotes.html): The JRE expires whenever a new release with security vulnerability fixes becomes

Re: Core Dump File Generation

2024-02-28 Thread Olaf Kock
On 28.02.24 09:57, Chaudhary, Mohit wrote: Hi All, We are facing issues on tomcat. Core dump file generating very frequent twice to thrice in a month and core file size would be 13GB to 15GB every time .Whenever this issue is happening tomcat services stopped automatically. We have done

Re: Core Dump File Generation

2024-02-28 Thread Chaudhary, Mohit
Hi, Java version 1.8.0_121 is running on server. Get Outlook for iOS From: Simon Matter Sent: Wednesday, February 28, 2024 4:06:09 PM To: Tomcat Users List Subject: RE: Core Dump File Generation [You don't often get email from

RE: Core Dump File Generation

2024-02-28 Thread Simon Matter
Hi, > Hi, > > I am talking about java core dump file which is generating on tomcat/bin > path and the OS is RHEL 6. What's the exact version of Java running? Regards, Simon > > Thanks & Regards, > Mohit Chaudhary > > > -Original Message- > From: Simon Matter > Sent: Wednesday,

RE: Core Dump File Generation

2024-02-28 Thread Chaudhary, Mohit
Hi, I am talking about java core dump file which is generating on tomcat/bin path and the OS is RHEL 6. Thanks & Regards, Mohit Chaudhary -Original Message- From: Simon Matter Sent: Wednesday, February 28, 2024 3:03 PM To: Tomcat Users List Subject: Re: Core Dump File Generation

Re: Core Dump File Generation

2024-02-28 Thread Simon Matter
Hi Mohit, > Hi All, > > We are facing issues on tomcat. Core dump file generating very frequent > twice to thrice in a month and core file size would be 13GB to 15GB every > time .Whenever this issue is happening tomcat services stopped I'm a bit confused, are you talking about a UNIX style core

Core Dump File Generation

2024-02-28 Thread Chaudhary, Mohit
Hi All, We are facing issues on tomcat. Core dump file generating very frequent twice to thrice in a month and core file size would be 13GB to 15GB every time .Whenever this issue is happening tomcat services stopped automatically. We have done analysis of hs_err_pid.log file and based on

SpringBoot Embedded Tomcat Server RateLimitFilter

2024-02-27 Thread Ved
Hi, I am using spring boot and wanted to use Rate Limit. I can find it in package org.apache.catalina.filters; //in embedded tomcat But this RateLimitFilter is never called. I want to understand when this filter is called and how I can customize it. Regards, Ved Prakash

RE: Need help for a problem on migrating from Tomcat-8 to Tomcat-9

2024-02-27 Thread Saha, Rajib
Hi Chris, I got your point. Actually, this service for us is a core service of our product, which control several core servers on it. But, we will Definity see the options to unblock the dependency as you said. Regards Rajib -Original Message- From: Christopher Schultz Sent: 27

Re: Any way to look-up a session from application?

2024-02-27 Thread Robert Turner
Chris, I think maybe Mark answered a similar question a while back indicating the only supported method within the Servlet API was custom session tracking. I could be remembering incorrectly. That's what we do however, because without "snooping" into the Tomcat internals, I don't think there was

Re: Any way to look-up a session from application?

2024-02-27 Thread Olaf Kock
Hi Chris On 27.02.24 15:19, Christopher Schultz wrote: All, I'm looking at building some administrative tools into my application, and I'd like to be able to inspect user sessions for certain attributes. I know that I can use JMX to make calls to the (session) Manager, but it looks like the

Re: configuring Tomcat 9.0.85 for debugging

2024-02-27 Thread Mark Caruso
Mark Your input is very helpful.  Thank You very much!  I have been having headaches with all the issues you mentioned and will be following your guidance. On Monday, February 26, 2024 at 06:12:49 PM EST, Mark Eggers wrote: On 2/26/2024 2:18 PM, Mark Caruso wrote: > If anyone has

Re: configuring Tomcat 9.0.85 for debugging

2024-02-27 Thread Mark Caruso
Thank you very much! On Monday, February 26, 2024 at 05:43:02 PM EST, Chuck Caldarale wrote: > On Feb 26, 2024, at 16:18, Mark Caruso wrote: > > If anyone has guidance for configuring Tomcat 9.0.85 for debugging please > send it along. I am running the program under Ubuntu 20.04.

Re: Need help for a problem on migrating from Tomcat-8 to Tomcat-9

2024-02-27 Thread Christopher Schultz
Rajib, On 2/26/24 23:43, Saha, Rajib wrote: Hi Mark, Thanks for your explanation and suggestion. For my use case, I have used the below option and its working fine. = --ServiceUser="LocalSystem" = Thank you very much for showing the way.

Any way to look-up a session from application?

2024-02-27 Thread Christopher Schultz
All, I'm looking at building some administrative tools into my application, and I'd like to be able to inspect user sessions for certain attributes. I know that I can use JMX to make calls to the (session) Manager, but it looks like the only things really exposed are: String[]

RE: Need help for a problem on migrating from Tomcat-8 to Tomcat-9

2024-02-26 Thread Saha, Rajib
Hi Mark, Thanks for your explanation and suggestion. For my use case, I have used the below option and its working fine. = --ServiceUser="LocalSystem" = Thank you very much for showing the way.  Regards Rajib -Original Message-

Re: configuring Tomcat 9.0.85 for debugging

2024-02-26 Thread Mark Eggers
On 2/26/2024 2:18 PM, Mark Caruso wrote: If anyone has guidance for configuring Tomcat 9.0.85 for debugging please send it along. I am running the program under Ubuntu 20.04. I am not sure the guidance on the internet for modifying catalina.sh is right.  My goal is to then attach a debugger

Re: configuring Tomcat 9.0.85 for debugging

2024-02-26 Thread Chuck Caldarale
> On Feb 26, 2024, at 16:18, Mark Caruso wrote: > > If anyone has guidance for configuring Tomcat 9.0.85 for debugging please > send it along. I am running the program under Ubuntu 20.04. I am not sure the > guidance on the internet for modifying catalina.sh is right. My goal is to > then

configuring Tomcat 9.0.85 for debugging

2024-02-26 Thread Mark Caruso
If anyone has guidance for configuring Tomcat 9.0.85 for debugging please send it along. I am running the program under Ubuntu 20.04. I am not sure the guidance on the internet for modifying catalina.sh is right.  My goal is to then attach a debugger from Netbeans 16 and debug my web app. Thank

Re: A curious case of Tomcat 10.1.x NIO(1) acceptor not stopping clearly on some setups

2024-02-26 Thread Michał Szymborski
Thank you, that clears things up. I did not think about implication of using wildcard. I will try to use explicit addresses from now on. You learn something new every day! Cheers, Michał On 26.02.2024 09:48, Mark Thomas wrote: On 25/02/2024 18:18, Michał Szymborski wrote: On quick

Re: Need help for a problem on migrating from Tomcat-8 to Tomcat-9

2024-02-26 Thread Mark Thomas
On 26/02/2024 06:11, Saha, Rajib wrote: Hi Experts, In our product, we are using Tomcat [OriginalFileName: prunsrv.exe] for creating a service[Say, Service-A]. It's a huge product running in market for last 20 years. We are in progress of moving from Tomcat-8 to tomcat-9. When we are

Re: A curious case of Tomcat 10.1.x NIO(1) acceptor not stopping clearly on some setups

2024-02-26 Thread Mark Thomas
On 25/02/2024 18:18, Michał Szymborski wrote: On quick inspection the acceptor thread (https://github.com/apache/tomcat/blob/10.1.x/java/org/apache/tomcat/util/net/Acceptor.java#L128) was listening on [/[0:0:0:0:0:0:0:0]:39033] , which was correctly picked up at first, but then this local

Need help for a problem on migrating from Tomcat-8 to Tomcat-9

2024-02-25 Thread Saha, Rajib
Hi Experts, In our product, we are using Tomcat [OriginalFileName: prunsrv.exe] for creating a service[Say, Service-A]. It's a huge product running in market for last 20 years. We are in progress of moving from Tomcat-8 to tomcat-9. When we are creating the Service-A with Tomcat-8

Re: A curious case of Tomcat 10.1.x NIO(1) acceptor not stopping clearly on some setups

2024-02-25 Thread Michał Szymborski
Thank you for taking the time. Removing Gradle from equation did not make a difference. I did what I should have done in the beginning though and turned up the logging level. When an endpoint gets shut down, since there is no other way of waking the Acceptor up, a fake connection is made.

Re: A curious case of Tomcat 10.1.x NIO(1) acceptor not stopping clearly on some setups

2024-02-25 Thread Chuck Caldarale
> On Feb 23, 2024, at 10:18, Michał Szymborski > wrote: > > Hi, I've encountered an issue where the acceptor doesn't stop cleanly when > shutting Tomcat down on some machines. I'm using tomcat-embed-core 10.1.19, > I've tested it on Ubuntu 22.04 and MacOs Sonoma 14.3.1. > > Here is a

Re: TOMCAT CERTIFICATE RENEWAL

2024-02-23 Thread Christopher Schultz
Prabu, On 2/19/24 02:40, Ganesan, Prabu wrote: Thanks for your information - its jks file do we have any specific command to pass them for renew the certificate? If you aren't sure how to do this, maybe you aren't the right person to try to do this. -chris

Re: SSO SPNEGO GSS API CheckSum Failed Error

2024-02-23 Thread Tom Delaney
Please don't respond to this email. I was able to figure out the issue. The server hosting devexample.domain.com was using a canonicalized hostname. This was throwing tomcat off when reading over the token and keytab file. I only wish there was a better way for this error to pick up on that. On

No classes have been predefined during the image build to load from bytecodes at runtime

2024-02-23 Thread Jun Suzuki
By reference to the AOT support guide, https://tomcat.apache.org/tomcat-9.0-doc/graal.html, I built a spring framework 6.x based web application into a native image. I'm using GraalVM for JDK17. When finally ran the native image, it gave following error message: INFO: Initializing Spring root

SSO SPNEGO GSS API CheckSum Failed Error

2024-02-23 Thread Thomas Delaney
Hi all, I have a redhat 9.2 server hosting a web application on 5 seperate instances of Apache Tomcat. I have configured SPNEGO on instances 1,2,3 and 4. These instances are behind an apache proxy load balancer on version 2.4.57. Instance 1,2, and 3 are load balanced. While 4 and 5 are not. The

A curious case of Tomcat 10.1.x NIO(1) acceptor not stopping clearly on some setups

2024-02-23 Thread Michał Szymborski
Hi, I've encountered an issue where the acceptor doesn't stop cleanly when shutting Tomcat down on some machines. I'm using tomcat-embed-core 10.1.19, I've tested it on Ubuntu 22.04 and MacOs Sonoma 14.3.1. Here is a minimum reproducible example (also available here

Re: NoClassDefFoundError for SSL operations

2024-02-22 Thread Mark Thomas
On 23/02/2024 01:14, bigelytechnol...@yahoo.com wrote: This spammer has been unsubscribed and banned from re-subscribing. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Long lasting websocket sessions

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: Compile with JDK 17, run on JRE 11?

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: TOMCAT CERTIFICATE RENEWAL

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: TOMCAT CERTIFICATE RENEWAL

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: The custom 404 page of Tomcat8 suddenly becomes invalid

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: Community Over Code Asia 2024 Travel Assistance Applications now open!

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

Re: NoClassDefFoundError for SSL operations

2024-02-22 Thread bigelytechnol...@yahoo.com
Hello Dear Thanks for your reply l would use this opportunity to briefly introduce our company, Bigly Technologies Thailand, We are one of the leading importers in Asia , and the Middle East on general Goods and Equipment. On behalf of Bigly Technologies Thailand, this is the samples of the

AW: NoClassDefFoundError for SSL operations

2024-02-22 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Simon, > -Ursprüngliche Nachricht- > Von: Simon Arame > Gesendet: Donnerstag, 22. Februar 2024 18:06 > An: users@tomcat.apache.org > Betreff: NoClassDefFoundError for SSL operations > > We have Tomcat 9.0.81 running under OpenJDK 1.8.0_402-b06 > > Since the latest OpenJDK upgrade

NoClassDefFoundError for SSL operations

2024-02-22 Thread Simon Arame
We have Tomcat 9.0.81 running under OpenJDK 1.8.0_402-b06 Since the latest OpenJDK upgrade we get some errors when trying to perform SSL Operations like obtaining the bytes of an HTTPS url or sending an email through SMTP with TLS on. Note that with the same jdk, those operations succeed when

Community Over Code Asia 2024 Travel Assistance Applications now open!

2024-02-20 Thread Gavin McDonald
Hello to all users, contributors and Committers! The Travel Assistance Committee (TAC) are pleased to announce that travel assistance applications for Community over Code Asia 2024 are now open! We will be supporting Community over Code Asia, Hangzhou, China July 26th - 28th, 2024. TAC exists

Re: Persistent Manager Implementation Question

2024-02-19 Thread Miguel Vidal
hey one question regarding this topic I'm facing an issue where my old app is doing a creation of multiple sessions but just one is the correct one or at least is who contains the data and works fine. the others sessions that are created contains random data that im not sure yet what information

[ANN] Apache Tomcat 9.0.86 available

2024-02-19 Thread Rémy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.86. Apache Tomcat 9 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 9.0.86 is a bugfix and

Re: The custom 404 page of Tomcat8 suddenly becomes invalid

2024-02-19 Thread Mark Thomas
On 19/02/2024 01:35, LeventLee wrote: Hello, Here is my information: openjdk version "1.8.0_345" | OpenJDK Runtime Environment (build 1.8.0_345-b01) | OpenJDK 64-Bit Server VM (build 25.345-b01, mixed mode) Linux 5.10.134-12.al8.x86_64 Apache Tomcat/8.0.24 That version is over 8 years old.

Re: Tomcat Manager 403's with LDAP Realm

2024-02-19 Thread Mark Thomas
On 17/02/2024 21:42, Dan McLaughlin wrote: We've had the same LDAP realm configured for probably 10 years, and the same roles in our LDAP for probably the same. We have 4 roles configured in LDAP manager-gui, manager-jmx, manager-script, and manager-status. My user only has the manager-gui

AW: TOMCAT CERTIFICATE RENEWAL

2024-02-19 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Ganesan, > -Ursprüngliche Nachricht- > Von: Ganesan, Prabu > Gesendet: Montag, 19. Februar 2024 08:41 > An: Tomcat Users List > Betreff: RE: TOMCAT CERTIFICATE RENEWAL > > Hi Tomas > > Thanks for your information - its jks file do we have any specific command to > pass them for

RE: TOMCAT CERTIFICATE RENEWAL

2024-02-18 Thread Ganesan, Prabu
Hi Tomas Thanks for your information - its jks file do we have any specific command to pass them for renew the certificate? Thanks & Regards, _ PrabuGanesan Consultant|MS-Nordics capgemini India Pvt. Ltd. | Bangalore  Contact: +91

AW: TOMCAT CERTIFICATE RENEWAL

2024-02-18 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Ganesan, > Von: Ganesan, Prabu > Gesendet: Montag, 19. Februar 2024 08:07 > An: Tomcat Users List > Betreff: TOMCAT CERTIFICATE RENEWAL > Priorität: Hoch > > Hi Guys, > How to renew the certificate in Tomcat Can anyone provide with steps as we >have Our tomcat certificate is about to

TOMCAT CERTIFICATE RENEWAL

2024-02-18 Thread Ganesan, Prabu
Hi Guys, How to renew the certificate in Tomcat Can anyone provide with steps as we have Our tomcat certificate is about to expire in Next week, Anybody can help with renew steps: Tomcat version : 8.5.5.0 Thanks & Regards,

TOMCAT CERTIFICATE RENEWAL

2024-02-18 Thread Ganesan, Prabu
Hi Guys, How to renew the certificate in Tomcat Can anyone provide with steps as we have Our tomcat certificate is about to expire in Next week, Anybody can help with renew steps: Tomcat version : 8.5.5.0 Thanks & Regards, _

Tomcat Manager 403's with LDAP Realm

2024-02-17 Thread Dan McLaughlin
We've had the same LDAP realm configured for probably 10 years, and the same roles in our LDAP for probably the same. We have 4 roles configured in LDAP manager-gui, manager-jmx, manager-script, and manager-status. My user only has the manager-gui role. Everything has worked fine up until about

Re: Compile with JDK 17, run on JRE 11?

2024-02-17 Thread Mark Thomas
On 17/02/2024 16:01, Troels Arvin wrote: Hello, Since 9.0.83, building Tomcat has required JDK 17, according to the release notes. Is it possible to take the resulting binaries and run them on JRE 11? Yes. The minimum Java version at runtime (8) is unchanged. Mark

Compile with JDK 17, run on JRE 11?

2024-02-17 Thread Troels Arvin
Hello, Since 9.0.83, building Tomcat has required JDK 17, according to the release notes. Is it possible to take the resulting binaries and run them on JRE 11? -- Regards, Troels Arvin

Re: Long lasting websocket sessions

2024-02-16 Thread Alex O'Ree
No devices in-between, browser to local host. Good feedback though, I'll try to reproduce with the snake app Thanks! On Fri, Feb 16, 2024, 2:47 PM Chuck Caldarale wrote: > > > On Feb 16, 2024, at 11:31, Mark Thomas wrote: > > > > On 09/02/2024 13:47, Alex O'Ree wrote: > >> I've been

Re: Long lasting websocket sessions

2024-02-16 Thread Chuck Caldarale
> On Feb 16, 2024, at 11:31, Mark Thomas wrote: > > On 09/02/2024 13:47, Alex O'Ree wrote: >> I've been experimenting with tomcat 9.x in seeing how long i can get a web >> socket session to last. I'm currently struggling to get past 30 minutes or >> so. Looking for guidance on how to best

Re: Long lasting websocket sessions

2024-02-16 Thread Mark Thomas
On 09/02/2024 13:47, Alex O'Ree wrote: I've been experimenting with tomcat 9.x in seeing how long i can get a web socket session to last. I'm currently struggling to get past 30 minutes or so. Looking for guidance on how to best increase this or if this is a bad idea. Here's the current

Re: ConnectionPool JDBC vs. DBCP

2024-02-16 Thread Christopher Schultz
Andreas, On 2/16/24 02:21, Döscher, Andreas (ESI) wrote: Moin, in the docpage https://tomcat.apache.org/tomcat-10.1-doc/jdbc-pool.html it says The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an alternative to the Apache Commons DBCP connection pool. So why do we

Re: Tomcat/Java starts using too much memory and not by the heap or non-heap memory

2024-02-16 Thread Christopher Schultz
Chuck and Brian, On 2/15/24 10:53, Chuck Caldarale wrote: On Feb 15, 2024, at 09:04, Brian Braun wrote: I discovered the JCMD command to perform the native memory tracking. When running it, after 3-4 days since I started Tomcat, I found out that the compiler was using hundreds of MB and

ConnectionPool JDBC vs. DBCP

2024-02-15 Thread ESI
Moin, in the docpage https://tomcat.apache.org/tomcat-10.1-doc/jdbc-pool.html it says >The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an >alternative to the Apache Commons DBCP connection pool. > >So why do we need a new connection pool? > >Here are a few of the

Re: Tomcat/Java starts using too much memory and not by the heap or non-heap memory

2024-02-15 Thread Chuck Caldarale
> On Feb 15, 2024, at 09:04, Brian Braun wrote: > > I discovered the JCMD command to perform the native memory tracking. When > running it, after 3-4 days since I started Tomcat, I found out that the > compiler was using hundreds of MB and that is exactly why the Tomcat > process starts abusing

Re: Tomcat/Java starts using too much memory and not by the heap or non-heap memory

2024-02-15 Thread Brian Braun
Hello, It has been a long time since I received the last suggestions to my issue here on this support list. Since then I decided to stop asking for help and to "do my homework". To read, to watch YouTube presentations, to spend time on StackOverflow, etc. So I have spent a lot of time on this and

Re: Tomcat/Java starts using too much memory and not by the heap or non-heap memory

2024-02-15 Thread Brian Braun
Hello, It has been a long time since I received the last suggestions to my issue here on this support list. Since then I decided to stop asking for help and to "do my homework". To read, to watch YouTube presentations, to spend time on StackOverflow, etc. So I have spent a lot of time on this and

Re: [EXT]Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-13 Thread Mark Thomas
On 09/02/2024 16:26, Rick Noel wrote: Thank you so much Mark for working with me on this issue! I am taking your recommendation to create a webapps-javaee directory and place my Tomcat 9 running war file into that dir so that Tomcat does the compile correctly. Only problem is that now I

Re: [ANN] Apache Tomcat Native 1.3.0 released

2024-02-13 Thread Mark Thomas
On 13/02/2024 10:21, Michael Osipov wrote: On 2024/02/13 08:46:42 Mark Thomas wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.3.0 stable. The key features of this release are: - The minimum supported OpenSSL version is 1.1.1 - The minimum supported

Re: [ANN] Apache Tomcat Native 1.3.0 released

2024-02-13 Thread Michael Osipov
On 2024/02/13 08:46:42 Mark Thomas wrote: > The Apache Tomcat team announces the immediate availability of Apache > Tomcat Native 1.3.0 stable. > > The key features of this release are: > > - The minimum supported OpenSSL version is 1.1.1 > - The minimum supported APR version in 1.6.3 > - The

[ANN] Apache Tomcat Native 1.3.0 released

2024-02-13 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.3.0 stable. The key features of this release are: - The minimum supported OpenSSL version is 1.1.1 - The minimum supported APR version in 1.6.3 - The windows binaries in this release have been built with

[ANN] Apache Tomcat Native 2.0.7 released

2024-02-13 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 2.0.7 stable. The key features of this release are: - Align default pass phrase prompt with httpd on Windows - The windows binaries in this release have been built with OpenSSL 3.0.13 The 2.0.x branch is

Re: Persistent Manager Implementation Question

2024-02-12 Thread Miguel Vidal
Yes both are pointing the same configuration because i was doing some testing how it works all of this about session, i wasnt able to get it to work in a new application just using spring boot , but i just did it on friday. what i was missing it was use the session and not only a getter or

Re: [OT] Tomcat not syncing existing sessions on restart

2024-02-12 Thread Christopher Schultz
Manak, On 2/12/24 10:33, Manak Bisht wrote: Chris, On Mon, 12 Feb 2024, 20:52 Christopher Schultz, < ch...@christopherschultz.net> wrote: I wouldn't refuse to configure, since anyone using 0.0.0.0 with /separate/ hosts wouldn't experience this problem. I am using separate hosts (two

Re: [OT] Tomcat not syncing existing sessions on restart

2024-02-12 Thread Manak Bisht
Chris, On Mon, 12 Feb 2024, 20:52 Christopher Schultz, < ch...@christopherschultz.net> wrote: > I wouldn't refuse to configure, since anyone using > 0.0.0.0 with /separate/ hosts wouldn't experience this problem. I am using separate hosts (two docker containers on two different machines) in my

Re: Tomcat Instance unable to connect to DB with TCPS

2024-02-12 Thread Christopher Schultz
Michael, On 2/8/24 21:54, Kebret, Michael wrote: Tomcat version 9.0.83 running on Linux redhat 7 java 11.0.20. When changing the protocol from TCP to TCPS in Catalina.properties and in server.xml we have attribute truststorePassword= (tested with both cleartext and encrypted) password

Re: [OT] Tomcat not syncing existing sessions on restart

2024-02-12 Thread Christopher Schultz
Mark, On 2/9/24 06:14, Mark Thomas wrote: With the Receiver using address="0.0.0.0" I see the same issues you do. I'm not yet convinced that is a bug. If this is known to essentially always not-work... should we log something at startup? I wouldn't refuse to configure, since anyone using

Re: Persistent Manager Implementation Question

2024-02-12 Thread Christopher Schultz
Miguel, On 2/8/24 15:49, Miguel Vidal wrote: Im trying to configure correctly in 2 different applications : Persistent Manager Implementation using a mysqldb as a datasource. Do you have both PersistentManager configurations pointing at the same database and same set of tables? I think it

RE: [EXT]Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-09 Thread Rick Noel
Thank you so much Mark for working with me on this issue! I am taking your recommendation to create a webapps-javaee directory and place my Tomcat 9 running war file into that dir so that Tomcat does the compile correctly. Only problem is that now I cannot figure out what is the correct URL

Long lasting websocket sessions

2024-02-09 Thread Alex O'Ree
I've been experimenting with tomcat 9.x in seeing how long i can get a web socket session to last. I'm currently struggling to get past 30 minutes or so. Looking for guidance on how to best increase this or if this is a bad idea. Here's the current configuration and what i've tried thus far: The

R: Tomcat Instance unable to connect to DB with TCPS

2024-02-09 Thread Roberto Benedetti
Hello, it seems you have changed the default Java trust store, so you also need to provide its password. You should provide more info about your requirements: - server authentication only or client authentication too (mTLS in Oracle documentation)? - which version of ucp/ojdbc are you using

Re: Tomcat not syncing existing sessions on restart

2024-02-09 Thread Mark Thomas
On 09/02/2024 07:51, Manak Bisht wrote: On Fri, Feb 9, 2024 at 3:25 AM Mark Thomas wrote: Same JRE? Yes, 8.0.402 Generally, I wouldn't use 0.0.0.0, I'd use a specific IP address. I'm not sure how the clustering would behave with 0.0.0.0 Using 0.0.0.0 as the address for the receiver is

Re: Tomcat Instance unable to connect to DB with TCPS

2024-02-09 Thread Mark Thomas
On 09/02/2024 02:54, Kebret, Michael wrote: Tomcat version 9.0.83 running on Linux redhat 7 java 11.0.20. When changing the protocol from TCP to TCPS in Catalina.properties and in server.xml we have attribute truststorePassword= (tested with both cleartext and encrypted) password connection

Re: Tomcat not syncing existing sessions on restart

2024-02-08 Thread Manak Bisht
On Fri, Feb 9, 2024 at 3:25 AM Mark Thomas wrote: > Same JRE? > Yes, 8.0.402 Generally, I wouldn't use 0.0.0.0, I'd use a specific IP address. I'm > not sure how the clustering would behave with 0.0.0.0 > That's the problem really. Using the DNS name or IP address causes the following error -

Tomcat Instance unable to connect to DB with TCPS

2024-02-08 Thread Kebret, Michael
Tomcat version 9.0.83 running on Linux redhat 7 java 11.0.20. When changing the protocol from TCP to TCPS in Catalina.properties and in server.xml we have attribute truststorePassword= (tested with both cleartext and encrypted) password connection is refused to the DB and get the below

Re: Getting provider/properties from jaspic-providers.xml to my ServerAuthModule

2024-02-08 Thread Mark Thomas
On 08/02/2024 14:37, Ryan Esch wrote: I'm using Tomcat 9. I have a provider in jaspic-providers.xml: I am not sure how to get these properties to my ServerAuthModule. I have a ServletContextListener and can see that the jaspic-providers.xml file is being processed if I call:

Re: Persistent Manager Implementation Question

2024-02-08 Thread Mark Thomas
Try turning on ALL logging for the org.apache.catalina.session package. Mark On 08/02/2024 20:49, Miguel Vidal wrote: demo4.zip Hello, Specifications Windows 10 Tomcat 8.5 this is a configuration

Re: [EXT]Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Mark Thomas
Confirmed this is user error. There is no bug in the migration tool. Steps to demonstrate this: - Create new, blank Eclipse dynamic web project - Add provided servlet code - Add required libraries - Remove referenced to internal logging code - Add web.xml with basic mapping to "/test" - Export

Re: Tomcat not syncing existing sessions on restart

2024-02-08 Thread Mark Thomas
On 07/02/2024 11:43, Manak Bisht wrote: I think I have narrowed down the problem. For Tomcat 9 (v9.0.85), using 0.0.0.0 for the local member and receiver works fine. However, the same does not work in Tomcat 8.5 (v8.5.98). Same JRE? Generally, I wouldn't use 0.0.0.0, I'd use a specific IP

Persistent Manager Implementation Question

2024-02-08 Thread Miguel Vidal
demo4.zip Hello, Specifications Windows 10 Tomcat 8.5 this is a configuration question . the tomcat specification that works : https://tomcat.apache.org/tomcat-8.0-doc/config/manager.html Im trying to

RE: [EXT]Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rick Noel
No I cannot compile from command line. But I do not really care how eclipse compiles my class anyway. All I know is that eclipse compiles the class without errors. Using the jars I tell it to. (all the jars run through the migration tool) But Tomcat 10 can not compile the class using those same

Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rob Sargent
> On Feb 8, 2024, at 9:04 AM, Rick Noel wrote: > > I built my app in Eclipse and the build path is set to use the migrated > jar. > It compiles without error on Eclipse and using the migrated jar. I have that > same migrated jar in the Tomcat lib > But when tomcat 10 compiles it does

RE: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rick Noel
I built my app in Eclipse and the build path is set to use the migrated jar. It compiles without error on Eclipse and using the migrated jar. I have that same migrated jar in the Tomcat lib But when tomcat 10 compiles it does not compile I have also used the migration tool on my .war that

Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Mark Thomas
On 08/02/2024 14:38, Rick Noel wrote: My code uses no javax.server code other that what is in the third party jar. Then you need to fix your build system that is compiling your code against the original xmlrpc-server3.1.3.jar rather than the migrated version. Is it not the third part jar

RE: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rick Noel
My code uses no javax.server code other that what is in the third party jar. Is it not the third part jar that needs to stop using javax.server ? Where in my code does it use javax.server, other than from classes in package org.apache.xmlrpc? package com.radiovoodoo.xmlrpc; import

Getting provider/properties from jaspic-providers.xml to my ServerAuthModule

2024-02-08 Thread Ryan Esch
I'm using Tomcat 9. I have a provider in jaspic-providers.xml:                 I am not sure how to get these properties to my ServerAuthModule. I have a ServletContextListener and can see that the jaspic-providers.xml file is being processed if I call: AuthConfigFactory factory =

Re: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Mark Thomas
On 08/02/2024 14:17, Rick Noel wrote: My class is RVXmlRpcServlet and below is the compile error that happens when I use the xmlrpc-server3.1.3.jar after that jar has been run through the migration tool jakartaee-migration-1.0.7 That same class throws NO compile error on Tomcat 9 using

RE: [EXT]Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rick Noel
My class is RVXmlRpcServlet and below is the compile error that happens when I use the xmlrpc-server3.1.3.jar after that jar has been run through the migration tool jakartaee-migration-1.0.7 That same class throws NO compile error on Tomcat 9 using xmlrpc-server3.1.3.jar Here is the compile

Re: jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Mark Thomas
On 08/02/2024 13:45, Rick Noel wrote: Our application uses classes in this jar xmlrpc-server3.1.3.jar .(it is the latest version) We are trying to migrate to Tomcat 10 but that jar uses the javax.server. package classes instead of the needed jakarta.server. pacakage. I have tried

jakartaee-migration-1.0.7 migration tool failure

2024-02-08 Thread Rick Noel
Our application uses classes in this jar xmlrpc-server3.1.3.jar .(it is the latest version) We are trying to migrate to Tomcat 10 but that jar uses the javax.server. package classes instead of the needed jakarta.server. pacakage. I have tried running this jar trough the latest Tomcat

<    4   5   6   7   8   9   10   11   12   13   >