Re: Tomcat jdbc connections

2022-01-24 Thread Christopher Schultz
Alan, On 1/23/22 09:17, Alan F wrote: Can I just follow up here what would be the next steps how would I go about capturing the root cause of these very short connection times to Oracle from Tomcat. Honestly, I would want to know what query or queries are being run by these short-lived connec

Re: Tomcat 9 Encrpytion of JDBC

2022-01-24 Thread Rémy Maucherat
On Thu, Jan 20, 2022 at 6:30 PM Christopher Schultz wrote: > > Harri, > > On 1/20/22 11:37, Harri Pesonen wrote: > > 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 anothe

Re: Tomcat showing two sets of memory settings

2022-01-24 Thread Christopher Schultz
Patrick, On 1/21/22 15:10, Patrick Baldwin wrote: I've got a tomcat install ( Apache Tomcat Version 8.5.23 )that is showing two sets of memory settings, the second set of which is what I want and is being set in setenv.sh. It's okay to have multiple definitions of your heap sizes; the last a

Re: tomcat-10.0.x Problem https multiple IP

2022-01-24 Thread Christopher Schultz
Jaebo, On 1/21/22 06:42, Jaebo Nah wrote: Thank you for your help, I found the problem. Only one certificate may be contained in the KeyStore file. I had several certificates in the KeyStore file, and the Tomcat server 10.x always got the first certificate in the KeyStore file. With Tomcat 9.x

AW: getServerPort always return 80

2022-01-24 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, Maybe you can use isSecure() instead of getScheme() Issecure can be modified via server.xml Greetings, Thomas Von: 王 静凯 Gesendet: Montag, 24. Januar 2022 10:35:52 An: Tomcat Users List Betreff: 回复: getServerPort always return 80 Hi, I have found what

回复: getServerPort always return 80

2022-01-24 Thread 王 静凯
Hi, I have found what cause this problem after compile a tomcat with some logs. In RemoteIpValve.java’s method ‘invoke’, it check if protocolHeader is null. My nginx send a header ‘X-Forwarded-Proto http’ to tomcat. So it call setPorts method and use the default port (80) of http protocol