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 Sch

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 cr

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, Je

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 ms-excel:ofe|u|https://clo

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, a

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 ins

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 da

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 insi

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

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: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christopher Schultz
Christoph, On 11/28/23 09:53, Christoph Kukulies wrote: That was my connector:   I triednetstat -tulpn as well and it could be seen there was  no listener under ip4 and port 8080. If you use the "address" attribute, you can pick the interface you will listen to: " [address] For servers

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 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.Http11Processor may help. > > It is probably the ti

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

2023-11-28 Thread Shawn Heisey
On 11/28/23 05:24, Christoph Kukulies wrote: root@mail:/var/lib/tomcat9/logs# lsof -i :8080 COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME java    58986 tomcat   37u  IPv6 571175      0t0  TCP *:http-alt (LISTEN) root@mail:/var/lib/tomcat9/logs# On my local desktop (running Ubuntu 2

[SECURITY] CVE-2023-46589 Apache Tomcat - Request Smuggling

2023-11-28 Thread Mark Thomas
CVE-2023-46589 Apache Tomcat - Request Smuggling Severity: Important Vendor: The Apache Software Foundation Versions Affected: Apache Tomcat 11.0.0-M1 to 11.0.0-M10 Apache Tomcat 10.1.0-M1 to 10.1.15 Apache Tomcat 9.0.0-M1 to 9.0.82 Apache Tomcat 8.5.0 to 8.5.95 Description: Tomcat did not cor

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

2023-11-28 Thread Christoph Kukulies
Hi Christopher, That was my connector: I tried netstat -tulpn as well and it could be seen there was no listener under ip4 and port 8080. Thanks, -- Christoph > Am 28.11.2023 um 15:15 schrieb Christopher Schultz > : > > Christoph, > > On 11/28/23 08:26, Christoph Kukulies wrote: >> no

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

2023-11-28 Thread Christopher Schultz
Sai Vamsi, On 11/28/23 04:29, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote: Hello team, 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/

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

2023-11-28 Thread Christoph Kukulies
Hi Suvendu, 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.preferIPv4Stack=true" and now I have: root@mail

Re: Performance tuning embedded Tomcat 10.1.7: High requests/second, HTTPs and a lot of keep alive connections

2023-11-28 Thread Daniel Andres Pelaez Lopez
Thanks chris for your thoughts. > This is obviously a "big" question whose answer likely take months to > really determine. But we can get started :) I am aware the question is too broad but better to ask than to be silent. Will try to go for increasing maxKeepAliveRequests first and see where th

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

2023-11-28 Thread Suvendu Sekhar Mondal
Hello Christoph, On Tue, Nov 28, 2023, 5:55 PM Christoph Kukulies wrote: > I'm pulling my hairs on a suddenly occured - possibly - misconfiguration. > But I can't find it out: > > catalina.2023-11-28.log: > > > 28-Nov-2023 13:15:43.742 INFO [main] > org.apache.catalina.startup.VersionLoggerListe

Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
I'm pulling my hairs on a suddenly occured - possibly - misconfiguration. But I can't find it out: catalina.2023-11-28.log: 28-Nov-2023 13:15:43.742 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.58 (Ubuntu) 28-Nov-2023 13:15:43.743

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

2023-11-28 Thread Mark Thomas
On 27/11/2023 20:09, Graham Leggett wrote: Hi all, Long running webapps, tomcat recently updated from tomcat7 to tomcat v9.0.65. One webapp sends a request to another. The request fails with a 400 Bad Request, with the detail message "The server cannot or will not process the request due to s

Datadog _ JMX Integration facing connection issues.

2023-11-28 Thread Bodavula, Sai Vamsi Mohan Krishna (TR Technology)
Hello team, 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 This is the Environment I am using in my case. I am