JAVA -tomcat- Request header is too large

2023-12-07 Thread Ivano Luberti
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-5826] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header  Note: further occurrences of HTTP request parsing errors will be logged at DEBUG

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
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.ServiceNotFoundException: Cannot find operation

Re: Looking for examples...

2023-12-06 Thread Christopher Schultz
Jon, On 12/6/23 11:34, Mcalexander, Jon J. wrote: I was hoping to find some use cases with examples. I recently set up a local environment using the ServiceBindingPropertySource. The idea is that there are only a few options for configuring Tomcat-provided database connections for an

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
I found the source of the problem 9.0.82 accepts the simple class name as a type parameter for the operation. 9.0.83 requires the canonical class name. On Wed, Dec 6, 2023 at 3:06 PM Daniel Skiles wrote: > I've had no success digging into this. > > Is this a regression, or was this an

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
I've had no success digging into this. Is this a regression, or was this an intentional change? On Mon, Nov 27, 2023 at 8:56 AM Daniel Skiles wrote: > Thanks for taking a look. My lightly scrubbed connector example is > attached. > > On Tue, Nov 21, 2023 at 6:45 AM Michael Osipov > wrote: >

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

2023-12-06 Thread Deepak Lalchandani
Hi, Can you please  share what's going on in this post Thanks and Regards, Deepak Lalchandani On Wed, 6 Dec 2023, 10:59 pm Manak Bisht, wrote: > Hi Mark > Could you please clarify this? > > On Fri, Dec 1, 2023 at 3:40 PM Manak Bisht wrote: > > > The channelStartOptions setting is from

Re: Thread Pool Question

2023-12-06 Thread Deepak Lalchandani
Hi Tomcat users, Can you share the jsp code of thread pool so that I can analyse it Thanks and Regards, Deepak On Wed, 6 Dec 2023, 8:46 pm Christopher Schultz, < ch...@christopherschultz.net> wrote: > William, > > On 12/5/23 14:39, William Crowell wrote: > > I

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

2023-12-06 Thread Manak Bisht
Hi Mark Could you please clarify this? On Fri, Dec 1, 2023 at 3:40 PM Manak Bisht wrote: > The channelStartOptions setting is from the documentation > https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html > *"To start a channel without multicasting, you would want to use the value >

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

2023-12-06 Thread Manak Bisht
> Also, the documentation also says that the *distributable *tag is > deprecated and ignored since Tomcat 8 ( > https://tomcat.apache.org/migration-9) > *"The distributable attribute has been deprecated in 8.0 and specified > value is ignored."* > *Note for future readers: *In the previous email,

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

2023-12-06 Thread Manak Bisht
Thanks a lot for the informative reply, Chris. I really appreciate it. > If you have a good reason to disable stickness, I'd love to hear the > reasoning. > While both the DeltaManager and BackupManager solve my problem of autoscaling/failover without any re-logins required, I have noticed a lot

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

2023-12-06 Thread Manak Bisht
> I’m not a clustering expert, but perhaps the address value needs to be an > IP address accessible to the other machine in the cluster. The above > 127.0.0.1 (localhost) would appear to limit each receiver to the machine > it’s running on. > Yes, that was it. Replacing the address with "0.0.0.0"

Re: Possible AbstractProtocol.waitingProcessors leak in Tomcat 9.0.75

2023-12-06 Thread Mark Thomas
I have spent some more time on this today and I am still unable to recreate these results on either Linux or Windows using the Snake WebSocket example that ships with Tomcat. To make progress I need a reproducible test case, ideally using the Tomcat examples from the latest release of any

RE: Looking for examples...

2023-12-06 Thread Mcalexander, Jon J.
I was hoping to find some use cases with examples. Thank you! Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080 Cobblestone Rd |

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

2023-12-06 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
Hello Christopher. Thanks for the response! Let me walk you through the Environment., I have a cluster and I am installing multiple microservices in the cluster. And one of the microservices I am integrating the JMX on of the microservices., and the mentioned IP of the pod is being changed

Re: Looking for examples...

2023-12-06 Thread Chuck Caldarale
> On Dec 5, 2023, at 18:02, Mcalexander, Jon J. > wrote: > > I am trying to find decent examples for Proerty 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

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

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: [EXT] Re: Datadog _ JMX Integration facing connection issues.

2023-12-06 Thread Christopher Schultz
Sai Vamsi, On 12/5/23 08:57, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: I have added my annotations in Catalina_opts ., and I am not able to see any Java Process with the JMX, neither the port is being listened. It came back to previous stage where Annotations are not on the JVM

Re: Possible AbstractProtocol.waitingProcessors leak in Tomcat 9.0.75

2023-12-05 Thread Jakub Remenec
Hi, I've experienced the same issue as described on Apache Tomcat 10.1.13. After downgrading to 10.1.5 it started to work correctly. I also inspected the heapdump of the application with memory problems and found out that there were many org.apache.tomcat.websocket.WsSession present in

RE: Re: Possible AbstractProtocol.waitingProcessors leak in Tomcat 9.0.75

2023-12-05 Thread Jakub Remenec
Hi, I've experienced the same issue as described on Apache Tomcat 10.1.13. After downgrading to 10.1.5 it started to work correctly. I also inspected the heapdump of the application with memory problems and found out that there were many org.apache.tomcat.websocket.WsSession present in

Looking for examples...

2023-12-05 Thread Mcalexander, Jon J.
Good evening, I am trying to find decent examples for Proerty 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 replaceSystemProperties WARNING: System property

Re: [EXTERNAL EMAIL] Re: JSP include not working

2023-12-05 Thread Niranjan Rao
I'm one step further. Cloned the tomcat repo, switched to appropriate tag/branch and looked at the code.  Comments indicated need to have full path and my paths did not start with "/". Added the "/" on couple of pages and no more include error. As of now, even though I don't get the include

RE: Thread Pool Question

2023-12-05 Thread John.E.Gregg
You have to refer to it in your connector: https://tomcat.apache.org/tomcat-10.0-doc/config/http.html > -Original Message- > From: William Crowell > Sent: Tuesday, December 5, 2023 1:39 PM > To: Tomcat Users List > Subject: Re: Thread Pool Question > > I should clarify the ask

Re: Thread Pool Question

2023-12-05 Thread William Crowell
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. Regards, William Crowell This e-mail may contain information that is privileged or

Thread Pool Question

2023-12-05 Thread William Crowell
If I create a separate thread pool in Tomcat’s server.xml like this: Then how do I get a thread to assign any work to it? Regards, William Crowell This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any

Re: [EXTERNAL EMAIL] Re: JSP include not working

2023-12-05 Thread Niranjan Rao
Thank you Rob, but doubtful. We're a Ubuntu shop and always mindful of case sensitivity. On 12/5/23 11:09, Rob Sargent wrote: On 12/5/23 12: 01, Niranjan Rao wrote: > Greetings, > > I'm missing something obvious and hoping that someone can point my > nose in right direction. > > > We have a

Re: JSP include not working

2023-12-05 Thread Rob Sargent
On 12/5/23 12:01, Niranjan Rao wrote: Greetings, I'm missing something obvious and hoping that someone can point my nose in right direction. We have a application WAR file that works fine on tomcat 7.0.78. We're trying to migrate this application to 9.0.82. When trying to hit the

JSP include not working

2023-12-05 Thread Niranjan Rao
Greetings, I'm missing something obvious and hoping that someone can point my nose in right direction. We have a application WAR file that works fine on tomcat 7.0.78. We're trying to migrate this application to 9.0.82. When trying to hit the pages, I'm getting error JSP file not found at

RE: Tomcat Build Issue

2023-12-05 Thread Mcalexander, Jon J.
Now that is a definite possibility Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080 Cobblestone Rd | Urbandale, IA 50322 MAC:

Re: Tomcat Build Issue

2023-12-05 Thread Noelette Stout
I see this kind of thing in my tomcat logs when the security team runs their Nessus scanner against everything. On Tue, Dec 5, 2023 at 2:45 AM 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

Re: Tomcat Build Issue

2023-12-05 Thread Mark Thomas
On 05/12/2023 15:15, Burle, Saicharan wrote: Hi Mark/Chris, We are getting this error without even deploying any application. Then start looking at your network to see what is sending this invalid data to Tomcat. Mark -

RE: Tomcat Build Issue

2023-12-05 Thread Burle, Saicharan
Hi Mark/Chris, We are getting this error without even deploying any application. Regards, Saicharan Burle Lead Infrastructure Engineer Chief Technology Office | Foundational Hosting Platform | Middleware Product Engineering G=ETI DPS Middleware Prod Eng Block B1A Divyasree Orion | Hyderabad -

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

2023-12-05 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
As you suggested., I have added my annotations in Catalina_opts ., and I am not able to see any Java Process with the JMX, neither the port is being listened. It came back to previous stage where Annotations are not on the JVM ., Came back to previous stage, where connection refused error., 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 at this point to get

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

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

2023-12-05 Thread Christopher Schultz
Sai Vamsa, On 12/5/23 01:25, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Thanks for the response.. as you suggested., I tried adding my annotations in CATALINA_OPTS., Instead of Java_Opts and Java_tool_options., But its not even working out., Java process is not getting

Re: Tomcat Build Issue

2023-12-05 Thread Mark Thomas
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 assist in this regard?

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

2023-12-05 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
Hey Thomas, Thanks for the response. Yeah., I am trying to add Heap size parameters to the JVM using the annotations., DO you smell anything wrong in this!? Thanks & Regards, -- SAI VAMSI .B Senior DevOps Engineer From: Thomas Meyer Sent: Tuesday, December

Tomcat Build Issue

2023-12-05 Thread Burle, Saicharan
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 assist in this regard? [https-jsse-nio-11511-exec-4]

Re: setenv.sh tomcat8 changelog

2023-12-05 Thread Giuseppe Sacco
Hello Christoph, Il giorno lun, 04/12/2023 alle 16.10 +0100, Christoph Kukulies ha scritto: [...] > Where do I find "setenv.sh" in my tomcat9 (Ubuntu) distribution?  I think all Debian derivatives use /etc/default/tomcat8 file for setting those variables. Bye, Giuseppe

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

2023-12-04 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
Hello Chris. Thanks for the response.. as you suggested., I tried adding my annotations in CATALINA_OPTS., Instead of Java_Opts and Java_tool_options., But its not even working out., Java process is not getting created., and port is not bound to any process. Let me know if I am missing

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

2023-12-04 Thread Thomas Meyer
Hi, Also newer jvm do have XX:+UseContainerSupport set as default, also when using XX:+UseContainerSupport setting -Xms and -Xmx do not really make sense at all, you either want the JVM to deduce the max heap size from the memory cgroup or not Mfg Thomas Am 4. Dezember 2023 18:52:13 MEZ

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

Re: setenv.sh tomcat8 changelog

2023-12-04 Thread Mark Thomas
4 Dec 2023 15:10:13 Christoph Kukulies : The tomcat8 changelog shows the following remark among others: General • Tighten up the default file permissions for the .tar.gz distribution so no files or directories are world readable by default. Configure Tomcat to run with a default umask of 

Re: Weird CSRF prevention behavior

2023-12-04 Thread Christopher Schultz
Lasse, On 12/1/23 15:45, Lasse Lindqvist wrote: Well, one thing that could be wrong is that Log4j2 does not have FINE or FINEST levels. It does have TRACE. If that does not fix things, you could always change tour log.trace to log.error if you only care about debugging the original issue.

setenv.sh tomcat8 changelog

2023-12-04 Thread Christoph Kukulies
The tomcat8 changelog shows the following remark among others: General • Tighten up the default file permissions for the .tar.gz distribution so no files or directories are world readable by default. Configure Tomcat to run with a default umask of 0027 which may be overridden by

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

2023-12-04 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
Hello Christopher., Thanks for the Response. 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_tool_options in stead of Java_opts. yeah

Re: Tomcat 9 build from scratch

2023-12-02 Thread Aditya Shastri
Thank you for the clarification! Thank you Chris, Mark, Adwait! On Fri, Dec 1, 2023 at 2:07 PM Christopher Schultz wrote: > > 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

Re: Weird CSRF prevention behavior

2023-12-01 Thread Lasse Lindqvist
Well, one thing that could be wrong is that Log4j2 does not have FINE or FINEST levels. It does have TRACE. If that does not fix things, you could always change tour log.trace to log.error if you only care about debugging the original issue. pe 1. jouluk. 2023 klo 22.28 Christopher Schultz (

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

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

Re: Tomcat 9 build from scratch

2023-12-01 Thread Aditya Shastri
> 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 documentation source files can be the same for all Tomcat

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

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 logo
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 >> machines. I am unable to

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

2023-12-01 Thread 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 > machines. I am unable to discover members in the cluster with the following > logs on both machines -

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

Re: Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-12-01 Thread Markus Schlegel
Using embedded Tomcat, therefore no catalina.bat Markus Am Fr., 1. Dez. 2023 um 15:42 Uhr schrieb Mark Thomas : > On 01/12/2023 14:29, Markus Schlegel wrote: > > Hi Peter, > > Thank you for your hint about "-Djdk.tls.ephemeralDHKeySize=2048". > > I indeed did not knew that this option exists.

Re: Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-12-01 Thread Mark Thomas
On 01/12/2023 14:29, Markus Schlegel wrote: Hi Peter, Thank you for your hint about "-Djdk.tls.ephemeralDHKeySize=2048". I indeed did not knew that this option exists. When I enable it, I get Grad "A" from SSLLabs while it still lists 8 weak ciphers out of 12. Because I get to grade "A" with

Re: Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-12-01 Thread Markus Schlegel
Hi Peter, Thank you for your hint about "-Djdk.tls.ephemeralDHKeySize=2048". I indeed did not knew that this option exists. When I enable it, I get Grad "A" from SSLLabs while it still lists 8 weak ciphers out of 12. Because I get to grade "A" with this setting, I can indeed use the default

Re: Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-12-01 Thread logo
Hi > Am 29.11.2023 um 11:46 schrieb Markus Schlegel : > > Hi, > This is a continuation of the discussion taken below > https://bz.apache.org/bugzilla/show_bug.cgi?id=67628 where I asked about > the following warning which appears in our log: > > (29.11.2023 09:53:14

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

2023-12-01 Thread Manak Bisht
Sorry, I forgot to mention, but I am using Tomcat 8.5 Sincerely Manak Bisht On Fri, Dec 1, 2023 at 3:40 PM Manak Bisht wrote: > Thanks for the reply Mark. > > The channelStartOptions setting is from the documentation > https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html > *"To start a

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

2023-12-01 Thread Manak Bisht
Thanks for the reply Mark. The channelStartOptions setting is from the documentation https://tomcat.apache.org/tomcat-8.5-doc/config/cluster.html *"To start a channel without multicasting, you would want to use the value Channel.SND_RX_SEQ | Channel.SND_TX_SEQ that equals to 3. "* This

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

2023-12-01 Thread Mark Thomas
On 01/12/2023 08: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. I am unable to discover members in the cluster with the following logs on both machines -

Re: Tomcat 9 build from scratch

2023-12-01 Thread Mark Thomas
On 30/11/2023 23:38, Aditya Shastri wrote: Thanks for the response Adwait. My ant skills are lacking. Does the minimum bytecode definition come from this line? Yes. Equally importantly it also ensures that the code is compiled against the Java 8 API. What does this line do? It is

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

2023-12-01 Thread Manak Bisht
Hi, I am trying to implement non-sticky session replication using Delta Manager with static membership. The nodes are across two different machines. I am unable to discover members in the cluster with the following logs on both machines - org.apache.catalina.ha.session.DeltaManager.startInternal

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
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 most-recent-connection-lifetimes. Any time you > request the

Re: Tomcat 9 build from scratch

2023-11-30 Thread Aditya Shastri
Sounds good. Thanks! On Thu, Nov 30, 2023 at 3:40 PM Adwait Kumar Singh wrote: > > The former. > > > > On Thu, Nov 30, 2023 at 3:40 PM Aditya Shastri > wrote: > > > Thanks for the response Adwait. > > > > My ant skills are lacking. Does the minimum bytecode definition come > > from this line?

Re: Tomcat 9 build from scratch

2023-11-30 Thread Adwait Kumar Singh
The former. On Thu, Nov 30, 2023 at 3:40 PM Aditya Shastri wrote: > Thanks for the response Adwait. > > My ant skills are lacking. Does the minimum bytecode definition come > from this line? > > > What does this line do? > > > On Thu, Nov 30, 2023 at 6:10 PM Adwait Kumar Singh > wrote: >

Re: Tomcat 9 build from scratch

2023-11-30 Thread Aditya Shastri
Thanks for the response Adwait. My ant skills are lacking. Does the minimum bytecode definition come from this line? What does this line do? On Thu, Nov 30, 2023 at 6:10 PM Adwait Kumar Singh wrote: > > Yes, JDK17 can produce JDK8 bytecode, in fact that's what Tomcat does. > > On Thu, Nov

Re: Tomcat 9 build from scratch

2023-11-30 Thread Adwait Kumar Singh
Yes, JDK17 can produce JDK8 bytecode, in fact that's what Tomcat does. On Thu, Nov 30, 2023 at 2:35 PM Aditya Shastri wrote: > Hello, > > We build our own Tomcat 9 binaries from scratch (grab the tag from > https://github.com/apache/tomcat) and call ant (with java8) to build > it. > > Starting

Tomcat 9 build from scratch

2023-11-30 Thread Aditya Shastri
Hello, We build our own Tomcat 9 binaries from scratch (grab the tag from https://github.com/apache/tomcat) and call ant (with java8) to build it. Starting with 9.0.83, our pipelines are failing with the error build.xml:113: Java version 17 or newer is required (1.8.0_381 is installed) The apps

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

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
> 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 you are talking > about there... is there some tool that

Re: webdav and libreoffice

2023-11-29 Thread Jean-Max Reymond
Le 30/11/2023 à 00:05, Mark Thomas a écrit : On 29/11/2023 21:46, Christopher Schultz wrote: 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

Re: webdav and libreoffice

2023-11-29 Thread Mark Thomas
On 29/11/2023 21:46, Christopher Schultz wrote: 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

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

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

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

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

Re: webdav and libreoffice

2023-11-29 Thread Mark Thomas
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. I'll look into seeing what our options are

Re: Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-11-29 Thread Mark Thomas
On 29/11/2023 10:46, Markus Schlegel wrote: Changing the config to add ":-CBC" to the default config as suggested by Mark in bugzilla does not have any effect. Still Grade B, 10 weak out of 12. It seems to me that -CBC might not be a valid option at all? Mark got different results when he

How to get Remote user value in Apache

2023-11-29 Thread Naha, Koustav
Hi all, 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 inserts into the database. Here we are

Re: webdav and libreoffice

2023-11-29 Thread Mark Thomas
On 28/11/2023 22:27, Jean-Max Reymond wrote: Hi, I have an application and a webdav servlet with tomcat. I am using libreoffice to edit and save files. the command is: /usr/lib/libreoffice/program/soffice.bin ms-excel:ofe|u|https://cloud.example.com/WebDav/NESTOR/GERARD/Documents.xls

Ciphers Warning in logfile for Tomcat 8.5.96 (with Adoptium jdk-8.0.392.8-hotspot)

2023-11-29 Thread Markus Schlegel
Hi, This is a continuation of the discussion taken below https://bz.apache.org/bugzilla/show_bug.cgi?id=67628 where I asked about the following warning which appears in our log: (29.11.2023 09:53:14 org.apache.tomcat.util.net.SSLUtilBase getEnabled WARNING T-19): Tomcat interprets the [ciphers]

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

2023-11-29 Thread Graham Leggett
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/ErrorReportValve.java#L129 > > With no

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

2023-11-29 Thread Graham Leggett
On 29 Nov 2023, at 07:18, Thomas Hoffmann (Speed4Trade GmbH) wrote: >> I’m in dependency hell - java8 to java17, JAXB as used by Jersey2 broke. No >> idea why, but an internal Oracle implementation is hardcoded somewhere. >> >> java.lang.ClassNotFoundException:

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

2023-11-29 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
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#autodiscovery-annotations

Re: webdav and libreoffice

2023-11-29 Thread Jean-Max Reymond
centos9, 9.0.31 OK 9.0.36 KO 9.0.58 KO 9.0.69 KO Le 29/11/2023 à 06:21, Terence M. Bandoian a écrit : Have you tried with Tomcat 9.0.31 and Ubuntu 22.04?  Or Tomcat 9.0.31 and CentOS 9? -Terence On 11/28/2023 9:00 PM, Jean-Max Reymond wrote: Libreoffice cannot write the document with tomcat

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

2023-11-28 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Graham, > -Ursprüngliche Nachricht- > Von: Graham Leggett > Gesendet: Dienstag, 28. November 2023 20:12 > An: Tomcat Users List > Betreff: Re: 400 Bad Request - where do I find the detailed reason for the > bad request so I can fix it? > > On 28 Nov 2023, at 18:42, Christopher

Re: webdav and libreoffice

2023-11-28 Thread Terence M. Bandoian
Have you tried with Tomcat 9.0.31 and Ubuntu 22.04?  Or Tomcat 9.0.31 and CentOS 9? -Terence On 11/28/2023 9:00 PM, Jean-Max Reymond wrote: Libreoffice cannot write the document with tomcat 9.0.58  and tomcat 9.0.68, but it is ok with tomcat 9.0.31 debug mode shows a lot of PROPFIND but no

Re: webdav and libreoffice

2023-11-28 Thread Jean-Max Reymond
Libreoffice cannot write the document with tomcat 9.0.58 and tomcat 9.0.68, but it is ok with tomcat 9.0.31 debug mode shows a lot of PROPFIND but no crash. Le 29/11/2023 à 00:53, Terence M. Bandoian a écrit : What is the error?  Log?  Stack trace? -Terence Bandoian On 11/28/2023 4:27 PM,

Re: webdav and libreoffice

2023-11-28 Thread Terence M. Bandoian
What is the error?  Log?  Stack trace? -Terence Bandoian On 11/28/2023 4:27 PM, Jean-Max Reymond wrote: Hi, I have an application and a webdav servlet with tomcat. I am using libreoffice to edit and save files. the command is: /usr/lib/libreoffice/program/soffice.bin

webdav and libreoffice

2023-11-28 Thread Jean-Max Reymond
Hi, I have an application and a webdav servlet with tomcat. I am using libreoffice to edit and save files. the command is: /usr/lib/libreoffice/program/soffice.bin ms-excel:ofe|u|https://cloud.example.com/WebDav/NESTOR/GERARD/Documents.xls --splash-pipe=5 With tomcat 9.0.31 and Ubuntu 20.04,

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

2023-11-28 Thread Graham Leggett
On 28 Nov 2023, at 19:11, Graham Leggett 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 elsewhere? > > The exception eventually ends up

Tracking keep alive connections

2023-11-28 Thread Daniel Andres Pelaez Lopez
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 is tomcat_connections_keepalive_current but it seems weird the

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

2023-11-28 Thread Graham Leggett
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 elsewhere? The exception eventually ends up

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

2023-11-28 Thread Simon Matter
Hi, > Christoph, > > On 11/28/23 09:53, Christoph Kukulies wrote: >> That was my connector: >> >>  >                connectionTimeout="2" >>                redirectPort="8443" /> >> >> I triednetstat -tulpn as well and it could be seen there was  no >> listener under ip4 and port 8080. > >

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