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: 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: 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 i

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: 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 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

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 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
) your driver to CATALINA_BASE/lib Hope that helps, -chris On Sun, Jun 2, 2024 at 1:57 AM Christopher Schultz < ch...@christopherschultz.net> wrote: 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

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

Re: Tomcat 9 memory leak message

2024-06-02 Thread Christopher Schultz
this is correct > or not. > > Please advise, > > Many thanks! > Jenny > >> On Fri, May 31, 2024 at 3:50 PM Christopher Schultz < >> ch...@christopherschultz.net> wrote: >> >> Jenny, >> >>> On 5/31/24 14:52, Ying Jin wrote: >>&g

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

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 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: 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: 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: PersistentManager and ClassNotFoundException

2024-05-28 Thread Christopher Schultz
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 replications the problem? Mark On 23/05/2024 23:45, Jakub Królikowski wrote: Hi, I'm working with Tomcat 10.1. When a

Re: JVM crashing with caCertificatePath in server.xml

2024-05-21 Thread Christopher Schultz
Michael, On 5/21/24 03:32, Michael Osipov wrote: On 2024/05/20 13:30:43 Christopher Schultz wrote: Michael, On 5/20/24 06:52, Michael Osipov wrote: On 2024/05/17 15:11:58 Christopher Schultz wrote: Michael, On 5/17/24 03:42, Michael Osipov wrote: On 2024/05/16 21:37:34 Christopher Schultz

Re: Win10 installation progress

2024-05-21 Thread Christopher Schultz
Hello, On 5/18/24 23:40, DdC wrote: Gave up on installing 9.0.88. on Win10. Why did you give up? ZIP installation is a single command (either via CMD or UI shell). EXE installer is pretty straightforward, too. There's also a third-party installer that has a few more features including the

Re: JVM crashing with caCertificatePath in server.xml

2024-05-20 Thread Christopher Schultz
Michael, On 5/20/24 06:52, Michael Osipov wrote: On 2024/05/17 15:11:58 Christopher Schultz wrote: Michael, On 5/17/24 03:42, Michael Osipov wrote: On 2024/05/16 21:37:34 Christopher Schultz wrote: Michael, On 5/16/24 12:00, Michael Osipov wrote: On 2024/05/16 15:55:04 Andy Arismendi

Re: JVM crashing with caCertificatePath in server.xml

2024-05-17 Thread Christopher Schultz
Michael, On 5/17/24 03:42, Michael Osipov wrote: On 2024/05/16 21:37:34 Christopher Schultz wrote: Michael, On 5/16/24 12:00, Michael Osipov wrote: On 2024/05/16 15:55:04 Andy Arismendi wrote: Ok great! Thank you for taking the time and making the effort to look into this Michael, much

Re: Regarding Tomcat url redirection

2024-05-16 Thread Christopher Schultz
requirements almost as a game. I'm not sure I can help you any further at this point. -chris On Wed, May 15, 2024 at 2:16 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 5/15/24 04:43, lavanya tech wrote: Though to write you privately, regaridng the tomcat ur

Re: Regarding Tomcat url redirection

2024-05-16 Thread Christopher Schultz
requirements almost as a game. I'm not sure I can help you any further at this point. -chris On Wed, May 15, 2024 at 2:16 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 5/15/24 04:43, lavanya tech wrote: Though to write you privately, regaridng the tomcat ur

Re: JVM crashing with caCertificatePath in server.xml

2024-05-16 Thread Christopher Schultz
Michael, On 5/16/24 12:00, Michael Osipov wrote: On 2024/05/16 15:55:04 Andy Arismendi wrote: Ok great! Thank you for taking the time and making the effort to look into this Michael, much appreciated! Here is a dynamically linked, patched version until there is an official release:

Re: Regarding Tomcat url redirection

2024-05-15 Thread Christopher Schultz
> Unfortunately aliasing still doesnot work https://example.lbg.com <https://example.lbg.com> --> https://server.lbg.com:8443/towl <https://server.lbg.com:8443/towl> and many urls works The "aliasing" will always be weird. IMO it's better to redirect. If you change t

Re: Regarding Tomcat url redirection

2024-05-14 Thread Christopher Schultz
kinds of things like that. -chris On Tuesday, May 14, 2024, Christopher Schultz wrote: Lavanya, On 5/14/24 09:12, lavanya tech wrote: IMHO removing the port number is always the preferred solution — I never did it can we achieve this with tomcat or we need to setup an reverse proxy here

Re: JVM crashing with caCertificatePath in server.xml

2024-05-14 Thread Christopher Schultz
On 5/14/24 15:23, Andy Arismendi wrote: Sure thing - ADDITIONAL ENVIRONMENT INFO: libtcnative: tcnative-1.dll is included in the Tomcat 9.0.89 64-bit Windows zip download, not sure about the version... OpenSSL version: 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024) (with FIPS

Re: Regarding Tomcat url redirection

2024-05-14 Thread Christopher Schultz
13, 2024 at 10:17 PM lavanya tech wrote: Hi Chris, Sorry, If I did confuse. It’s important that https://server.lbg.com:8443/towl is always working. Goal is not to disable /towl, but just redirect or aliasing https//example.lbg.com/ to https://server.lbg.com:8443/towl Thanks, Lavanya On

Re: Regarding Tomcat url redirection

2024-05-14 Thread Christopher Schultz
at 10:17 PM lavanya tech wrote: Hi Chris, Sorry, If I did confuse. It’s important that https://server.lbg.com:8443/towl is always working. Goal is not to disable /towl, but just redirect or aliasing https//example.lbg.com/ to https://server.lbg.com:8443/towl Thanks, Lavanya On Monday, Ma

Re: Regarding Tomcat url redirection

2024-05-13 Thread Christopher Schultz
rk/ directory and restarting. --> I have this wierd behavior for some reason, thoudh index.jsp is located no changes were made to file. After deleting cookies url works where Am I going wrong. Thanks, Lavanya On Fri, May 10, 2024 at 6:50 PM Christopher Schultz < ch...@christopherschultz.net>

Re: Upgrade query

2024-05-13 Thread Christopher Schultz
Kalaivani, On 5/13/24 06:13, GANESAN, Kalaivani wrote: I have a question regarding upgrading to 9.0.86. The current version is 9.0.8 and needs to be upgraded to 9.0.86. We have apache tomcat running in our openptk servers. Do you have any detailed steps on the process? We have downloaded

Re: Regarding Tomcat url redirection

2024-05-10 Thread Christopher Schultz
Lavanya, On 5/10/24 06:03, lavanya tech wrote: If we create new java.filter as below then we can redirect the urls ? import javax.servlet.*; import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import

Re: Regarding Tomcat url redirection

2024-05-10 Thread Christopher Schultz
This should allow you to reach the application at both https://example.lbg.com/ and https://server.lbg.com/ as well as both of those with port 8443. Then use the applications and make sure they are working as expected. Then, we'll add the /towl handling. -chris On Thu, May 9, 2024 at

Re: Regarding Tomcat url redirection

2024-05-09 Thread Christopher Schultz
Take care to redirect relative to the SERVER and not to the application. 5b. Write your own servlet to do a specific redirect. I hope that helps, -chris On Wednesday, May 8, 2024, Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 5/8/24 06:48, lavanya tech wrote: I f

Re: FileUpload class not working with Tomcat 10.1

2024-05-09 Thread Christopher Schultz
Mark and Chuck, On 5/9/24 09:35, Chuck Caldarale wrote: You need the web.xml entries because you have extra configuration items (the settings) that aren’t part of the default JSP servlet definition. +1 If you didn't need to upload files to your JSP, you wouldn't have needed any of this in

Re: Regarding Tomcat url redirection

2024-05-09 Thread Christopher Schultz
ter/whatever. Take care to redirect relative to the SERVER and not to the application. 5b. Write your own servlet to do a specific redirect. I hope that helps, -chris On Wednesday, May 8, 2024, Christopher Schultz wrote: Lavanya, On 5/8/24 06:48, lavanya tech wrote: I figured out how

Re: Regarding Tomcat url redirection

2024-05-08 Thread Christopher Schultz
-chris On Tue, Apr 30, 2024 at 5:44 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 4/30/24 07:10, lavanya tech wrote: Can you tell me how to do the below ? How should I setup Tomcat in server.xml ? If you want to use port 443 (the default port for HTTPS)

Re: [EXTERNAL] RE: After Windows Server Restart, tomcat generating New JSESSIONID even with <%@ page session="false" %>

2024-05-07 Thread Christopher Schultz
Joey, On 5/7/24 10:50, Joey Cochran wrote: Coud this be the culprit ? ${CATALINA_BASE}/conf/context.xml Possible, but the report was that every single request generates a new JSESSIONID, not that every session seems to have expired and needs to be re-initialized.

Re: FileUpload class not working with Tomcat 10.1

2024-05-07 Thread Christopher Schultz
(for schDistImportResults.jsp) was based on the XML suggestion from Christopher Schultz back in November, 2023. Since only the one jsp program was involved, there was no discussion of how to specify more than one program in web.xml. So, I can (and will) give the servlets different names in web.xml,

Re: Monitoring and Tuning Tomcat

2024-05-01 Thread Christopher Schultz
Mark and Jerry, On 5/1/24 04:00, Mark Thomas wrote: On 30/04/2024 21:24, Jerry Malcolm wrote: I'm trying to optimize my instance, CPU, tuning, and size requirements for Tomcat.  It's easy to see CPU usage.  But this TC instance is running a lot of microservices that are often in and out

Re: Regarding Tomcat url redirection

2024-04-30 Thread Christopher Schultz
. Please clarify I am not able to figure this out and I have this issue many days pending. How to make it work with port 8443 and with out port Also I wanted to use weburl with alias name permanently instead of the hostname. How can I achieve both Thanks, Lavanya --> On Fri, Apr 26, 2024 at

Re: Regarding Tomcat url redirection

2024-04-26 Thread Christopher Schultz
i Chris, Thanks I will request new certificate with SANs and I will try to fix the things from our end. Best Regards, Lavanya On Wed, Apr 24, 2024 at 11:12 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 4/24/24 15:39, lavanya tech wrote: Local host mean

Re: Regarding Tomcat url redirection

2024-04-26 Thread Christopher Schultz
at 11:12 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 4/24/24 15:39, lavanya tech wrote: Local host means the machine i am logged in to server.lbg.com You are right, example.lbg.com is CNAME record. Okay, thanks for clearing that up. I dont have any

Re: Regarding Tomcat url redirection

2024-04-24 Thread Christopher Schultz
, April 24, 2024, Christopher Schultz < ch...@christopherschultz.net> wrote: Lavanya, On 4/24/24 07:37, lavanya tech wrote: Sorry I understood wrongly here with regards to my environment, Let me start from the beginning. I donot want to use redirect at all. I simply wanted to force apache

Re: Tomcat closes connections on unexpected status codes

2024-04-24 Thread Christopher Schultz
Stefan, On 4/24/24 13:58, Stefan Ansing wrote: Op do 18 apr 2024 om 17:42 schreef Mark Thomas : On 18/04/2024 15:18, Stefan Ansing wrote: Hi Rémy, Mark, I just want to make sure that we’re understanding each other. I can see that the connection needs to be closed in certain conditions to

Re: Regarding Tomcat url redirection

2024-04-24 Thread Christopher Schultz
k you need any use of the RewriteValve unless you want to handle sending HTTP 302 redirect responses to insecure requests without specifying the CONFIDENTIAL transport-guarantee in your application's web.xml file. But I don't see any reason NOT to have that in there. -chris On Tue, Apr 23, 2024 at 10:5

Re: Installation on Win 10 failure.

2024-04-23 Thread Christopher Schultz
Hello, A few things. 1. Are you really coming from Tomcat 4.04? 2. Are you really using Java 18? It's basically dead. Use Java 17 or 21, which are both Long Term Support (LTS) versions, especially if you are only going to upgrade once every 20 years. 3. You should not have CLASSPATH set.

Re: AW: FileUpload class not working with Tomcat 10.1

2024-04-23 Thread Christopher Schultz
JSP programs to all have file uploading enabled and launched by the correspoding requesting program? Can you post both definitions and the s for each of them? It's still yucky to use a JSP to do this IMHO. -chris On Thu Nov 16 14:36:21 2023 Christopher Schultz wrote: Mark, Apologies

Re: Regarding Tomcat url redirection

2024-04-23 Thread Christopher Schultz
-chris On Fri, Apr 19, 2024 at 3:03 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Ammu, On 4/19/24 08:32, lavanya tech wrote: Thank you very much. I removed for example.com as well as adding an in server.xml I copied context.xml file /git/app/apache-tomcat-10.1.

Re: Regarding Tomcat url redirection

2024-04-19 Thread Christopher Schultz
ROOT web application name instead of "towl". -chris On Fri, Apr 19, 2024 at 1:21 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Ammu, On 4/18/24 09:34, lavanya tech wrote: I am attaching server.xml and context.xml and rewrite.config files. The paths are /git/app

Re: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Christopher Schultz
if "Not Found" was replaced by "Found to be empty" in all cases. 204 No Content is normally used with PUT and DELETE requests. Yes, you can use those. 200 would also make sense and, of course 201 for new resources. -chris -Original Message- From: Christopher Sc

Re: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Christopher Schultz
Pawel, On 4/18/24 20:21, Pawel Veselov wrote: On 18/04/2024 15:18, Stefan Ansing wrote: Hi Rémy, Mark, I just want to make sure that we’re understanding each other. I can see that the connection needs to be closed in certain conditions to prevent request smuggling attacks. I certainly don’t

Re: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Christopher Schultz
Pawel, On 4/18/24 20:32, Pawel Veselov wrote: On Thu, Apr 18, 2024 at 9:40 AM Adwait Kumar Singh wrote: I'm not (yet) convinced distinguishing between those scenarios is always going to be possible. I have a Tomcat patch which we use at work to do this, i.e always close the connection if

Re: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Christopher Schultz
Mark, On 4/18/24 11:38, Mark Thomas wrote: On 18/04/2024 15:16, Adwait Kumar Singh wrote: I think we should *always* close connections in cases where it can lead to request smuggling vulnerabilities like when there is an error during header or request line parsing, but allowing the user to

Re: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Christopher Schultz
All, On 4/18/24 10:16, Adwait Kumar Singh wrote: I think we should *always* close connections in cases where it can lead to request smuggling vulnerabilities like when there is an error during header or request line parsing, but allowing the user to control connection close when the status is

Re: Regarding Tomcat url redirection

2024-04-19 Thread Christopher Schultz
o a stock Tomcat less significant and easier to apply to new versions if/when necessary. -chris On Thu, Apr 18, 2024 at 2:17 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Ammu, On 4/18/24 07:45, lavanya tech wrote: I added classname rewrite val

Re: Regarding Tomcat url redirection

2024-04-18 Thread Christopher Schultz
Ammu, On 4/18/24 07:45, lavanya tech wrote: I added classname rewrite valeus in contex.xml file . created rewrite.config so both of them is located under conf under apache-tomcat. https://www.example.com:/example [R=301,L] So according to the

Re: Question on the ErrorReportValve

2024-04-18 Thread Christopher Schultz
Jon, On 4/17/24 13:26, Mcalexander, Jon J. wrote: Thank you. The documentation makes it somewhat confusing because it starts out that a Valve can exist in Engine, Host, and Context Containers, and then in the subsequent valve list is the ErrorReportValve, but it doesn’t make it clear as to

Re: Unexpected behavior of filters

2024-04-16 Thread Christopher Schultz
Konstantin, On 4/16/24 13:16, Konstantin Kolinko wrote: вт, 16 апр. 2024 г. в 18:17, Christopher Schultz : All, I'm not sure if this is the first time I've tried something like this, but I was surprised by the behavior I observed today when trying to configure a new Filter. I have

Unexpected behavior of filters

2024-04-16 Thread Christopher Schultz
All, I'm not sure if this is the first time I've tried something like this, but I was surprised by the behavior I observed today when trying to configure a new Filter. I have an existing Filter that looks at Cookies provided in a request. I wanted to add a new Filter that takes request

Re: Retrieve server.built, server.number

2024-04-15 Thread Christopher Schultz
On 4/11/24 10:59, Mark Thomas wrote: On 11/04/2024 15:49, Bill Stewart wrote: On Wed, Apr 10, 2024 at 2:14 PM Mark Thomas wrote: ... and it might represent an information leakage vulnerability in your application. Be Careful. Shall we start the flame war now on whether exposing the

Re: Question on the ErrorReportValve

2024-04-15 Thread Christopher Schultz
Jon, On 4/15/24 12:36, Mcalexander, Jon J. wrote: Quick question on the ErrorReportValve and location within the server.xml file. I know that typically this would be inside the element, but if you have Multiple elements, do you add the valve to each Host section, or can it be placed at the

Re: [EXT]Re: .intermittent InvocationTargetException errors

2024-04-15 Thread Christopher Schultz
yote.http11.Http11Processor.service(Http11Processor.java:391) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896) -chris -Original Message- From: Christopher Schultz Sent: Monday, April 15

Re: .intermittent InvocationTargetException errors

2024-04-15 Thread Christopher Schultz
Rick, On 4/15/24 10:04, Rick Noel wrote: Hello, I am using Tomcat 10 with java 17. I am getting itermitant jsp compile errors below. Some times the page compiles correctly but sometimes the page hits result in below errors java.lang.reflect.InvocationTargetException at

Re: [EXT]Re: [EXT]Re: Tomcat 10 session replication fails

2024-04-15 Thread Christopher Schultz
Rick, On 4/15/24 08:12, Rick Noel wrote: Hi Chuck, Your suggestion did not work. I defined Membership as suggested... and still getting this in the logs org.apache.catalina.ha.session.DeltaManager.startInternal Starting clustering manager at [##0001] 15-Apr-2024

Re: [OT] Tomcat 9.0.83 - SSL handshake stops working for Google API calls after a while

2024-04-11 Thread Christopher Schultz
of the symptoms. -chris On Thu, Apr 11, 2024 at 2:25 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Marcos, Marking as "off topic" because this is not Tomcat-related. Please see below... On 4/11/24 08:28, Marcos Peña wrote: Hi, I am looking for help with a

Re: [OT] Tomcat 9.0.83 - SSL handshake stops working for Google API calls after a while

2024-04-11 Thread Christopher Schultz
Marcos, Marking as "off topic" because this is not Tomcat-related. Please see below... On 4/11/24 08:28, Marcos Peña wrote: Hi, I am looking for help with a strange issue we are experiencing when trying to use Google APIs from a web application that is deployed on Tomcat 9.0.83. After a

Re: Retrieve server.built, server.number

2024-04-11 Thread Christopher Schultz
Mark, On 4/10/24 16:12, Mark Thomas wrote: On 10/04/2024 21:15, Christopher Schultz wrote: All, On 4/10/24 4:00 AM, Mark Thomas wrote: On 09/04/2024 17:17, prat 007 wrote: Hi All, I would like to know is there a way to find tomcat's server.built and server.number remotely using tool loke

Re: Tomcat log warnings for connection parameter limits?

2024-04-11 Thread Christopher Schultz
Baron, On 4/9/24 16:33, Baron Fujimoto wrote: I'm investigating occasional 503 errors for our CAS service running in a Tomcat 10.1.x container. The 503s appear to correlate with some traffic spikes at the same time. The connector is configured as follows: Can Tomcat log info such as

Re: Retrieve server.built, server.number

2024-04-10 Thread Christopher Schultz
All, On 4/10/24 4:00 AM, Mark Thomas wrote: On 09/04/2024 17:17, prat 007 wrote: Hi All, I would like to know is there a way to find tomcat's server.built and server.number remotely using tool loke curl or from browser? In a default installation, no. You'd have to write a servlet that

Re: Tomcat in a Windows environment : new keystore possibilities

2024-04-08 Thread Christopher Schultz
David, On 4/8/24 05:35, David Wooffindin wrote: Referring to the documentation on Apache Tomcat 9 Configuration Reference (9.0.87) - The HTTP Connector keystore types, i wanted to get mentioned that a new set of

Re: Migrating from Tomcat 9.0.x to 10.1.x

2024-04-04 Thread Christopher Schultz
Amit, On 4/4/24 22:21, Amit Pande wrote: I am in the process of migrating from Tomcat 9 (9.0.87) to Tomcat 10.1 (10.1.20). https://tomcat.apache.org/migration-10.1.html Using the migration tool, I have migrated the applications (which use Spring libraries 5.x). While testing the migrated

Re: org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Christopher Schultz
Eric, On 4/4/24 13:43, Eric Fetzer wrote: Hi All, When I originally set up my tomcat instance, I added the following to allow manager access under /opt/tomcat/webapps/manager/META-INF/context.xml: That worked wonderfully. Now I'm trying to add another IP range by changing it to: This is

Re: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
way to do that is by defining it in server.xml and then linking it through your applications' WEB-INF/web.xml files. You should not have to touch CATALINA_BASE/conf/context.xml. -chris -Original Message- From: Christopher Schultz Sent: Friday, March 29, 2024 2:21 PM To: Tomcat Users

Re: FW: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
n just context.xml or server.xml If have the resource defined in CATALINA_BASE/conf/context.xml And CATALINA_BASE/conf/server.xml Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Christopher Schultz Sent: Friday, March 29, 2024 11:47 AM To: users@t

Re: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
upgrading Tomcat much easier. -chris -Original Message----- From: Christopher Schultz Sent: Friday, March 29, 2024 11:47 AM To: users@tomcat.apache.org Subject: [EXT]Re: how to define database resource in just context.xml or server.xml Rick, On 3/29/24 09:48, Rick Noel wrote: Can someone t

Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
Rick, On 3/29/24 09:48, Rick Noel wrote: Can someone tell me why I need to have my database source defined in both my context.xml and server.xml? I thought we are suppose to define it in only one location? It's definitely not a requirement to specify it in both places. I can only log into my

Re: [EXT]Re: [EXT]Re: performance tunning of Tomcat 10

2024-03-28 Thread Christopher Schultz
beyond just throwing X requests at a site. -chris -Original Message- From: Christopher Schultz Sent: Thursday, March 28, 2024 3:09 PM To: users@tomcat.apache.org Subject: [EXT]Re: [EXT]Re: performance tunning of Tomcat 10 Rick, On 3/27/24 09:22, Rick Noel wrote: -Original Message

Re: [EXT]Re: performance tunning of Tomcat 10

2024-03-28 Thread Christopher Schultz
Rick, On 3/27/24 09:22, Rick Noel wrote: -Original Message- From: Christopher Schultz Sent: Wednesday, March 27, 2024 8:24 AM To: Tomcat Users List ; Rick Noel Cc: Voodoo nmulcahy gmail ; David Jung Subject: [EXT]Re: performance tunning of Tomcat 10 Rick, On 3/27/24 07:53, Rick

Re: performance tunning of Tomcat 10

2024-03-27 Thread Christopher Schultz
Rick, On 3/27/24 07:53, Rick Noel wrote: I was wondering if the apache foundation has any tools we can use to fine tune Tomcat 10. Tools to deteming how to set the best heap size for Tomcat startup and the best connection attributes of minSpareThreads and MaxThreads. What is your goal? I

Re: Tomcat Internal Architect for JSP compilation?

2024-03-26 Thread Christopher Schultz
? /tmp is supposed to be for actually temporary files. These files could live for decades if you never changed your source .jsp files or re-deployed your application. -chris On Thu, Mar 21, 2024 at 7:24 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Subudh, On 3/21/24 07:32, Subodh

Re: Speeding up tomcat

2024-03-25 Thread Christopher Schultz
Alex, On 3/25/24 13:06, Alex Hatcher wrote: Java version: 11.0.20 Tomcat version: 9.0.59 Are you able to upgrade these? Your Tomcat is nearly 2 years old and your Java is ... I'm not sure how old. This will have nothing to do with performance. Just security and general stability. OS

[ANN] Apache Tomcat 10.1.20 Available

2024-03-25 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.1.20. Apache Tomcat 10 is an open source software implementation of the Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Authentication and Jakarta Annotations

[ANN] Apache Tomcat 8.5.100 Available

2024-03-25 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.100. *This will likely be the final release of Apache Tomcat 8.5. Please see the EOL notice linked at the end of this message.* Apache Tomcat 8 is an open source software implementation of the Java Servlet,

Re: Tomcat 9.0.87 - status 400 in css / images

2024-03-25 Thread Christopher Schultz
DAngel, On 3/22/24 16:14, DAngel wrote: Tomcat 9.0.87 (and Tomcat 9.0.76) Ubuntu 22.04 (and Red hat 8) java 8 : openjdk version "1.8.0_382" protocol: HTTP I have migrated an application from tomcat 7 (7.0.76) to tomcat 9.0.76 (and also to tomcat 9.0.87) After upgrading to Tomcat 9.0.76, the

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
Robert. On 3/22/24 14:11, Robert Turner wrote: Thanks for figuring it out -- I will keep that in mind when I go to split our "mega session object" up as that will impact some of the decisions for sure. Yeah, I guess you end up with a "dummy object" on the session as a result -- I guess we got

Re: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Christopher Schultz
Rick, On 3/22/24 13:33, Rick Noel wrote: I do not want to replicate customer because that class does not implement serializable I was looking for someway that the Manager would NOT try to replicate it This is an allow-list which is much more secure than a deny-list. It's a regular

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
All, On 3/22/24 09:59, Christopher Schultz wrote: All, On 3/22/24 09:33, Robert Turner wrote: On Fri, Mar 22, 2024 at 9:28 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPas

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
All, On 3/22/24 09:33, Robert Turner wrote: On Fri, Mar 22, 2024 at 9:28 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPassivate and sessionDidActivate callbacks on startup. Odd that you are not.

Re: Memory leak in EncodingDetector?

2024-03-22 Thread Christopher Schultz
in yourself, or grab 10.1.x from GitHub, or wit for Tomcat 10.1.21 to be released (10.1.20 has already been rolled and the voting will end shortly, so you'll have to wait for the next release). -chris On Thu, Mar 21, 2024 at 1:44 PM Christopher Schultz wrote: Simon, On 3/20/24 15:36, Simon

Re: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Christopher Schultz
. These files could live for decades if you never changed your source .jsp files or re-deployed your application. -chris On Thu, Mar 21, 2024 at 7:24 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Subudh, On 3/21/24 07:32, Subodh Joshi wrote: Expert, Recently i came across a

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPassivate and sessionDidActivate callbacks on startup. Odd that you are not. That's how we achieve the same. On 3/21/24 16:21, Robert Turner wrote: Just to add a bit more information, our handler class, for better or for

  1   2   3   4   5   6   7   8   9   10   >