Re: Tips on identifying the DB connection leaks leading to the "Pool empty" error

2023-04-17 Thread Kevin Huntly
We stumbled into it to be honest. There should be a fairly easy way though if you're on a linux box... something like.. grep -r ".getConnection" * should get you all the classes that make a call to something like sqlConn.getConnection(), and then once you have that you can check for finally {}

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Terence M. Bandoian
On 4/17/2023 6:13 PM, Kevin Huntly wrote: Thank you, all set. I guess I wasn't googling the right things lol, either that or I'm getting a little too used to asking on the list =( Yes. -Terence Bandoian On Mon, Apr 17, 2023 at 7:03 PM Torsten Krah wrote: The whole thing is also well

Re: Tips on identifying the DB connection leaks leading to the "Pool empty" error

2023-04-17 Thread Torsten Krah
Use logAbandoned as a boolean parameter, you will get stacktraces in the log. From those you can narrow down where you are leaking connections. Akshay Mishra schrieb am Di., 18. Apr. 2023, 01:07: > Hello Tomcat Community! > > > Tomcat Version: 9.0.70 > > Our Tomcat web service started

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
Just another quick question... and it may not be able to be answered here... Is there a way to get Eclipse to stop bitching about missing "javax.servlet.*" dependencies? It's complaining on every JSP I have... Kevin Huntly Email:

Re: Tips on identifying the DB connection leaks leading to the "Pool empty" error

2023-04-17 Thread Kevin Huntly
my team saw this same thing in production - there was code that never closed the SQL connection after it was created... 150+ connections spike all at once, took out the pool. Not sure if that's your issue, but thought i'd mention it Kevin Huntly

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
Thank you, all set. I guess I wasn't googling the right things lol, either that or I'm getting a little too used to asking on the list =( Kevin Huntly Email: kmhun...@gmail.com Cell: 716/424-3311

Tips on identifying the DB connection leaks leading to the "Pool empty" error

2023-04-17 Thread Akshay Mishra
Hello Tomcat Community! Tomcat Version: 9.0.70 Our Tomcat web service started exhausting the max connections allowed to the backend datastore (Postgres). >From the logs, we don’t see any 1 thread requesting lot of connections. Nor do >we see too many threads requesting a new connection. We

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
The whole thing is also well answered there btw: https://stackoverflow.com/questions/4928271/how-to-install-jstl-the-absolute-uri-http-java-sun-com-jstl-core-cannot-be-r#4928309 Kevin Huntly schrieb am Di., 18. Apr. 2023, 00:52: > I am now seeing this: > > 17-Apr-2023 18:50:44.450 SEVERE

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
https://stackoverflow.com/questions/74585710/migration-to-jakarta-ee-unable-to-find-taglib-c-for-uri-jakarta-tags-core Does that help? Kevin Huntly schrieb am Di., 18. Apr. 2023, 00:52: > I am now seeing this: > > 17-Apr-2023 18:50:44.450 SEVERE [catalina-exec-1] >

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
I am now seeing this: 17-Apr-2023 18:50:44.450 SEVERE [catalina-exec-1] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [jsp] threw exception org.apache.jasper.JasperException: /com.cws.esolutions.web.login/jsp/html/en/Login.jsp (line: [1], column: [1])

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
And update your taglib definitions, see here: https://jakarta.ee/specifications/tags/3.0/ The old ones are deprecated/ removed: Quote: Rename java.sun.com taglib URIs to new jakarta.tags.* URNs. Kevin Huntly schrieb am Di., 18. Apr. 2023, 00:34: > Now i'm getting these: > > 17-Apr-2023

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Mark Eggers
https://jakarta.ee/specifications/tags/3.0/tagdocs/c/tld-summary.html . . . just my two cents /mde/ On 4/17/2023 3:34 PM, Kevin Huntly wrote: Now i'm getting these: 17-Apr-2023 18:32:03.236 INFO [main] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
The Jakarta jstl ones have to be compile scope, they are not included in tomcat, do you have that? See the migration guide, spec section, only those APIs listed there should be provided scope. Kevin Huntly schrieb am Di., 18. Apr. 2023, 00:34: > Now i'm getting these: > > 17-Apr-2023

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
Now i'm getting these: 17-Apr-2023 18:32:03.236 INFO [main] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath 17-Apr-2023 18:32:04.904 INFO [main] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
You should only use https://jakarta.ee/specifications/tags/3.0/ and not the old 1.2.5 one, remove that old one. Why do you have both included? Kevin Huntly schrieb am Di., 18. Apr. 2023, 00:19: > 6.0.0 > > 1.2.5 > > 3.0.0 > > 3.1.1 > > > Kevin

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
6.0.0 1.2.5 3.0.0 3.1.1 Kevin Huntly Email: kmhun...@gmail.com Cell: 716/424-3311 -BEGIN GEEK CODE BLOCK- Version: 1.0 GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E--- W+++ N+ o K(+) w--- O- M--

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
All the api ones have to be provided, not compile scope imho. Tomcat does provide them, don't package them in your war file and double check the versions from the guide, there is still a class referencing the old API and is causing the exception. You missed to add the versions you used, add them

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
Thank you for that... I have the right (I think) dependencies in my pom: org.apache.taglibs taglibs-standard-impl ${taglibs.version} jar compile jakarta.servlet.jsp.jstl jakarta.servlet.jsp.jstl-api ${jstl.version} jar compile jakarta.servlet.jsp jakarta.servlet.jsp-api

Re: ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Torsten Krah
Please read https://tomcat.apache.org/migration-10.html#Server_Pages_3.0 and while you are there, read the whole guide ;-). Kevin Huntly schrieb am Mo., 17. Apr. 2023, 23:57: > Hello, > > I'm getting the following exception when I try to access my webapp: > > 17-Apr-2023 17:52:55.982 SEVERE

RE: Tomcat 9.0.73 - Exception while accessing application

2023-04-17 Thread jonmcalexander
I don't think they have a mixed environment, but will have them check this out. If it's not a mixed Tomcat lib issue, could it be something else? Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering

ClassNotFound after upgrade to tomcat 10

2023-04-17 Thread Kevin Huntly
Hello, I'm getting the following exception when I try to access my webapp: 17-Apr-2023 17:52:55.982 SEVERE [catalina-exec-1] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [jsp] threw exception java.lang.ClassNotFoundException:

Re: Tomcat 9.0.73 - Exception while accessing application

2023-04-17 Thread Christopher Schultz
Jon, On 4/13/23 17:57, jonmcalexan...@wellsfargo.com.INVALID wrote: They are using Java 11.1 I wonder if you/they have a broken/mixed Tomcat installation. https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/catalina/core/ApplicationContext.java#L459 does indeed reference

Re: Java Heap Space Error

2023-04-17 Thread Christopher Schultz
Pratik, On 4/13/23 22:55, pratik.kulka...@shell.com.INVALID wrote: Chris - I see. So we already have installed a service and I tried to set the environment variable after we got the error. Is there a way for Tomcat to read the variables we set after installation? If you are running the Windows

Re: Tomcat 8.5.85 and above - Issue with file uploads

2023-04-17 Thread Mark Thomas
On 17/04/2023 19:51, Mark Thomas wrote: Hi, I have tried but am unable to recreate this. Please provide the simplest possible web application (it should be possible to do this in a single Servlet) that demonstrates the issue. To give you an idea of what I mean by a single servlet, here is

Re: Tomcat 8.5.85 and above - Issue with file uploads

2023-04-17 Thread Mark Thomas
Hi, I have tried but am unable to recreate this. Please provide the simplest possible web application (it should be possible to do this in a single Servlet) that demonstrates the issue. Please make sure you provide the source code for the web application. Thanks, Mark On 14/04/2023

Re: Updated Tomcat from 6.0.13 to 9.0.73 on IBMi, now the submitting job stays active.

2023-04-17 Thread Thomas Meyer
Hi, What arguments do you give to catalina.sh? Am 17. April 2023 13:08:43 MESZ schrieb "j...@nosnow.us" : >Not a system job. >The submitting job is the qshell command interpreter and we should be able to >do the submit and exit. But haven't got it to work yet. > >I was reviewing the

Re: How to have a custom classloader outside Tomcat's own lib-dir?

2023-04-17 Thread Thorsten Schöning
Guten Tag Thorsten Schöning, am Montag, 17. April 2023 um 13:16 schrieben Sie: >> common.loader=[...],"${catalina.base}/lib_custom/*.jar" >> common.loader=[...],"${catalina.home}/lib_custom/*.jar" >> common.loader=[...],"${catalina.base}/lib_custom/custom.jar" >>

Re: How to have a custom classloader outside Tomcat's own lib-dir?

2023-04-17 Thread BRUNO MELLONI
Perhaps this info will help: - Custom class loaders are supposed to be possible but very poorly documented. I was never able to make them work properly. You might have some luck if you study the source code of Tomcat itself, as it does implement them. - Webapps really expect all custom

Re: How to have a custom classloader outside Tomcat's own lib-dir?

2023-04-17 Thread Thorsten Schöning
Guten Tag Mark Thomas, am Montag, 17. April 2023 um 12:13 schrieben Sie: > What are those reasons? I'm wondering if the reasons have any impact on the > answer. Unlikely, it's about business logic. The custom classloader uses some custom config file to maintain additional JARs for the

Re: Updated Tomcat from 6.0.13 to 9.0.73 on IBMi, now the submitting job stays active.

2023-04-17 Thread j...@nosnow.us
Not a system job. The submitting job is the qshell command interpreter and we should be able to do the submit and exit. But haven't got it to work yet. I was reviewing the catalina.sh file to see if there was anything preventing the job from exiting as it does in the earlier version.

Re: How to have a custom classloader outside Tomcat's own lib-dir?

2023-04-17 Thread Mark Thomas
On 16/04/2023 12:36, Thorsten Schöning wrote: Hi everyone, I have some app consisting of a directory layout with some bundled Tomcat, containing at least one exploded webapp. For various reasons, What are those reasons? I'm wondering if the reasons have any impact on the answer. that