Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christopher Schultz
Christoph, On 11/28/23 08:26, Christoph Kukulies wrote: not that I kew of (changes in JVM arguments). I will try your suggestion: -Djava.net.preferIPv4Stack=true and thanks, it helped: I put it into /etc/defaults/tomcat9 (under Ubuntu 22.04) JAVA_OPTS="-Djava.awt.headless=true -Djava.net.pre

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christopher Schultz
config/http.html#Standard_Implementation Am 28.11.2023 um 15:15 schrieb Christopher Schultz mailto:ch...@christopherschultz.net>>: Christoph, On 11/28/23 08:26, Christoph Kukulies wrote: not that I kew of (changes in JVM arguments). I will try your suggestion: -Djava.net.preferIPv4Stack=true

Re: 400 Bad Request - where do I find the detailed reason for the bad request so I can fix it?

2023-11-28 Thread Christopher Schultz
Graham, On 11/28/23 12:12, Graham Leggett wrote: On 28 Nov 2023, at 09:41, Mark Thomas wrote: What do I need to do to see the exception that generated the bad request, so that I know specifically what’s wrong and can fix it? Enabling debug logging for org.apache.coyote.http11.Http11Proces

Re: 400 Bad Request - where do I find the detailed reason for the bad request so I can fix it?

2023-11-29 Thread Christopher Schultz
Graham, On 11/29/23 05:01, Graham Leggett wrote: On 28 Nov 2023, at 21:10, Graham Leggett wrote: So the reason we get a 400 Bad Request with no error detail is that we arrive at this line with throwable set to null: https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/valves

Re: 400 Bad Request - where do I find the detailed reason for the bad request so I can fix it?

2023-11-29 Thread Christopher Schultz
Graham, On 11/28/23 14:11, Graham Leggett wrote: On 28 Nov 2023, at 18:42, Christopher Schultz wrote: In your debugger, when you break-on-exception, what happens if you allow the exception to propagate up to the first exception-handler? Does Tomcat swallow the exception? Or it it caught

Re: How to get Remote user value in Apache

2023-11-29 Thread Christopher Schultz
Koustav, On 11/29/23 10:22, Naha, Koustav wrote: I am using Apache(2.4) in the front end and Jboss(7.4) in the backend. The page is coming up and after giving the user id and password it is being authenticated. next is when we go to some create function which takes the REMOTE_USER value and inse

Re: webdav and libreoffice

2023-11-29 Thread Christopher Schultz
Mark, On 11/29/23 14:09, Mark Thomas wrote: It was this change: https://github.com/apache/tomcat/commit/147fee447e27ec14e3001d9c727db1dcd4cb930c Reason phrase is an optional element of the HTTP response. This looks like a bug in whichever WebDAV client library is being used by LibreOffice.

Re: Tracking keep alive connections

2023-11-29 Thread Christopher Schultz
Daniel, On 11/28/23 15:23, Daniel Andres Pelaez Lopez wrote: Hi community, We have a heavy workload where the client uses a lot of keep-alive connections, and we want to measure how many keep-alive connections are open, but we cannot find metrics (MBean) with that information. The closest one i

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-11-29 Thread Christopher Schultz
Sai Vamsi, On 11/29/23 03:50, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: I am trying to add Tomcat-JMX Integration to the Datadog Agent, in order to achieve Remote Monitoring . I am following the docs https://docs.datadoghq.com/containers/guide/autodiscovery-with-jmx/?tab=helm#au

Re: Tracking keep alive connections

2023-11-30 Thread Christopher Schultz
Daniel, On 11/30/23 07:08, Daniel Andres Pelaez Lopez wrote: What kind of number are you looking for? I would say something like the time a connection has been open. Can you please give the JMX path to tomcat_connections_keepalive_current and tomcat_connections_current? I have no idea what y

Re: Tracking keep alive connections

2023-12-01 Thread Christopher Schultz
Daniel, On 12/1/23 00:09, Daniel Andres Pelaez Lopez wrote: Christopher, So... when a connection is established, save the current timestamp on the connection. When it closes, take the delta of the start-of-connection and end-of-connection, and add it to a bounded queue (say, 100? 1000?) of mos

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-01 Thread Christopher Schultz
Manak, On 12/1/23 03:27, Manak Bisht wrote: Hi, I am trying to implement non-sticky session replication using Delta Manager with static membership. The nodes are across two different machines. This isn't really relevant to your issue, but I would *always* recommend enabling stickiness. Why?

Re: (No members active in cluster group) Cannot discover members in cluster using Delta Manager with static membership Unicast

2023-12-01 Thread Christopher Schultz
Peter, On 12/1/23 10:12, l...@kreuser.name wrote: Chuck, Am 01.12.2023 um 16:07 schrieb Chuck Caldarale : On Dec 1, 2023, at 02:27, Manak Bisht wrote: Hi, I am trying to implement non-sticky session replication using Delta Manager with static membership. The nodes are across two different

Re: Tomcat 9 build from scratch

2023-12-01 Thread Christopher Schultz
Aditya, On 12/1/23 12:48, Aditya Shastri wrote: Yes. Equally importantly it also ensures that the code is compiled against the Java 8 API. > Makes sense! It is used for property replacement in the documentation for the minimum Java version required at runtime. We do it this way so the docume

Weird CSRF prevention behavior

2023-12-01 Thread Christopher Schultz
All, I'm experimenting with the CsrfPreventionFilter in Tomcat 8.5. I've had issues with it in the past so I haven't actually enabled it in any of my applications, but I'm sufficiently motivated at this point to get it done. My "application" is actually split up into two applications, each r

Re: Weird CSRF prevention behavior

2023-12-04 Thread Christopher Schultz
22.28 Christopher Schultz ( ch...@christopherschultz.net) kirjoitti: All, I'm experimenting with the CsrfPreventionFilter in Tomcat 8.5. I've had issues with it in the past so I haven't actually enabled it in any of my applications, but I'm sufficiently motivated at this

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-04 Thread Christopher Schultz
Sai Vamsi, On 12/4/23 03:53, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Firstly thanks for adding a point me in asking me to check, if the annotations are reflecting in the Java process, which opened me a door to add the concerned annotations in correct place., by adding in java_

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-05 Thread Christopher Schultz
Thanks, -chris From: Christopher Schultz Sent: Monday, December 4, 2023 23:22 To: users@tomcat.apache.org Subject: Re: [EXT] Re: Datadog _ JMX Integration facing connection issues. Sai Vamsi, On 12/4/23 03:53, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Firstly thanks for addin

Re: Tomcat Build Issue

2023-12-05 Thread Christopher Schultz
Mark, On 12/5/23 07:15, Mark Thomas wrote: On 05/12/2023 09:45, Burle, Saicharan wrote: Hi All, I am trying to build a tomcat instance in a net new server and getting the below error while starting. Although instance has come up but I am unable to debug the below error. Can someone please as

Re: Weird CSRF prevention behavior

2023-12-05 Thread Christopher Schultz
All, Ping. Any ideas? -chris On 12/1/23 15:26, Christopher Schultz wrote: All, I'm experimenting with the CsrfPreventionFilter in Tomcat 8.5. I've had issues with it in the past so I haven't actually enabled it in any of my applications, but I'm sufficiently motivated

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-06 Thread Christopher Schultz
itself, or only internally to the container? -chris Thanks & Regards, -- SAI VAMSI .B Senior DevOps Engineer ________ From: Christopher Schultz Sent: Tuesday, December 5, 2023 19:19 To: users@tomcat.apache.org Subject: Re: [EXT] Re: Datadog _ JMX Integration fac

Re: Thread Pool Question

2023-12-06 Thread Christopher Schultz
William, On 12/5/23 14:39, William Crowell wrote: I should clarify the ask here… I have some long running JDBC queries against Oracle, and I do not want to tie up Tomcat’s web thread pool with them. I would only have between 1-10 threads in this pool. Executors aren't directly-accessible by

Re: Looking for examples...

2023-12-06 Thread Christopher Schultz
Jon, On 12/5/23 19:02, Mcalexander, Jon J. wrote: I am trying to find decent examples for Property Replacements in Catalina.properties. I have an instance that is giving me the following Warning and it bugs me: Dec 05, 2023 5:48:51 PM org.apache.tomcat.util.digester.Digester replaceSystemProp

Re: Looking for examples...

2023-12-06 Thread Christopher Schultz
at we've got. Plus, k8s can act as a configuration-deployment system and it can do that by writing directories full of configuration files like the one used by (wait for it) ServiceBindingPropertySource. So that's the what and why with my example(s). Hope that helps, -chris -Ori

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-07 Thread Christopher Schultz
you are both configuring your YAML file incorrectly and also looking for the process incorrectly. -chris From: Christopher Schultz Sent: Wednesday, December 6, 2023 20:40 To: users@tomcat.apache.org Subject: Re: [EXT] Re: Datadog _ JMX Integration facing conne

Re: 9.0.83 addSslHostConfig failures?

2023-12-07 Thread Christopher Schultz
Daniel, On 12/6/23 23:19, Daniel Skiles wrote: Please disregard that, I got overexcited. It looks like you can query the operation, and it will return the correct name and the correct parameters, but when you try to run it, you get the following stack trace: Caused by: javax.management.Service

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-08 Thread Christopher Schultz
Daniel, On 12/7/23 13:25, Daniel Skiles wrote: All, I've been doing some testing, and I'm pretty sure the addSslHostConfig operation on ProtocolHandler is busted in 9.0.83. In versions prior to 9.0.82, you can call the operation with a single argument of type SSLHostConfig. In 9.0.82, that

Re: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-08 Thread Christopher Schultz
Sai Vamsi, On 12/8/23 00:43, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Hey Christopher., Greetings of the day. 1. Might I have confused you with posting the arguments directly ., Yeah as i just shared you the annotations with comments , to state you the stuff i am using., B

Re: JAVA -tomcat- Request header is too large

2023-12-08 Thread Christopher Schultz
Mark, On 12/8/23 06:50, Mark Thomas wrote: On 08/12/2023 09:27, Ivano Luberti wrote: Il 07/12/2023 17:51, Mark Thomas ha scritto: On 07/12/2023 15:37, Ivano Luberti wrote: Hi, since a few days these errors started showing in my log files: 06-Dec-2023 07:39:56.082 INFO [http-nio-8080-exec-58

Re: JAVA -tomcat- Request header is too large

2023-12-11 Thread Christopher Schultz
ganization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you believe this is a phishing email, use the Report to Cybersecurity icon in Outlook. On 08/12/2023 22:01, Christopher Schultz wrote: Are request-ids always allocated, or on

Re: Weird CSRF prevention behavior

2023-12-11 Thread Christopher Schultz
Cris, On 12/11/23 12:48, Berneburg, Cris J. - US wrote: Hi Chris Any ideas? About EITHER issue? Ping. Any ideas? Yeah, and hopefully you won't gag too much. :-P [SNIP] My application is using log4j2, but that library is only used by the application and the JAR file is in WEB-INF/lib/. I w

[ANN] Apache Tomcat 8.5.97 available

2023-12-12 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.97. Apache Tomcat 8 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 8.5.97 is a bugfix and fea

Apache Tomcat 10.1.17 Available

2023-12-12 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.1.17. 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 specificati

Re: channelStartOptions for cluster with static membership

2023-12-12 Thread Christopher Schultz
Manak, On 12/12/23 10:05, Manak Bisht wrote: To use *DeltaManager* with unicast (static membership), the Tomcat 8.5 documentation (https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html) states that the channelStartOptions should be equal to *3*. However, the value should be left as the d

Re: Typo in the release announcement

2023-12-12 Thread Christopher Schultz
Anmed, On 12/12/23 12:51, Ahmed Ashour wrote: Hi all, In https://tomcat.apache.org/, there are three places of occurs during HTTP HTTP request processing with an extra `HTTP`. Thanks,Ahmed Thanks for the report. I've fixed the web site, but we won't bother to re-send the release announcem

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-13 Thread Christopher Schultz
hat parameters are you passing it and what types? What parameters and types are expected by the operation you are trying to invoke? -chris On Fri, Dec 8, 2023 at 4:55 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Daniel, On 12/7/23 13:25, Daniel Skiles wrote: All, I&#

Re: [EXT] Datadog _ JMX Integration facing connection issues.

2023-12-14 Thread Christopher Schultz
Sai Vamsi, On 12/14/23 00:26, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Hai Chuck., Thanks for jumping in., thats what my concern is. as previously added by Chris, I have added my annotations in Catalina_opts ., Which is preferred by Java_Process for adding the annotations., But

Re: security-constraint url-pattern question

2023-12-14 Thread Christopher Schultz
Kent, On 12/14/23 09:13, ResSoft wrote: I am currently forcing my app to use https. Here is what I have in my app web.xml file and it works as intended securedapp /* CONFIDENTIAL I also now want to restrict the browser from pulling up files in certain

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-14 Thread Christopher Schultz
tly one operation defined: the two-argument version. So I'm not sure how you are ever able to invoke this operation with only a single argument. -chris On Wed, Dec 13, 2023 at 10:27 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Daniel, On 12/12/23 19:45, Daniel

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-14 Thread Christopher Schultz
arguments match, otherwise you're going to randomly pick one of the two methods and fail half the time. Rémy On Wed, Dec 13, 2023 at 10:27 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Daniel, On 12/12/23 19:45, Daniel Skiles wrote: I apologi

Re: I can't find how to stop TOMCAT during INITIALIZATION phase

2023-12-15 Thread Christopher Schultz
All, On 12/15/23 03:29, Simon Matter wrote: Hi, Our question is: 1. It is possible to stop tomcat during initialization phase? 2. If yes how and if not are any plans to implement it in future versions? It seems to me that my solutions for now are: 1. sending SIGKILL signal to tomcat (this is

Re: [EXTERNAL] - Re: Partitioned cookies

2023-12-15 Thread Christopher Schultz
Mark, On 12/15/23 04:03, Mark Thomas wrote: On 14/12/2023 21:15, André van der Lugt wrote: From: Chuck Caldarale Sent: Wednesday, November 15, 2023 9:48 AM To: Tomcat Users List Subject: [EXTERNAL] - Re: Partitioned cookies On Nov 15

Re: Should allowHostHeaderMismatch be case sensitive

2023-12-15 Thread Christopher Schultz
Mark, On 12/15/23 04:12, Mark Thomas wrote: On 11/12/2023 17:20, Mark Thomas wrote: On 11/12/2023 17:08, David Cleary wrote: Just want to check if this is by design. The above property default was changed to better secure the default configuration. We started having some tests fail due to thi

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-15 Thread Christopher Schultz
uot;Fixing" the introspection process is a better move. -chris On Thu, Dec 14, 2023 at 10:17 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Daniel, On 12/14/23 09:43, Daniel Skiles wrote: Do you have any pointers on how to do that using JMX? So far as I can tell from w

Re: Issues of Ahead of Time compilation support

2023-12-15 Thread Christopher Schultz
Jun, On 12/15/23 08:56, Jun Suzuki wrote: 2023年12月15日(金) 20:37 Rémy Maucherat : On Fri, Dec 15, 2023 at 11:54 AM Jun Suzuki wrote: Rémy Thank you so much for your support. May I confirm a little bit further regarding your reply. 2023年12月15日(金) 17:08 Rémy Maucherat : On Fri, Dec 15, 2023

Re: Weird CSRF prevention behavior

2023-12-20 Thread Christopher Schultz
Konstantin, On 12/20/23 12:10, Konstantin Kolinko wrote: пт, 1 дек. 2023 г. в 23:27, Christopher Schultz : [...] I build-from-source and launch my custom-build Tomcat with my application in it. No logging. Oh, right... logging.properties. So I add this to my conf/logging.properties file

Re: need features list that were removed in tomcat 10 while moving from tomcat 9

2023-12-26 Thread Christopher Schultz
Rajendra, On 12/22/23 04:31, Rathore, Rajendra wrote: We are migrating from tomcat 9 to tomcat 10, we run the migration tool on our codebase, that work perfectly, can you please share the changes from 9 to 10, we are interested in removed API or features that we can fix manually as migrator tool

Re: Admin password for Tomcat

2023-12-26 Thread Christopher Schultz
Jerry, On 12/24/23 19:18, Jerry Malcolm wrote: Chris, On 11/8/2023 2:43 PM, Christopher Schultz wrote: Jerry, On 11/6/23 23:22, Jerry Malcolm wrote: On 11/5/2023 11:54 AM, Jerry Malcolm wrote: On 11/5/2023 9:26 AM, Christopher Schultz wrote: Jerry, On 11/4/23 20:17, Jerry Malcolm wrote

Re: [EXT] Datadog _ JMX Integration facing connection issues.

2023-12-28 Thread Christopher Schultz
ay need to consult the Spring documentation to see how best to set all of those JVM parameters. -chris ____ From: Christopher Schultz Sent: Thursday, December 14, 2023 20:33 To: users@tomcat.apache.org Subject: Re: [EXT] Datadog _ JMX Integration facing connection is

Re: Admin password for Tomcat

2023-12-28 Thread Christopher Schultz
Jerry. On 12/27/23 02:13, Jerry Malcolm wrote: I implemented the filter as you suggested.  But I guess I'm going to need some education on sessions.  Down in a user profile web page I have a button to "Impersonate". I'm with you so far. I create the GenericPrincipal object and store it in t

Re: Admin password for Tomcat

2023-12-29 Thread Christopher Schultz
Jerry, On 12/28/23 18:33, Jerry Malcolm wrote: Chris, On 12/28/2023 3:38 PM, Christopher Schultz wrote: Jerry. On 12/27/23 02:13, Jerry Malcolm wrote: I implemented the filter as you suggested.  But I guess I'm going to need some education on sessions.  Down in a user profile web p

Re: Servlet-Mapping having %-sign

2023-12-29 Thread Christopher Schultz
Peter, On 12/29/23 07:56, Peter Rader wrote: having a URL like this: https://localhost:8443/index.html works perfect. This is my mapping: Nano-Nano-Servlet /index.html Nano-Nano-Servlet *.ts Unfortunately this URI does not load (because of the %-sign): https://localhost:8443/@rm

Re: Admin password for Tomcat

2023-12-30 Thread Christopher Schultz
Jerry, On 12/30/23 01:20, Jerry Malcolm wrote: Chris, On 12/29/2023 11:22 AM, Christopher Schultz wrote: Jerry, On 12/28/23 18:33, Jerry Malcolm wrote: Chris, On 12/28/2023 3:38 PM, Christopher Schultz wrote: Jerry. On 12/27/23 02:13, Jerry Malcolm wrote: I implemented the filter as you

Re: Aw: Re: Servlet-Mapping having %-sign

2023-12-30 Thread Christopher Schultz
Peter, On 12/30/23 01:41, Peter Rader wrote: Peter, On 12/29/23 07:56, Peter Rader wrote: having a URL like this: https://localhost:8443/index.html works perfect. This is my mapping: Nano-Nano-Servlet /index.html Nano-Nano-Servlet *.ts Unfortunately this URI does not load (because of th

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

2023-12-30 Thread Christopher Schultz
Brian, On 12/29/23 20:48, Brian Braun wrote: Hello, First of all: Christopher Schultz: You answered an email from me 6 weeks ago. You helped me a lot with your suggestions. I have done a lot of research and have learnt a lot since then, so I have been able to rule out a lot of potential roots

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

2024-01-03 Thread Christopher Schultz
into that if there were somethng very odd going on, like your process memory space seems to be more than 50% taken by non-java-heap memory. -chris On Sat, Dec 30, 2023 at 12:44 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Brian, On 12/29/23 20:48, Brian Braun wrot

Re: Getting False Tomcat Down Alert

2024-01-03 Thread Christopher Schultz
Olaf, On 1/3/24 04:18, Olaf Kock wrote: Here's an option: On 03.01.24 09:41, Chaudhary, Mohit wrote: Hi, Please find below script code which has been written. STAT=`netstat -luptn | grep 8080 | awk '{print $6}'` if [[ "$STAT" != "LISTEN" ]]; then echo "Tomcat instance down" >> $MESSAGE mail

Re: Getting False Tomcat Down Alert

2024-01-03 Thread Christopher Schultz
Olaf, On 1/3/24 09:52, Olaf Kock wrote: On 03.01.24 15:34, Christopher Schultz wrote: Olaf, +1 The regular expression used with grep should be improved a lot. I would recommend at least the following: STAT=`netstat -luptn 2>/dev/null | grep '^tcp.*:8080[^:0-9]' | awk '{p

Re: OCSP Stapling Configuration and Tomcat 9

2024-01-05 Thread Christopher Schultz
Bhavesh, On 1/5/24 12:57, Bhavesh Mistry wrote: Hi All, According to Tomcat 9 Official documentation, only Tomcat NATIVE Connector supports it. https://tomcat.apache.org/tomcat-9.0-doc/ssl-howto.html#Using_OCSP_Certificates But this site claims https://community.progress.com/s/article/PASOE-OC

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

2024-01-08 Thread Christopher Schultz
Brian, On 1/5/24 17:21, Brian Braun wrote: Hello Chirstopher, First of all: thanks a lot for your responses! On Wed, Jan 3, 2024 at 9:25 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Brian, On 12/30/23 15:42, Brian Braun wrote: At the beginning, this was the proble

Apache Tomcat 8.5.98 Available

2024-01-09 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.98. Apache Tomcat 8 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 8.5.98 is a bugfix and fea

Re: EOL - Tomcat versions

2024-01-09 Thread Christopher Schultz
Maruks, On 1/8/24 1:47 AM, i...@flyingfischer.ch wrote: https://endoflife.date/tomcat This is actually really great: accurate and up-to-date. The only disappointing thing is that it does not have references pointing to the original documentation from the project. -chris --

Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-10 Thread Christopher Schultz
Christoph, On 1/9/24 08:05, Christoph Kukulies wrote: I'm trying to install Tomcat-9.0.84 under Windows 10 as a service. I unpacked it under C:\apache-tomcat-9.0.84 and after creating a file setenv.bat (as of the RUNNING.TXT document) I ran: C:\apache-tomcat-9.0.84\bin>set CATALINA_HOME=C:\ap

Re: Windows 10 - installing tomcat 9.0.84 as a service

2024-01-10 Thread Christopher Schultz
Christoph, On 1/9/24 09:36, Christoph Kukulies wrote: Thanks for reading along :) Gotit running now. First off: too old Java Version bin/client or bin/server didn't exist After removing that service using  tomcat9 //DS I reinstalled it using service.bat install. C:\apache-tomcat-9.0.84\bin>se

Re: Problems with cross app uploads (migrating from 9.0.35 to 9.0.84)

2024-01-11 Thread Christopher Schultz
Aryeh, On 1/10/24 17:48, Aryeh Friedman wrote: After upgrading the machine (brand new VM) from FreeBSD 12.X to 14.0-RELEASE, OpenJDK 8 to OpenJdk 21 and Tomcat 9.0.35 to 9.0.84 (copied the existing server.xml over) I am having problems with a servlet that has worked in the past that uploaded ima

Re: Problems with cross app uploads (migrating from 9.0.35 to 9.0.84)

2024-01-16 Thread Christopher Schultz
Aryeh, On 1/11/24 15:07, Aryeh Friedman wrote: TL;DR (see inline for details): Problem found and worked around (root cause still unknown but likely a bug in OpenJDK 21's standard lib [see below]) On Thu, Jan 11, 2024 at 8:43 AM Christopher Schultz wrote: Aryeh, On 1/10/24 17:48,

Re: Tomcat dbcp2 connection pool configuration

2024-01-16 Thread Christopher Schultz
Hello, On 1/11/24 11:08, அருள்ராஜன் அ லை wrote: Hi We are using Tomcat 9.0.84 and Tomcat DBCP2 connection pool and the DB is Oracle 19c. We are seeing the closed connections and the standment objects are not cleared even after the connection says closed. Anybody faced similar issue ? Here is t

Re: Consultation on disabling insecure HTTP requests in Tomcat

2024-01-18 Thread Christopher Schultz
Marc, etc., On 1/18/24 05:10, Mark Thomas wrote: On 18/01/2024 09:22, 2460873257 wrote: Hi Tomcat Experts:        I'm trying to Looking for a solution to disable the tomcat * Options request, Why? +1 What's wrong with OPTIONS requests? They allow some basic security checks to succeed and

Re: Getting Two times login page issue.

2024-01-19 Thread Christopher Schultz
Mohit, Please don't hijack threads. On 1/18/24 20:08, Chaudhary, Mohit wrote: Hello Team , We are facing a issue with the tomcat application login URL , where it is asking twice for login to the user , with first login it will redirect again to the login page , while reentering the credentia

Re: EOL - Tomcat versions

2024-01-19 Thread Christopher Schultz
Francisco, On 1/19/24 14:06, Francisco Dellanio Leite Alencar wrote: Is it possible to consider that the minimum support time of Apache Tomcat 9.0.X is until 2027 (10 years since Released)? Did you take a look at the mailing list thread references? -chris On 2024/01/08 08:42:28 Mark Thomas w

Re: EOL - Tomcat versions

2024-01-26 Thread Christopher Schultz
Aryeh, On 1/20/24 4:19 AM, Aryeh Friedman wrote: Top posting since my comments are not 100% relevant to the issue in the thread (i.e. related but not in detail). It would be nice if Tomcat published EOL's since there are applications (like HIPAA webapps [I do remote cardiac monitoring]) that ar

Re: Cannot Start Tomcat Windows Service_01/21/24

2024-01-26 Thread Christopher Schultz
To whom it may concern, On 1/21/24 2:59 PM, support wrote: I receive the Windows error below every time I try to start the Tomcat Windows service after modifying the server.xml file to require TLS. I used the instructions below and other online sources to find the proper syntax to modify serve

Re: Session Cookie Logging

2024-01-26 Thread Christopher Schultz
Dan, On 1/26/24 02:44, Dan McLaughlin wrote: Well, so much for that theory. __Secure-JSESSIONID still sets the sessionCookiePath to /. I even removed the entire session-config from the web.xml and turned on copyXML to extract the secure#Foo.xml out to the conf/Catalina/localhost folder. Based

Re: Rotating/archiving catalina.out

2024-01-29 Thread Christopher Schultz
Aryeh, On 1/29/24 15:28, Aryeh Friedman wrote: We need to shrink the size of catalina.out but looking at the logging documentation I do not see any way to do this with the standard logging.properties (or else where). Due to the nature of the production site we never bring it completely down un

Re: Cannot start java issue after Tomcat9 and JDK 11 updates

2024-02-01 Thread Christopher Schultz
Lori, On 2/1/24 10:35, Lori Kilen wrote: Hello, I have a Windows server (v2019) and I've updated java to Corretto jdk11.0.22_7 and Tomcat to 9.0.85. I added Tomcat as a Windows Service. I can start Tomcat from CMD using startup.bat and I can open localhost:8080 in a browser to display Tom

Re: Session Cookie Logging

2024-02-01 Thread Christopher Schultz
Dan, On 2/1/24 11:54, Dan McLaughlin wrote: I was able to identify the problem - there was a session configuration with cookie configuration in the catalina-base/web.xml file. catalina-base/conf/web.xml? I did mention on 26 Jan that this wasn't a good idea and could be causing this kind of p

Re: Return a custom page in the event of a client requesting a non-existent resource on tomcat9

2024-02-05 Thread Christopher Schultz
Kaushal and Mark, On 2/4/24 15:00, Mark Thomas wrote: On 02/02/2024 18:48, Kaushal Shriyan wrote: Hi, I am running tomcat version 9.0.84 on Red Hat Enterprise Linux release 8.7 (Ootpa). Is there a way to configure the server to return a custom page in the event of a client requesting a non-

Re: Web socket connections scalability

2024-02-05 Thread Christopher Schultz
Saurav, On 2/5/24 12:07, Saurav Sarkar wrote: We are on Tomcat 9.0.44 . I understand NIO HTTP connector is used by default in Tomcat. We are planning to enable web socket communication. I would like to understand how many parallel web socket connections can be opened ? A lot. I understand t

Re: Operation not permitted errors

2024-02-06 Thread Christopher Schultz
Shawn, On 2/6/24 13:52, Beard, Shawn wrote: An application we have running in Tomcat 9 using Java 8 is throwing this error when trying to create a file: java.nio.file.FileSystemException /path/to/filesystem/202311WEB/040389461310_08_37_246.jpg: Operation not permitted at sun.nio.fs.UnixExce

Re: Operation not permitted errors [EXTERNAL]

2024-02-07 Thread Christopher Schultz
determine if it's a general Java issue or the specific Tomcat-hosted environment that won't work? -chris -----Original Message- From: Christopher Schultz Sent: Tuesday, February 6, 2024 4:18 PM To: users@tomcat.apache.org Subject: Re: Operation not permitted errors [EXTERNAL]

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 wil

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 0.0

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 connecti

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 sep

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 that

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 need

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 __

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[] listSessionId

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.

Re: Core Dump File Generation

2024-03-04 Thread Christopher Schultz
Mohit, On 2/28/24 04:39, Chaudhary, Mohit wrote: I am talking about java core dump file which is generating on tomcat/bin path and the OS is RHEL 6. There is no such thing as a "java core dump file". What is the name of the file? Something like hs_err_*? or is this something in catalina.out

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

2024-03-04 Thread Christopher Schultz
David, On 2/29/24 13:21, David Karr wrote: 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.WebServerExce

Re: SpringBoot Embedded Tomcat Server RateLimitFilter

2024-03-04 Thread Christopher Schultz
Ved, On 2/28/24 00:56, Ved wrote: 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. Have you

Re: reloading context with manager-script

2024-03-11 Thread Christopher Schultz
Mark, On 3/10/24 08:49, Mark Thomas wrote: On 10/03/2024 10:50, Greg Huber wrote: Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this

Re: how to reload SSL certificates without restarting Tomcat

2024-03-11 Thread Christopher Schultz
Jerry, On 3/10/24 16:00, Jerry Lin wrote: Hi Chuck, Presumably, you mean “not behind https", since “Apache” refers to the organization that develops and maintains a plethora of software products. Yes, “not behind https" (I meant not behind an Apache HTTP server) you can configure the TLS

Re: [OT] Tomcat SMPT TLS1.2

2024-03-11 Thread Christopher Schultz
Brandie, (Marking this [OT] as it's not really a Tomcat question.) On 3/11/24 12:34, Brandie Nickey wrote: I have a COTS webapp using Tomcat 8.0.43 and Java 1.8.0_121. I have been trying to find out where to configure outbound smtp messages to use only TLS1.2. I've found plenty of info on the

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Christopher Schultz
Sam, On 3/11/24 13:04, Sam wrote: On the server side, I'm checking that file exists before returning the file path to the browser. We are also dynamically creating pdf files this way and no issues with accessing them. How are you checking to see if the file exists? It's possible that your che

Re: how to reload SSL certificates without restarting Tomcat

2024-03-11 Thread Christopher Schultz
Jerry, On 3/11/24 14:51, Jerry Lin wrote: Hi Chris, There is also this: https://tomcat.apache.org/presentations.html#latest-lets-encrypt It's very LE-focused, but it shows you how to programmatically trigger a reload. Thanks for your presentation and script. We are using Let's Encrypt, so

Re: When does Tomcat add and remove threads?

2024-03-11 Thread Christopher Schultz
John, On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread pool? I'm talking about the threads with names like http-nio-8080-exec-1. It appears the thread pool is Tomcat's own ThreadPoolExecutor bu

Re: When does Tomcat add and remove threads?

2024-03-12 Thread Christopher Schultz
John, On 3/11/24 18:14, john.e.gr...@wellsfargo.com.INVALID wrote: From: Christopher Schultz Sent: Monday, March 11, 2024 5:09 PM > On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread p

Re: reloading context with manager-script

2024-03-12 Thread Christopher Schultz
Greg and Mark, On 3/12/24 05:00, Greg Huber wrote: On 11/03/2024 18:17, Christopher Schultz wrote: Mark, On 3/10/24 08:49, Mark Thomas wrote: On 10/03/2024 10:50, Greg Huber wrote: Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a

<    1   2   3   4   5   6   7   8   9   10   >