RE: WebSocket session is never closed

2025-05-22 Thread Harri Pesonen
ions which did not have any problems. -Harri -Original Message- From: Mark Thomas Sent: torstai 22. toukokuuta 2025 9.50 To: users@tomcat.apache.org Subject: Re: WebSocket session is never closed On 21/05/2025 10:37, Harri Pesonen wrote: > Hello, > > We have a random problem

VS: WebSocket session is never closed

2025-05-21 Thread Harri Pesonen
NF> (main) (org.apache.catalina.core.AprLifecycleListener#initializeSSL) OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024] -Harri Lähettäjä: Harri Pesonen Lähetetty: keskiviikko 21. toukokuuta 2025 12.37 Vastaanottaja: users@tomcat.apache.org Aihe: WebSocket sess

WebSocket session is never closed

2025-05-21 Thread Harri Pesonen
Hello, We have a random problem with Apache Tomcat/9.0.100 in Windows, JDK 11.0.13. We have seen this problem only once so far. Problem is that WebSocket connection is apparently closed but there is no callback to @OnClose handler, which is implemented in @ServerEndpoint class. Then this WebSocke

RE: session Manager "maxActiveSessions" alternative behavior : allow new session but expire old session

2025-01-09 Thread Harri Pesonen
The proposal does not create instant DOS, because applications can always create new session if the old session is closed. Instead the current behavior creates instant DOS, as no new sessions can be created. 😊 Although the current behavior is still probably the better option, so that at least ex

RE: Connection reset by peer: socket write error

2024-10-14 Thread Harri Pesonen
Hello, so you have a problem that database connection is closed, and you want to fix it by closing the connection? https://learn.microsoft.com/en-us/sql/connect/jdbc/understand-timeouts?view=sql-server-ver16 "socketTimeout applies to all socket communications with the server. If the server stop

RE: [Semi OT] Suggestion: Maven repository for Tomcat native library

2024-08-12 Thread Harri Pesonen
: users@tomcat.apache.org Subject: Re: [Semi OT] Suggestion: Maven repository for Tomcat native library Harri, On 8/9/24 05:56, Harri Pesonen wrote: > Hello, currently Tomcat native library needs to be downloaded manually from > here: > > https://tomcat.apache.org/download-native.cgi >

Suggestion: Maven repository for Tomcat native library

2024-08-09 Thread Harri Pesonen
Hello, currently Tomcat native library needs to be downloaded manually from here: https://tomcat.apache.org/download-native.cgi It would be better to download it from Maven repository, so that we could upgrade the version easier using Maven scripts. Also we could see easier when the version nee

RE: Tomcat closes connections on unexpected status codes

2024-04-19 Thread Harri Pesonen
I have developed a restful web service, which uses HTTP response codes 200 OK, 201 Created, 204 No Content and 404 Not Found. It does not use 400 Bad Request or 500 Internal Server Error normally. 400 Bad Request is more common than 500 Internal Server Error, which should basically never happen.

RE: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Harri Pesonen
Linux has "auditd" tool to log file system changes: https://www.redhat.com/sysadmin/configure-linux-auditing-auditd -Harri -Original Message- From: Subodh Joshi Sent: perjantai 22. maaliskuuta 2024 7.36 To: Tomcat Users List Subject: Re: Tomcat Internal Architect for JSP compilation?

RE: When does Tomcat add and remove threads?

2024-03-13 Thread Harri Pesonen
Yes the standard JDK ThreadPoolExecutor behavior is bad. Here is a good thread describing how to fix ThreadPoolExecutor to behave how it should be. https://stackoverflow.com/questions/19528304/how-to-get-the-threadpoolexecutor-to-increase-threads-to-max-before-queueing Obviously Tomcat had to do

RE: java.lang.InternalError: Unexpected CryptoAPI failure generating seed

2023-04-24 Thread Harri Pesonen
should be similar. Tom On Fri, Apr 21, 2023 at 2:15 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Harri, > > On 4/21/23 04:39, Harri Pesonen wrote: > > No, I think that I have seen this only once now, but of course it > > might > have happened more

RE: java.lang.InternalError: Unexpected CryptoAPI failure generating seed

2023-04-21 Thread Harri Pesonen
ssage- From: Christopher Schultz Sent: torstai 20. huhtikuuta 2023 19.35 To: users@tomcat.apache.org Subject: Re: java.lang.InternalError: Unexpected CryptoAPI failure generating seed Harri, On 4/18/23 07:43, Harri Pesonen wrote: > Hello, we have: > > Tomcat/8.5.83 > Windows Server 20

java.lang.InternalError: Unexpected CryptoAPI failure generating seed

2023-04-18 Thread Harri Pesonen
Hello, we have: Tomcat/8.5.83 Windows Server 2016 java.version=11.0.12 java.vendor=Azul Systems, Inc. sun.arch.data.model=64 Sometimes Tomcat fails to start our application because of this error: 06:45:58.230 ERR> (Catalina-startStop-1) (org.apache.catalina.startup.HostConfig#deployDescriptors)

RE: java.lang.AbstractMethodError: Receiver class org.apache.tomcat.websocket.server.WsSessionListener does not define or inherit an implementation

2023-03-20 Thread Harri Pesonen
: java.lang.AbstractMethodError: Receiver class org.apache.tomcat.websocket.server.WsSessionListener does not define or inherit an implementation On Mon, Mar 20, 2023 at 1:59 PM Harri Pesonen wrote: > > Hello, > > I changed: > > * source code target from Java 8 to Java 11 > * Tomc

java.lang.AbstractMethodError: Receiver class org.apache.tomcat.websocket.server.WsSessionListener does not define or inherit an implementation

2023-03-20 Thread Harri Pesonen
Hello, I changed: * source code target from Java 8 to Java 11 * Tomcat from 8.5 to 9.0.73 * Java runtime from Java 11 to Java 17 and now I see extra error in Tomcat log, which did not happen before: (http-nio-8080-exec-8) (org.apache.catalina.session.StandardSession#tellNew) Session

RE: Compatibility, 32 bit ..

2022-10-25 Thread Harri Pesonen
Java 9 dropped 32-bit so it only has 64-bit by default. Maybe you have Java 8 instead of Java 9. Check this: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04 Try using Tomcat 8.5 if you want to have 32-bit. -Harri -Original Message- From: Joh

RE: Reconfiguring Tomcat application without restart

2022-04-13 Thread Harri Pesonen
hristopher Schultz Sent: keskiviikko 13. huhtikuuta 2022 19.20 To: users@tomcat.apache.org Subject: Re: Reconfiguring Tomcat application without restart Harri, On 4/13/22 07:32, Harri Pesonen wrote: > Hello, is it possible to change the context file in > > $CATALINA_HOME/conf/Catalin

Reconfiguring Tomcat application without restart

2022-04-13 Thread Harri Pesonen
Hello, is it possible to change the context file in $CATALINA_HOME/conf/Catalina/localhost/app.xml so that application would get the new configuration without restarting? I could not find such thing in servlet specification. Or would it be possible to manually read the file from the application,

RE: Two context paths to same application

2022-04-05 Thread Harri Pesonen
18.46 To: users@tomcat.apache.org Subject: Re: Two context paths to same application On 01/04/2022 15:59, Harri Pesonen wrote: > Hello, > > while reading the documentation in > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftomc > at.apache.org%2Ftomcat-8

Two context paths to same application

2022-04-01 Thread Harri Pesonen
Hello, while reading the documentation in https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Naming it is not clear to me how to achieve the following: Have one WAR file with corresponding directory, for example: app#1.war => app#1 (directory) => /app/1 (context path) But have another

RE: NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-15 Thread Harri Pesonen
. -Harri -Original Message- From: Christopher Schultz Sent: maanantai 14. maaliskuuta 2022 16.36 To: users@tomcat.apache.org Subject: Re: NullPointerException in Tomcat startup while parsing XML configuration file Harri, On 3/14/22 10:23, Harri Pesonen wrote: > Hello, I don't

NullPointerException in Tomcat startup while parsing XML configuration file

2022-03-14 Thread Harri Pesonen
Hello, I don't know if this is interesting, but while I started Tomcat in IDEA debugger, when I had breakpoint set to NullPointerException (so that it breaks on all of them), then it break here: org\apache\tomcat\tomcat-util\8.5.75\tomcat-util-8.5.75.jar!\org\apache\tomcat\util\IntrospectionUtil

RE: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Harri Pesonen
Vault for Apache Tomcat: https://github.com/web-servers/tomcat-vault It hides the secrets in another encrypted file, and password for that file is then in another file... So it just makes it more difficult to access the secrets, but at least they are not in plain text. -Harri -Original Me

Possible UpgradeInfo memory leak

2021-09-23 Thread Harri Pesonen
Hello, while looking at Tomcat 8.5.61 heap dump in VisualVM, in Dominators by Retained Size, two biggest ones are: org.apache.tomcat.util.net.NioEndpoint#1 12 382 781 B (13,7%) org.apache.coyote.http11.upgrade.UpgradeGroupInfo#1 7 066 212 B (7,8%) I am wondering about UpgradeGroupInfo, because