Tomcat log warnings for connection parameter limits?

2024-04-09 Thread Baron Fujimoto
I'm investigating occasional 503 errors for our CAS service running in a Tomcat 10.1.x container. The 503s appear to correlate with some traffic spikes at the same time. The connector is configured as follows: Can Tomcat log info such as when the maxThreads or maxConnections limits are

Retrieve server.built, server.number

2024-04-09 Thread prat 007
Hi All, I would like to know is there a way to find tomcat's server.built and server.number remotely using tool loke curl or from browser? I am currently running tomcat v 9.0.87. This information gets displayed when we run version.sh or in the starting logs when tomcat starts up but how we can

Re: Tomcat & Http 103 Early Hint

2024-04-09 Thread xulin y
Hi Mark, Is there any chance I could help with delivering this new feature? At least, I can help with writing some tests. I think this new http feature can be beneficial a lot for web application page load performance. Therefore, this is crucial for the whole Tomcat community. By Xulin Yang

Re: Tomcat on Windows : new keystore possibilities

2024-04-08 Thread david w
I understand, but am not looking for troubleshooting but trying to raise awareness of the new sunmscapi capabilities. I'm testing using the private key in the windows machine store to simplify tls implementation. For this it requires local admin rights but I am also looking how to not need

Re: Tomcat on Windows : new keystore possibilities

2024-04-08 Thread Bill Stewart
On Mon, Apr 8, 2024 at 8:27 AM david w wrote: If you can share a way for this to not be necessary, I'm all ears... > I can read computer certificates from non-privileged accounts on Windows. (How would a user application such as a browser work otherwise?) I'm not sure what's different on your

Re: Tomcat on Windows : new keystore possibilities

2024-04-08 Thread david w
If you can share a way for this to not be necessary, I'm all ears... David Wooffindin From: Bill Stewart Sent: Monday, April 8, 2024 4:22:37 PM To: Tomcat Users List Subject: Re: Tomcat on Windows : new keystore possibilities On Mon, Apr 8, 2024 at 3:49 AM

Re: Tomcat on Windows : new keystore possibilities

2024-04-08 Thread Bill Stewart
On Mon, Apr 8, 2024 at 3:49 AM david w wrote: The account running the Tomcat Windows Service needs local Administrator > rights to be able to refernce these certificate stores. > Fortunately, this statement is not correct. I would definitely not recommend running the Tomcat service using a

Re: Tomcat in a Windows environment : new keystore possibilities

2024-04-08 Thread Christopher Schultz
David, On 4/8/24 05:35, David Wooffindin wrote: Referring to the documentation on Apache Tomcat 9 Configuration Reference (9.0.87) - The HTTP Connector keystore types, i wanted to get mentioned that a new set of

Re: Tomcat & Http 103 Early Hint

2024-04-08 Thread Mark Thomas
8 Apr 2024 10:26:23 xulin y : Hi, I would like to ask about whether Tomcat has support for http 103 early hint response status? Not at the moment. I have checked the latest doc that https://tomcat.apache.org/tomcat-11.0-doc/servletapi/jakarta/servlet/http/HttpServletResponse.html does not

Re: Intermittent error 404

2024-04-08 Thread Mark Thomas
8 Apr 2024 11:20:09 andreas.moro...@wobi.bz.it: Hello we use Apache Tomcat/8.5.99. Tomcat 8.5.x is no longer supported by the Tomcat community. You should upgrade to at least 9.0.x or consider purchasing 8.5.x support from one of the commercial vendors that offer it. It sounds like an

Tomcat on Windows : new keystore possibilities

2024-04-08 Thread david w
Hello Referring to the documentation on Apache Tomcat 9 Configuration Reference (9.0.87) - The HTTP Connector keystore types, i wanted to get mentioned that a new set of possibilities is available with newer java

Tomcat in a Windows environment : new keystore possibilities

2024-04-08 Thread David Wooffindin
Referring to the documentation on Apache Tomcat 9 Configuration Reference (9.0.87) - The HTTP Connector keystore types, i wanted to get mentioned that a new set of possibilities is available with newer java builds, when

Intermittent error 404

2024-04-08 Thread Andreas . Moroder
Hello we use Apache Tomcat/8.5.99. Last week I changed the user of the Tomcat services. When I refresh teh page then every second time the page appears correctly and the other 50% I get the error No I get intermittent error 404 The origin server did not find a current representation for the

Tomcat & Http 103 Early Hint

2024-04-08 Thread xulin y
Hi, I would like to ask about whether Tomcat has support for http 103 early hint response status? I have checked the latest doc that https://tomcat.apache.org/tomcat-11.0-doc/servletapi/jakarta/servlet/http/HttpServletResponse.html does not have 103 response status. If not, do we have any plan

Re: Turning on the Invoker Servlet

2024-04-06 Thread Chuck Caldarale
> On Apr 6, 2024, at 13:30, Alain Lemay wrote: > > Java version: 1.8.0_401 > Tomcat version: 9.0.87 > Operating system: macOS Big Sur > System Version: macOS 11.7.10 (20G1427) BTW, macOS 11 reached end-of-life some months ago. > Kernel Version: Darwin 20.6.0 > > I want to familiarize

Turning on the Invoker Servlet

2024-04-06 Thread Alain Lemay
Java version: 1.8.0_401 Tomcat version: 9.0.87 Operating system: macOS Big Sur System Version: macOS 11.7.10 (20G1427) Kernel Version: Darwin 20.6.0 Hi, I want to familiarize myself with JavaServer Pages. A long time ago, I acquired the book Core Servlets and Java Server Pages Volume 1: Core

RE: Speeding up tomcat

2024-04-05 Thread Alex Hatcher
To follow up with my request for help. we made 3 adjustments. added in org.apache.jasper.servlet.JspServlet checkInterval 300 development false server.xml context.xml added Response times on the website went from

Re: org.apache.catalina.valves.RemoteAddrValve

2024-04-05 Thread Eric Fetzer
Thanks Christopher! Sent from my iPhone > On Apr 4, 2024, at 10:20 PM, Christopher Schultz > wrote: > > Eric, > >> On 4/4/24 13:43, Eric Fetzer wrote: >> Hi All, >> When I originally set up my tomcat instance, I added the following to allow >> manager access under

RE: Migrating from Tomcat 9.0.x to 10.1.x

2024-04-05 Thread Amit Pande
Thank you, Chris, for the feedback. The changes are needed in the Spring WebSocket library to ensure Tomcat 10.1 compatibility. https://github.com/spring-projects/spring-framework/pull/29434 As I understand, this means I should be updating the Spring libraries used in the applications to be

R: PKCS#8 encryption algorithm unrecognized

2024-04-05 Thread Roberto Benedetti
> I got the Object ID and version straight out of the Certificate using > Keystore Explorer.  I'm not sure why there is a difference. Keystore Explorer uses Bouncy Castle (https://www.bouncycastle.org/) as provider for JCE. If your JRE/JDK does not provide some algorithm you could use Bouncy

Re: Migrating from Tomcat 9.0.x to 10.1.x

2024-04-04 Thread Christopher Schultz
Amit, On 4/4/24 22:21, Amit Pande wrote: I am in the process of migrating from Tomcat 9 (9.0.87) to Tomcat 10.1 (10.1.20). https://tomcat.apache.org/migration-10.1.html Using the migration tool, I have migrated the applications (which use Spring libraries 5.x). While testing the migrated

Migrating from Tomcat 9.0.x to 10.1.x

2024-04-04 Thread Amit Pande
Hello, I am in the process of migrating from Tomcat 9 (9.0.87) to Tomcat 10.1 (10.1.20). https://tomcat.apache.org/migration-10.1.html Using the migration tool, I have migrated the applications (which use Spring libraries 5.x). While testing the migrated apps( which use web socket), ran into:

Re: org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Christopher Schultz
Eric, On 4/4/24 13:43, Eric Fetzer wrote: Hi All, When I originally set up my tomcat instance, I added the following to allow manager access under /opt/tomcat/webapps/manager/META-INF/context.xml: That worked wonderfully. Now I'm trying to add another IP range by changing it to: This is

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
LOL, I'm decent at regex Robert. I got the \d+ from what ships in the context.xml: 127\.\d+\.\d+\.\d+ It looks like an attempt at saying localhost can get in as long as the localhost IP starts with 127. I assumed it wasn't actually regex but some "tomcat language"... Thanks for the education!

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Sorry folks (Robert), but upon further testing, it looks like port 8080 isn't open on these IP's. I was mistaking the attempt to connect from my curl command with a response. I withdrawal my question for now. I'll reply to this thread if it doesn't work once the hole in the firewall is carved

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Robert Egan
You need to read up on "regular expressions" (or "regex"). In a regular expression, a lowercase "d" is a single decimal digit. A "+" means one or more of them. A period means ANY character (which is why you have to escape it when you mean "period"). A backward slash means to treat the character

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Thanks for the quick response Robert! So I tried escaping the periods and putting the \d+ for the * but it didn't work. Is the \d+ incorrect in substitution for *? On Thu, Apr 4, 2024 at 11:53 AM Robert Egan wrote: > It looks like you need to escape your periods, like you did for 127\. >

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Robert Egan
It looks like you need to escape your periods, like you did for 127\. etc... 1\.3\.5 Robert Egan On Thu, Apr 4, 2024 at 1:44 PM Eric Fetzer wrote: > Hi All, > > When I originally set up my tomcat instance, I added the following to allow > manager access under

org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Hi All, When I originally set up my tomcat instance, I added the following to allow manager access under /opt/tomcat/webapps/manager/META-INF/context.xml: That worked wonderfully. Now I'm trying to add another IP range by changing it to: This is not working. I tried to use 2\.4\.6\.\d+ as

Re: PKCS#8 encryption algorithm unrecognized

2024-04-04 Thread Timothy Resh
Java is 1.8.0_391 On Thu, Apr 4, 2024 at 1:35 PM Timothy Resh wrote: > I got the Object ID and version straight out of the Certificate using > Keystore Explorer. I'm not sure why there is a difference. > > The "\" is because I manually deleted the beginning part of the path. > It's correct in

Re: PKCS#8 encryption algorithm unrecognized

2024-04-04 Thread Timothy Resh
I got the Object ID and version straight out of the Certificate using Keystore Explorer. I'm not sure why there is a difference. The "\" is because I manually deleted the beginning part of the path. It's correct in the actual file. Java is 1.8. On Wed, Apr 3, 2024 at 6:11 PM Konstantin

Re: Tomcat Internal Architect for JSP compilation?

2024-04-04 Thread Subodh Joshi
As Suggested by @Tim i used precompiled jsp feature and now i am not getting 500 error even i deleted the */tmp/tomcat** directory @Bean > > public ServletContextInitializer preCompileJspsAtStartup() { > > return servletContext -> { > > Set jspPaths =

Re: PKCS#8 encryption algorithm unrecognized

2024-04-03 Thread Konstantin Kolinko
> Caused by: java.security.NoSuchAlgorithmException: The PKCS#8 encryption > algorithm with DER encoded OID of [2a864886f70d010c0103] was not recognised If I google for the above hex number, it finds the following: '2A864886F70D010C0103' -- 1.2.840.113549.1.12.1.3 pbeWithSHAAnd3-KeyTripleDES-CBC

Re: PKCS#8 encryption algorithm unrecognized

2024-04-03 Thread Timothy Resh
Sure, I can provide the entire setup for you. I'll work on that tonight . On Sun, Mar 31, 2024 at 2:05 PM Mark Thomas wrote: > On 25/03/2024 16:56, Timothy Resh wrote: > > Sorry for the delay. Our certificate creation process was automated > > several years ago and I had to go through the

Participate in the ASF 25th Anniversary Campaign

2024-04-03 Thread Brian Proffitt
Hi everyone, As part of The ASF’s 25th anniversary campaign[1], we will be celebrating projects and communities in multiple ways. We invite all projects and contributors to participate in the following ways: * Individuals - submit your first contribution:

Re: [EXT]Re: unable to set compression, compressionMinSize and compressableMinemType attributes in UpgradeProtocol element

2024-04-02 Thread Mark Thomas
On 02/04/2024 15:41, Rick Noel wrote: Mark you were correct. I, needed to move those attributes to the Connection element. Plus on top of that I had this misspelled attribute compressableMinemType should be compressibleMimeType In your opinion, should we use the Upgrade UpgradeProtcol

RE: [EXT]Re: unable to set compression, compressionMinSize and compressableMinemType attributes in UpgradeProtocol element

2024-04-02 Thread Rick Noel
Mark you were correct. I, needed to move those attributes to the Connection element. Plus on top of that I had this misspelled attribute compressableMinemType should be compressibleMimeType In your opinion, should we use the Upgrade UpgradeProtcol protocol? I mean does not the semantics of

Re: unable to set compression, compressionMinSize and compressableMinemType attributes in UpgradeProtocol element

2024-04-02 Thread Mark Thomas
On 02/04/2024 14:53, Rick Noel wrote: Hello, What am I missing here? You haven't provided information on the Tomcat version you are using. I'm assuming 10.1.x. https://tomcat.apache.org/tomcat-10.1-doc/config/http2.html Search for compressionMinSize. I get warnings that the compression

unable to set compression, compressionMinSize and compressableMinemType attributes in UpgradeProtocol element

2024-04-02 Thread Rick Noel
Hello, What am I missing here? I get warnings that the compression related attributes of compression, compressionMinSize and compressableMinemType are not being set. 02-Apr-2024 09:36:24.876 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match

Re: Tomcat 9.0.87 - status 400 in css / images

2024-04-02 Thread Konstantin Kolinko
пн, 1 апр. 2024 г. в 23:54, DAngel : > > Hi! > > I am using http 1.1 > > The browser connects directly to tomcat (in my environment, I directly > access localhost:8080/myApp ) > > In my development environment I can do the necessary tests (without > restrictions) > > I can always reproduce the

Re: Tomcat 9.0.87 - status 400 in css / images

2024-04-01 Thread DAngel
Hi! I am using http 1.1 The browser connects directly to tomcat (in my environment, I directly access localhost:8080/myApp ) In my development environment I can do the necessary tests (without restrictions) I can always reproduce the error by simply clearing the browser cache. In the

RE: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-04-01 Thread Rick Noel
Yes and that is just what we are trying to do. On our dev servers all five different applications share the same database. So it would seem best to have the resource link in the context.xml and not complicate things up by putting the database link in each web application's web.xml. The idea

Re: PKCS#8 encryption algorithm unrecognized

2024-03-31 Thread Mark Thomas
On 25/03/2024 16:56, Timothy Resh wrote: Sorry for the delay. Our certificate creation process was automated several years ago and I had to go through the code to figure out the commands being used for the certificates First, we use the createcert.exe from the Sybase 17 installation to I

Re: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-31 Thread Mark Thomas
On 29/03/2024 21:58, Christopher Schultz wrote: Rick, On 3/29/24 14:33, Rick Noel wrote: Our application is really a suite of 5applications.  And the server.xml  I am talking about is on our dev machine, where we want to run all 5 apps on the one web server. The context.xml has global

CommunityOverCode Asia 2024 is calling for Presentations!

2024-03-29 Thread Huxing Zhang
Hi All, Community over Code Asia 2024 will be held in person this year in Hangzhou, China [1]. The CFP will end on April 21st, 2024 11:59 PM (Beijing time - UTC +8). For details could be found on the website [1]. Note that for the topics that can't be presented in person, a pre-recorded video

Re: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
Rick, On 3/29/24 14:33, Rick Noel wrote: Our application is really a suite of 5applications. And the server.xml I am talking about is on our dev machine, where we want to run all 5 apps on the one web server. The context.xml has global enviroiment variables (like mail server related vars)

RE: FW: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Rick Noel
Yeah I like the idea of using the Resourcelink in the context.xml and then keep the defining of that datasource in the server.xml Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Christopher Schultz Sent: Friday, March 29, 2024 2:23 PM To:

RE: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Rick Noel
Chris, Our application is really a suite of 5applications. And the server.xml I am talking about is on our dev machine, where we want to run all 5 apps on the one web server. The context.xml has global enviroiment variables (like mail server related vars) that all the dev applications use.

Re: FW: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
Rick, On 3/29/24 14:05, Rick Noel wrote: Chris, I found I could use a ResourceLink element and put it in my context.xml file. The name in that ResourceLink is the name of resource that I have fully defined in my server.xml. Sot the context.xml points to the fully define resource which is in

Re: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
Rick, On 3/29/24 11:56, Rick Noel wrote: If have the resource defined in CATALINA_BASE/conf/context.xml And CATALINA_BASE/conf/server.xml You really shouldn't have anything custom in CATALINA_BASE/conf/context.xml. That will affect every application deployed on the server. Perhaps you only

FW: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Rick Noel
Chris, I found I could use a ResourceLink element and put it in my context.xml file. The name in that ResourceLink is the name of resource that I have fully defined in my server.xml. Sot the context.xml points to the fully define resource which is in my server.xml So snippet from my

RE: [EXT]Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Rick Noel
If have the resource defined in CATALINA_BASE/conf/context.xml And CATALINA_BASE/conf/server.xml Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Christopher Schultz Sent: Friday, March 29, 2024 11:47 AM To: users@tomcat.apache.org Subject:

Re: how to define database resource in just context.xml or server.xml

2024-03-29 Thread Christopher Schultz
Rick, On 3/29/24 09:48, Rick Noel wrote: Can someone tell me why I need to have my database source defined in both my context.xml and server.xml? I thought we are suppose to define it in only one location? It's definitely not a requirement to specify it in both places. I can only log into my

how to define database resource in just context.xml or server.xml

2024-03-29 Thread Rick Noel
Hello, Can someone tell me why I need to have my database source defined in both my context.xml and server.xml? I thought we are suppose to define it in only one location? I can only log into my app if I have it defined in both my context.xml and server.xml Below is my database resource

Re: [EXT]Re: [EXT]Re: performance tunning of Tomcat 10

2024-03-28 Thread Christopher Schultz
Rick, On 3/28/24 15:38, Rick Noel wrote: my bottleneck (app slowness to respond is the at the database connection max), I am not even going to try and adjust minThreads and maxThreads. When I tried to increase maxConnection to our database from and existing connection max of 20, to a new

RE: [EXT]Re: [EXT]Re: performance tunning of Tomcat 10

2024-03-28 Thread Rick Noel
Chris, my bottleneck (app slowness to respond is the at the database connection max), I am not even going to try and adjust minThreads and maxThreads. When I tried to increase maxConnection to our database from and existing connection max of 20, to a new connectionMax of 50, I got errors, see

Re: [EXT]Re: performance tunning of Tomcat 10

2024-03-28 Thread Christopher Schultz
Rick, On 3/27/24 09:22, Rick Noel wrote: -Original Message- From: Christopher Schultz Sent: Wednesday, March 27, 2024 8:24 AM To: Tomcat Users List ; Rick Noel Cc: Voodoo nmulcahy gmail ; David Jung Subject: [EXT]Re: performance tunning of Tomcat 10 Rick, On 3/27/24 07:53, Rick

RE: [EXT]Re: performance tunning of Tomcat 10

2024-03-27 Thread Rick Noel
Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Christopher Schultz Sent: Wednesday, March 27, 2024 8:24 AM To: Tomcat Users List ; Rick Noel Cc: Voodoo nmulcahy gmail ; David Jung Subject: [EXT]Re: performance tunning of Tomcat 10 Rick,

Re: performance tunning of Tomcat 10

2024-03-27 Thread Christopher Schultz
Rick, On 3/27/24 07:53, Rick Noel wrote: I was wondering if the apache foundation has any tools we can use to fine tune Tomcat 10. Tools to deteming how to set the best heap size for Tomcat startup and the best connection attributes of minSpareThreads and MaxThreads. What is your goal? I

performance tunning of Tomcat 10

2024-03-27 Thread Rick Noel
Hello, I was wondering if the apache foundation has any tools we can use to fine tune Tomcat 10. Tools to deteming how to set the best heap size for Tomcat startup and the best connection attributes of minSpareThreads and MaxThreads. I know my application at times will reach 100 concurrent

Community Over Code NA 2024 Travel Assistance Applications now open!

2024-03-27 Thread Gavin McDonald
Hello to all users, contributors and Committers! [ You are receiving this email as a subscriber to one or more ASF project dev or user mailing lists and is not being sent to you directly. It is important that we reach all of our users and contributors/committers so that they may get a chance

Re: Tomcat Internal Architect for JSP compilation?

2024-03-26 Thread Christopher Schultz
Subodh, On 3/26/24 06:59, Subodh Joshi wrote: I am planning to do same now and may be we will use the property *server.tomcat.basedir* But this may create another issue ,it will grow the size of the folder. What makes you say that? Is this possible in the coming release tomcat/embedded

Re: Tomcat Internal Architect for JSP compilation?

2024-03-26 Thread Subodh Joshi
Thanks Chris & others for your input, I am planning to do same now and may be we will use the property *server.tomcat.basedir* But this may create another issue ,it will grow the size of the folder . Is this possible in the coming release tomcat/embedded tomcat give a feature to delete the

Re: Speeding up tomcat

2024-03-25 Thread Christopher Schultz
Alex, On 3/25/24 13:06, Alex Hatcher wrote: Java version: 11.0.20 Tomcat version: 9.0.59 Are you able to upgrade these? Your Tomcat is nearly 2 years old and your Java is ... I'm not sure how old. This will have nothing to do with performance. Just security and general stability. OS

[ANN] Apache Tomcat 10.1.20 Available

2024-03-25 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.1.20. 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

[ANN] Apache Tomcat 8.5.100 Available

2024-03-25 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.100. *This will likely be the final release of Apache Tomcat 8.5. Please see the EOL notice linked at the end of this message.* Apache Tomcat 8 is an open source software implementation of the Java Servlet,

RE: Speeding up tomcat

2024-03-25 Thread John.E.Gregg
Alex > -Original Message- > From: Alex Hatcher > Sent: Monday, March 25, 2024 12:06 PM > To: users@tomcat.apache.org > Subject: Speeding up tomcat > > > > Java version: 11.0.20 > > Tomcat version: 9.0.59 > > > OS Version: Windows Server 2022 Datacenter Azure Edition > > Azure VM

Speeding up tomcat

2024-03-25 Thread Alex Hatcher
Java version: 11.0.20 Tomcat version: 9.0.59 OS Version: Windows Server 2022 Datacenter Azure Edition Azure VM Type and Specs: D8s v3 8 CPU 32 GiB Mem VM Generation V2 VM Architecture x64 Location East US Zone 1 We have a

Re: Tomcat 9.0.87 - status 400 in css / images

2024-03-25 Thread Christopher Schultz
DAngel, On 3/22/24 16:14, DAngel wrote: Tomcat 9.0.87 (and Tomcat 9.0.76) Ubuntu 22.04 (and Red hat 8) java 8 : openjdk version "1.8.0_382" protocol: HTTP I have migrated an application from tomcat 7 (7.0.76) to tomcat 9.0.76 (and also to tomcat 9.0.87) After upgrading to Tomcat 9.0.76, the

Re: PKCS#8 encryption algorithm unrecognized

2024-03-25 Thread Timothy Resh
Sorry for the delay. Our certificate creation process was automated several years ago and I had to go through the code to figure out the commands being used for the certificates First, we use the createcert.exe from the Sybase 17 installation to generate a DB cert for ODBC connectivity. Please

Tomcat 9.0.87 - status 400 in css / images

2024-03-22 Thread DAngel
Hi guys. Tomcat 9.0.87 (and Tomcat 9.0.76) Ubuntu 22.04 (and Red hat 8) java 8 : openjdk version "1.8.0_382" protocol: HTTP I have migrated an application from tomcat 7 (7.0.76) to tomcat 9.0.76 (and also to tomcat 9.0.87) After upgrading to Tomcat 9.0.76, the web page is not displaying

RE: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Rick Noel
Thank you very much Chris The classes my app uses should be serialize anyway so I just go that route. But thanks for that code snippet too Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Christopher Schultz Sent: Friday, March 22, 2024 2:36

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
Robert. On 3/22/24 14:11, Robert Turner wrote: Thanks for figuring it out -- I will keep that in mind when I go to split our "mega session object" up as that will impact some of the decisions for sure. Yeah, I guess you end up with a "dummy object" on the session as a result -- I guess we got

Re: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Christopher Schultz
Rick, On 3/22/24 13:33, Rick Noel wrote: I do not want to replicate customer because that class does not implement serializable I was looking for someway that the Manager would NOT try to replicate it This is an allow-list which is much more secure than a deny-list. It's a regular

Re: HttpSession tracking

2024-03-22 Thread Robert Turner
Thanks for figuring it out -- I will keep that in mind when I go to split our "mega session object" up as that will impact some of the decisions for sure. Yeah, I guess you end up with a "dummy object" on the session as a result -- I guess we got lucky with ours -- our handlers on the session

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
All, On 3/22/24 09:59, Christopher Schultz wrote: All, On 3/22/24 09:33, Robert Turner wrote: On Fri, Mar 22, 2024 at 9:28 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPassivate and

RE: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Rick Noel
I do not want to replicate customer because that class does not implement serializable I was looking for someway that the Manager would NOT try to replicate it Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Mark Thomas Sent: Friday, March

Re: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Mark Thomas
On 22/03/2024 15:43, Rick Noel wrote: Mark, So if my customer object is failing to get set in the session replication, I could add this to the config snippet? sessionAttributeNameFilter="customer" You set that to the attributes you DO want to replicate, not the ones you don't. Mark so

RE: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Rick Noel
So setting... sessionAttributeNameFilter="customer" does not work, still getting the error java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute : customer Do I need to set this also? sessionAttributeValueClassNameFilter=

Re: Memory leak in EncodingDetector?

2024-03-22 Thread Simon Niederberger
Very cool Chris, thanks for the quick reaction! Simon out On Fri, Mar 22, 2024 at 1:41 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Simon, > > On 3/21/24 12:39, Simon Niederberger wrote: > > Hi Chris > > > > Personally I'd go with > > > > XML_INPUT_FACTORY = > >

RE: [EXT]Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Rick Noel
Mark, So if my customer object is failing to get set in the session replication, I could add this to the config snippet? sessionAttributeNameFilter="customer" so like this?...

Re: Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Mark Thomas
On 22/03/2024 15:15, Rick Noel wrote: Is there a way to configure DeltaManager or the Cluster element so it does not cause my application to throw this error. 22-Mar-2024 10:56:34.382 SEVERE [http-nio-8586-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for

Tomcat session replication issue - java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute :

2024-03-22 Thread Rick Noel
Is there a way to configure DeltaManager or the Cluster element so it does not cause my application to throw this error. 22-Mar-2024 10:56:34.382 SEVERE [http-nio-8586-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
All, On 3/22/24 09:33, Robert Turner wrote: On Fri, Mar 22, 2024 at 9:28 AM Christopher Schultz < ch...@christopherschultz.net> wrote: Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPassivate and sessionDidActivate callbacks on startup. Odd that you are not. That's

Re: Memory leak in EncodingDetector?

2024-03-22 Thread Christopher Schultz
Simon, On 3/21/24 12:39, Simon Niederberger wrote: Hi Chris Personally I'd go with XML_INPUT_FACTORY = XMLInputFactory.newFactory(XMLInputFactory.class.getName(), EncodingDetector.class.getClassLoader()); allowing me to place my own JAR in common/lib if I really want to (the only scenario I

Re: HttpSession tracking

2024-03-22 Thread Robert Turner
On Fri, Mar 22, 2024 at 9:28 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > Robert, > > On 3/21/24 15:31, Robert Turner wrote: > > We receive the sessionWillPassivate and sessionDidActivate callbacks > > on startup. Odd that you are not. That's how we achieve the same. > On

Re: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Christopher Schultz
Subodh, On 3/22/24 01:36, Subodh Joshi wrote: Hi Chris Thanks for your response. So i added below properties in application.properties file spring.mvc.cache-control.cache-allowed=false and then Deleted the /tmp/tomcat directory . So now when i restart the server A.jsp only fail with 500

Re: HttpSession tracking

2024-03-22 Thread Christopher Schultz
Robert, On 3/21/24 15:31, Robert Turner wrote: We receive the sessionWillPassivate and sessionDidActivate callbacks on startup. Odd that you are not. That's how we achieve the same. On 3/21/24 16:21, Robert Turner wrote: Just to add a bit more information, our handler class, for better or for

RE: [EXT]Re: [EXT]Re: Tomcat 10 waning that expireSessionsOnShutdown is not set

2024-03-22 Thread Rick Noel
Thanks Chuck great link to lots of good stuff Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Chuck Caldarale Sent: Thursday, March 21, 2024 4:00 PM To: Tomcat Users List Subject: [EXT]Re: [EXT]Re: Tomcat 10 waning that

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: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Tim Funk
One possible workaround is to precompile the JSP's at build time. https://tomcat.apache.org/tomcat-9.0-doc/jasper-howto.html#Web_Application_Compilation -Tim On Fri, Mar 22, 2024 at 1:37 AM Subodh Joshi wrote: > > Why i am doing this exercise? > In our some of the deployed linux environment

Re: Tomcat Internal Architect for JSP compilation?

2024-03-21 Thread Subodh Joshi
Hi Chris Thanks for your response. So i added below properties in application.properties file > spring.mvc.cache-control.cache-allowed=false > > and then Deleted the /tmp/tomcat directory . So now when i restart the server A.jsp only fail with 500 error (ClassNotFoundException) as this is first

Re: HttpSession tracking

2024-03-21 Thread Robert Turner
Just to add a bit more information, our handler class, for better or for worse, implements the following interfaces all in one class: implements HttpSessionBindingListener, HttpSessionActivationListener, HttpSessionIdListener, HttpSessionListener, ServletContextListener We also use that same

Re: [EXT]Re: Tomcat 10 waning that expireSessionsOnShutdown is not set

2024-03-21 Thread Chuck Caldarale
> On Mar 21, 2024, at 14:50, Rick Noel wrote: > > Do you have a feel if DeltaManager is better than BackupManager? Depends on what your needs are. There are some presentations on the subject that you might want to look at: https://tomcat.apache.org/presentations.html ApacheCon 2018 NA:

RE: [EXT]Re: Tomcat 10 waning that expireSessionsOnShutdown is not set

2024-03-21 Thread Rick Noel
Thank you Chuck Do you have a feel if DeltaManager is better than BackupManager? Rick Noel Systems Programmer | Westwood One rn...@westwoodone.com -Original Message- From: Chuck Caldarale Sent: Thursday, March 21, 2024 3:37 PM To: Tomcat Users List Subject: [EXT]Re: Tomcat 10

Re: Tomcat 10 waning that expireSessionsOnShutdown is not set

2024-03-21 Thread Chuck Caldarale
> On Mar 21, 2024, at 14:23, Rick Noel wrote: > > Could someone tell me why I would get the below waning about > expireSessionsOnShutdown not being set > > WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match > [Server/Service/Engine/Host/Cluster/Manager] failed to

Re: HttpSession tracking

2024-03-21 Thread Robert Turner
We receive the sessionWillPassivate and sessionDidActivate callbacks on startup. Odd that you are not. That's how we achieve the same. On Thu, Mar 21, 2024 at 3:25 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > All, > > After having written a solution using JMX to do something

HttpSession tracking

2024-03-21 Thread Christopher Schultz
All, After having written a solution using JMX to do something like this, I'd like to make it cleaner and I'm not sure it's entirely possible using just Servlet APIs. I'd like to be able to track every HttpSession for the application. for admin purposes, I'd like to be able to analyze: 1.

Tomcat 10 waning that expireSessionsOnShutdown is not set

2024-03-21 Thread Rick Noel
Hello, Could someone tell me why I would get the below waning about expireSessionsOnShutdown not being set WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host/Cluster/Manager] failed to set property [expireSessionsOnShutdown] to [false] I

Re: Memory leak in EncodingDetector?

2024-03-21 Thread Simon Niederberger
Hi Chris Personally I'd go with XML_INPUT_FACTORY = XMLInputFactory.newFactory(XMLInputFactory.class.getName(), EncodingDetector.class.getClassLoader()); allowing me to place my own JAR in common/lib if I really want to (the only scenario I can think of is an edge-case where there's a bug in

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