You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kevin Huntly <km...@gmail.com> on 2023/04/17 21:56:04 UTC

ClassNotFound after upgrade to tomcat 10

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:
javax.servlet.jsp.tagext.TagLibraryValidator
                at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
                at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
                at java.base/java.lang.ClassLoader.defineClass1(Native
Method)
                at
java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
                at
java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
                at
org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
                at
org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
                at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
                at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)

it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
"TagLibraryValidator" I can find it in my app under WEB-INF/lib, so I'm not
sure what's going on
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------

Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
I chose option 1 and re-wrote everything. It was fun
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Thu, Apr 20, 2023 at 12:48 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> Kevin,
>
> On 4/17/23 17:56, Kevin Huntly wrote:
> > 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:
> > javax.servlet.jsp.tagext.TagLibraryValidator
>
>
> You are trying to deploy a Java EE application onto a Jakarta EE server.
>
> You have a few options:
>
> 1. Re-write your application. (Best long-term strategy)
> 2. Run the Tomcat Migration Tool on your application (WAR/dir) and
> deploy that on to Tomcat 10.1 or later
> 3. Put your application WAR/dir into Tomcat's "legacyAppBase" directory
> for your <Host> (defaults to "webapps-javaee" next to the "webapps"
> auto-deploy directory)
>
> As for this:
>
> On 4/17/23 19:18, Kevin Huntly wrote:
> > Is there a way to get Eclipse to stop complaining about missing
> > "javax.servlet.*" dependencies? It's complaining on every JSP I
> > have...
> Every JSP you have is broken, and Eclipse is telling you that. You have
> to basically globally search-and-replace "javax.servlet" with
> jakarta.servlet" in your whole application.
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Kevin,

On 4/17/23 17:56, Kevin Huntly wrote:
> 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:
> javax.servlet.jsp.tagext.TagLibraryValidator


You are trying to deploy a Java EE application onto a Jakarta EE server.

You have a few options:

1. Re-write your application. (Best long-term strategy)
2. Run the Tomcat Migration Tool on your application (WAR/dir) and 
deploy that on to Tomcat 10.1 or later
3. Put your application WAR/dir into Tomcat's "legacyAppBase" directory 
for your <Host> (defaults to "webapps-javaee" next to the "webapps" 
auto-deploy directory)

As for this:

On 4/17/23 19:18, Kevin Huntly wrote:
> Is there a way to get Eclipse to stop complaining about missing 
> "javax.servlet.*" dependencies? It's complaining on every JSP I
> have...
Every JSP you have is broken, and Eclipse is telling you that. You have 
to basically globally search-and-replace "javax.servlet" with 
jakarta.servlet" in your whole application.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:34:

> 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 'eSolutions'
> 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for
> servlet [eSolutions] in context with path [/esolutions] threw exception
> [Handler processing failed: java.lang.NoClassDefFoundError:
> jakarta/servlet/jsp/jstl/core/Config] with root cause
>         java.lang.ClassNotFoundException:
> jakarta.servlet.jsp.jstl.core.Config
>
> 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for
> servlet [jsp] threw exception
>         org.apache.jasper.JasperException:
> /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The absolute
> uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> web.xml or the jar files deployed with this application
>
> I removed the apache taglibs dependency, clearly that was a mistake.
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:19:
> >
> > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > >
> > > <taglibs.version>1.2.5</taglibs.version>
> > >
> > > <jstl.version>3.0.0</jstl.version>
> > >
> > > <jsp-api.version>3.1.1</jsp-api.version>
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> wrote:
> > >
> > > > 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 here please, the
> > > > information you provided is lacking those crucial detail.
> > > >
> > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > 00:12:
> > > >
> > > > > Thank you for that... I have the right (I think) dependencies in my
> > > pom:
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>org.apache.taglibs</groupId>
> > > > >
> > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > >
> > > > > <version>${taglibs.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > >
> > > > > <version>${jstl.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > >
> > > > > <version>${jsp-api.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > >
> > > > > <version>${jakarta.servlet.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>provided</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > >
> > > > > I just want to use the jstl tag libraries =(
> > > > > ________________________________________________
> > > > >
> > > > > Kevin Huntly
> > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > G++ e(+) h--- r+++ y+++*
> > > > > ------END GEEK CODE BLOCK------
> > > > >
> > > > >
> > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
> > > wrote:
> > > > >
> > > > > > Please read
> > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > and while you are there, read the whole guide ;-).
> > > > > >
> > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > Servlet.service()
> > > > > > for
> > > > > > > servlet [jsp] threw exception
> > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > >                 at
> > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > Method)
> > > > > > >                 at
> > > > > > >
> > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > >
> > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > > > > > "TagLibraryValidator" I can find it in my app under
> WEB-INF/lib,
> > so
> > > > I'm
> > > > > > not
> > > > > > > sure what's going on
> > > > > > > ________________________________________________
> > > > > > >
> > > > > > > Kevin Huntly
> > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > ------END GEEK CODE BLOCK------
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by "Terence M. Bandoian" <te...@tmbsw.com>.
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 <kr...@gmail.com> wrote:
>
>> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:52:
>>
>>> 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]) Unable to find taglib [c] for URI: [jakarta.tags.core]
>>>
>>> After updating the taglib imports on my jsp files
>>> ________________________________________________
>>>
>>> Kevin Huntly
>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>> G++ e(+) h--- r+++ y+++*
>>> ------END GEEK CODE BLOCK------
>>>
>>>
>>> On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:
>>>
>>>> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
>> 00:34:
>>>>> 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 'eSolutions'
>>>>> 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke
>> Servlet.service()
>>>> for
>>>>> servlet [eSolutions] in context with path [/esolutions] threw
>> exception
>>>>> [Handler processing failed: java.lang.NoClassDefFoundError:
>>>>> jakarta/servlet/jsp/jstl/core/Config] with root cause
>>>>>          java.lang.ClassNotFoundException:
>>>>> jakarta.servlet.jsp.jstl.core.Config
>>>>>
>>>>> 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke
>> Servlet.service()
>>>> for
>>>>> servlet [jsp] threw exception
>>>>>          org.apache.jasper.JasperException:
>>>>> /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
>>>> absolute
>>>>> uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in
>> either
>>>>> web.xml or the jar files deployed with this application
>>>>>
>>>>> I removed the apache taglibs dependency, clearly that was a mistake.
>>>>> ________________________________________________
>>>>>
>>>>> Kevin Huntly
>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>> G++ e(+) h--- r+++ y+++*
>>>>> ------END GEEK CODE BLOCK------
>>>>>
>>>>>
>>>>> On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com>
>>> wrote:
>>>>>> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
>>>> 00:19:
>>>>>>> <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
>>>>>>>
>>>>>>> <taglibs.version>1.2.5</taglibs.version>
>>>>>>>
>>>>>>> <jstl.version>3.0.0</jstl.version>
>>>>>>>
>>>>>>> <jsp-api.version>3.1.1</jsp-api.version>
>>>>>>> ________________________________________________
>>>>>>>
>>>>>>> Kevin Huntly
>>>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>>>> G++ e(+) h--- r+++ y+++*
>>>>>>> ------END GEEK CODE BLOCK------
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
>>>>> wrote:
>>>>>>>> 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 here please,
>>> the
>>>>>>>> information you provided is lacking those crucial detail.
>>>>>>>>
>>>>>>>> Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr.
>> 2023,
>>>>>> 00:12:
>>>>>>>>> Thank you for that... I have the right (I think) dependencies
>>> in
>>>> my
>>>>>>> pom:
>>>>>>>>> <dependency>
>>>>>>>>>
>>>>>>>>> <groupId>org.apache.taglibs</groupId>
>>>>>>>>>
>>>>>>>>> <artifactId>taglibs-standard-impl</artifactId>
>>>>>>>>>
>>>>>>>>> <version>${taglibs.version}</version>
>>>>>>>>>
>>>>>>>>> <type>jar</type>
>>>>>>>>>
>>>>>>>>> <scope>compile</scope>
>>>>>>>>>
>>>>>>>>> </dependency>
>>>>>>>>>
>>>>>>>>> <dependency>
>>>>>>>>>
>>>>>>>>> <groupId>jakarta.servlet.jsp.jstl</groupId>
>>>>>>>>>
>>>>>>>>> <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
>>>>>>>>>
>>>>>>>>> <version>${jstl.version}</version>
>>>>>>>>>
>>>>>>>>> <type>jar</type>
>>>>>>>>>
>>>>>>>>> <scope>compile</scope>
>>>>>>>>>
>>>>>>>>> </dependency>
>>>>>>>>>
>>>>>>>>> <dependency>
>>>>>>>>>
>>>>>>>>> <groupId>jakarta.servlet.jsp</groupId>
>>>>>>>>>
>>>>>>>>> <artifactId>jakarta.servlet.jsp-api</artifactId>
>>>>>>>>>
>>>>>>>>> <version>${jsp-api.version}</version>
>>>>>>>>>
>>>>>>>>> <type>jar</type>
>>>>>>>>>
>>>>>>>>> <scope>compile</scope>
>>>>>>>>>
>>>>>>>>> </dependency>
>>>>>>>>>
>>>>>>>>> <dependency>
>>>>>>>>>
>>>>>>>>> <groupId>jakarta.servlet</groupId>
>>>>>>>>>
>>>>>>>>> <artifactId>jakarta.servlet-api</artifactId>
>>>>>>>>>
>>>>>>>>> <version>${jakarta.servlet.version}</version>
>>>>>>>>>
>>>>>>>>> <type>jar</type>
>>>>>>>>>
>>>>>>>>> <scope>provided</scope>
>>>>>>>>>
>>>>>>>>> </dependency>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I just want to use the jstl tag libraries =(
>>>>>>>>> ________________________________________________
>>>>>>>>>
>>>>>>>>> Kevin Huntly
>>>>>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>>>>>> G++ e(+) h--- r+++ y+++*
>>>>>>>>> ------END GEEK CODE BLOCK------
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <
>>> krah.tm@gmail.com>
>>>>>>> wrote:
>>>>>>>>>> Please read
>>>>>>>> https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
>>>>>>>>>> and while you are there, read the whole guide ;-).
>>>>>>>>>>
>>>>>>>>>> Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
>>>>>>>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke
>>>>>>>> Servlet.service()
>>>>>>>>>> for
>>>>>>>>>>> servlet [jsp] threw exception
>>>>>>>>>>>          java.lang.ClassNotFoundException:
>>>>>>>>>>> javax.servlet.jsp.tagext.TagLibraryValidator
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>>>>>>>>>>>                  at
>>>>>>>> java.base/java.lang.ClassLoader.defineClass1(Native
>>>>>>>>>>> Method)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
>>>>>>>>>>>                  at
>>>>>>>>>>>
>>>>>>>>>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>>>>>>>>>>> it's running on AlmaLinux and tomcat 10.1.7. If I do a
>> grep
>>>> for
>>>>>>>>>>> "TagLibraryValidator" I can find it in my app under
>>>>> WEB-INF/lib,
>>>>>> so
>>>>>>>> I'm
>>>>>>>>>> not
>>>>>>>>>>> sure what's going on
>>>>>>>>>>> ________________________________________________
>>>>>>>>>>>
>>>>>>>>>>> Kevin Huntly
>>>>>>>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>>>>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>>>>>>>> G++ e(+) h--- r+++ y+++*
>>>>>>>>>>> ------END GEEK CODE BLOCK------
>>>>>>>>>>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
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: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 7:13 PM Kevin Huntly <km...@gmail.com> 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 =(
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 7:03 PM Torsten Krah <kr...@gmail.com> wrote:
>
>> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:52:
>>
>> > 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]) Unable to find taglib [c] for URI: [jakarta.tags.core]
>> >
>> > After updating the taglib imports on my jsp files
>> > ________________________________________________
>> >
>> > Kevin Huntly
>> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
>> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>> > G++ e(+) h--- r+++ y+++*
>> > ------END GEEK CODE BLOCK------
>> >
>> >
>> > On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:
>> >
>> > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
>> 00:34:
>> > >
>> > > > 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 'eSolutions'
>> > > > 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
>> > > > org.apache.catalina.core.StandardWrapperValve.invoke
>> Servlet.service()
>> > > for
>> > > > servlet [eSolutions] in context with path [/esolutions] threw
>> exception
>> > > > [Handler processing failed: java.lang.NoClassDefFoundError:
>> > > > jakarta/servlet/jsp/jstl/core/Config] with root cause
>> > > >         java.lang.ClassNotFoundException:
>> > > > jakarta.servlet.jsp.jstl.core.Config
>> > > >
>> > > > 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
>> > > > org.apache.catalina.core.ApplicationDispatcher.invoke
>> Servlet.service()
>> > > for
>> > > > servlet [jsp] threw exception
>> > > >         org.apache.jasper.JasperException:
>> > > > /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
>> > > absolute
>> > > > uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in
>> either
>> > > > web.xml or the jar files deployed with this application
>> > > >
>> > > > I removed the apache taglibs dependency, clearly that was a mistake.
>> > > > ________________________________________________
>> > > >
>> > > > Kevin Huntly
>> > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
>> > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>> > > > G++ e(+) h--- r+++ y+++*
>> > > > ------END GEEK CODE BLOCK------
>> > > >
>> > > >
>> > > > On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com>
>> > wrote:
>> > > >
>> > > > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
>> > > 00:19:
>> > > > >
>> > > > > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
>> > > > > >
>> > > > > > <taglibs.version>1.2.5</taglibs.version>
>> > > > > >
>> > > > > > <jstl.version>3.0.0</jstl.version>
>> > > > > >
>> > > > > > <jsp-api.version>3.1.1</jsp-api.version>
>> > > > > > ________________________________________________
>> > > > > >
>> > > > > > Kevin Huntly
>> > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
>> > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>> > > > > > G++ e(+) h--- r+++ y+++*
>> > > > > > ------END GEEK CODE BLOCK------
>> > > > > >
>> > > > > >
>> > > > > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <krah.tm@gmail.com
>> >
>> > > > wrote:
>> > > > > >
>> > > > > > > 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 here please,
>> > the
>> > > > > > > information you provided is lacking those crucial detail.
>> > > > > > >
>> > > > > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr.
>> 2023,
>> > > > > 00:12:
>> > > > > > >
>> > > > > > > > Thank you for that... I have the right (I think)
>> dependencies
>> > in
>> > > my
>> > > > > > pom:
>> > > > > > > >
>> > > > > > > > <dependency>
>> > > > > > > >
>> > > > > > > > <groupId>org.apache.taglibs</groupId>
>> > > > > > > >
>> > > > > > > > <artifactId>taglibs-standard-impl</artifactId>
>> > > > > > > >
>> > > > > > > > <version>${taglibs.version}</version>
>> > > > > > > >
>> > > > > > > > <type>jar</type>
>> > > > > > > >
>> > > > > > > > <scope>compile</scope>
>> > > > > > > >
>> > > > > > > > </dependency>
>> > > > > > > >
>> > > > > > > > <dependency>
>> > > > > > > >
>> > > > > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
>> > > > > > > >
>> > > > > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
>> > > > > > > >
>> > > > > > > > <version>${jstl.version}</version>
>> > > > > > > >
>> > > > > > > > <type>jar</type>
>> > > > > > > >
>> > > > > > > > <scope>compile</scope>
>> > > > > > > >
>> > > > > > > > </dependency>
>> > > > > > > >
>> > > > > > > > <dependency>
>> > > > > > > >
>> > > > > > > > <groupId>jakarta.servlet.jsp</groupId>
>> > > > > > > >
>> > > > > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
>> > > > > > > >
>> > > > > > > > <version>${jsp-api.version}</version>
>> > > > > > > >
>> > > > > > > > <type>jar</type>
>> > > > > > > >
>> > > > > > > > <scope>compile</scope>
>> > > > > > > >
>> > > > > > > > </dependency>
>> > > > > > > >
>> > > > > > > > <dependency>
>> > > > > > > >
>> > > > > > > > <groupId>jakarta.servlet</groupId>
>> > > > > > > >
>> > > > > > > > <artifactId>jakarta.servlet-api</artifactId>
>> > > > > > > >
>> > > > > > > > <version>${jakarta.servlet.version}</version>
>> > > > > > > >
>> > > > > > > > <type>jar</type>
>> > > > > > > >
>> > > > > > > > <scope>provided</scope>
>> > > > > > > >
>> > > > > > > > </dependency>
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > I just want to use the jstl tag libraries =(
>> > > > > > > > ________________________________________________
>> > > > > > > >
>> > > > > > > > Kevin Huntly
>> > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
>> > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>> > > > > > > > G++ e(+) h--- r+++ y+++*
>> > > > > > > > ------END GEEK CODE BLOCK------
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <
>> > krah.tm@gmail.com>
>> > > > > > wrote:
>> > > > > > > >
>> > > > > > > > > Please read
>> > > > > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
>> > > > > > > > > and while you are there, read the whole guide ;-).
>> > > > > > > > >
>> > > > > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
>> > > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
>> > > > > > > Servlet.service()
>> > > > > > > > > for
>> > > > > > > > > > servlet [jsp] threw exception
>> > > > > > > > > >         java.lang.ClassNotFoundException:
>> > > > > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>> > > > > > > > > >                 at
>> > > > > > > java.base/java.lang.ClassLoader.defineClass1(Native
>> > > > > > > > > > Method)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
>> > > > > > > > > >                 at
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>> > > > > > > > > >
>> > > > > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a
>> grep
>> > > for
>> > > > > > > > > > "TagLibraryValidator" I can find it in my app under
>> > > > WEB-INF/lib,
>> > > > > so
>> > > > > > > I'm
>> > > > > > > > > not
>> > > > > > > > > > sure what's going on
>> > > > > > > > > > ________________________________________________
>> > > > > > > > > >
>> > > > > > > > > > Kevin Huntly
>> > > > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
>> > > > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>> > > > > > > > > > G++ e(+) h--- r+++ y+++*
>> > > > > > > > > > ------END GEEK CODE BLOCK------
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
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: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 7:03 PM Torsten Krah <kr...@gmail.com> wrote:

> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:52:
>
> > 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]) Unable to find taglib [c] for URI: [jakarta.tags.core]
> >
> > After updating the taglib imports on my jsp files
> > ________________________________________________
> >
> > Kevin Huntly
> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > G++ e(+) h--- r+++ y+++*
> > ------END GEEK CODE BLOCK------
> >
> >
> > On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:
> >
> > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> 00:34:
> > >
> > > > 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 'eSolutions'
> > > > 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> > > > org.apache.catalina.core.StandardWrapperValve.invoke
> Servlet.service()
> > > for
> > > > servlet [eSolutions] in context with path [/esolutions] threw
> exception
> > > > [Handler processing failed: java.lang.NoClassDefFoundError:
> > > > jakarta/servlet/jsp/jstl/core/Config] with root cause
> > > >         java.lang.ClassNotFoundException:
> > > > jakarta.servlet.jsp.jstl.core.Config
> > > >
> > > > 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> Servlet.service()
> > > for
> > > > servlet [jsp] threw exception
> > > >         org.apache.jasper.JasperException:
> > > > /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
> > > absolute
> > > > uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in
> either
> > > > web.xml or the jar files deployed with this application
> > > >
> > > > I removed the apache taglibs dependency, clearly that was a mistake.
> > > > ________________________________________________
> > > >
> > > > Kevin Huntly
> > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > G++ e(+) h--- r+++ y+++*
> > > > ------END GEEK CODE BLOCK------
> > > >
> > > >
> > > > On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com>
> > wrote:
> > > >
> > > > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > > 00:19:
> > > > >
> > > > > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > > > > >
> > > > > > <taglibs.version>1.2.5</taglibs.version>
> > > > > >
> > > > > > <jstl.version>3.0.0</jstl.version>
> > > > > >
> > > > > > <jsp-api.version>3.1.1</jsp-api.version>
> > > > > > ________________________________________________
> > > > > >
> > > > > > Kevin Huntly
> > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > ------END GEEK CODE BLOCK------
> > > > > >
> > > > > >
> > > > > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> > > > wrote:
> > > > > >
> > > > > > > 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 here please,
> > the
> > > > > > > information you provided is lacking those crucial detail.
> > > > > > >
> > > > > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr.
> 2023,
> > > > > 00:12:
> > > > > > >
> > > > > > > > Thank you for that... I have the right (I think) dependencies
> > in
> > > my
> > > > > > pom:
> > > > > > > >
> > > > > > > > <dependency>
> > > > > > > >
> > > > > > > > <groupId>org.apache.taglibs</groupId>
> > > > > > > >
> > > > > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > > > > >
> > > > > > > > <version>${taglibs.version}</version>
> > > > > > > >
> > > > > > > > <type>jar</type>
> > > > > > > >
> > > > > > > > <scope>compile</scope>
> > > > > > > >
> > > > > > > > </dependency>
> > > > > > > >
> > > > > > > > <dependency>
> > > > > > > >
> > > > > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > > > > >
> > > > > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > > > > >
> > > > > > > > <version>${jstl.version}</version>
> > > > > > > >
> > > > > > > > <type>jar</type>
> > > > > > > >
> > > > > > > > <scope>compile</scope>
> > > > > > > >
> > > > > > > > </dependency>
> > > > > > > >
> > > > > > > > <dependency>
> > > > > > > >
> > > > > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > > > > >
> > > > > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > > > > >
> > > > > > > > <version>${jsp-api.version}</version>
> > > > > > > >
> > > > > > > > <type>jar</type>
> > > > > > > >
> > > > > > > > <scope>compile</scope>
> > > > > > > >
> > > > > > > > </dependency>
> > > > > > > >
> > > > > > > > <dependency>
> > > > > > > >
> > > > > > > > <groupId>jakarta.servlet</groupId>
> > > > > > > >
> > > > > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > > > > >
> > > > > > > > <version>${jakarta.servlet.version}</version>
> > > > > > > >
> > > > > > > > <type>jar</type>
> > > > > > > >
> > > > > > > > <scope>provided</scope>
> > > > > > > >
> > > > > > > > </dependency>
> > > > > > > >
> > > > > > > >
> > > > > > > > I just want to use the jstl tag libraries =(
> > > > > > > > ________________________________________________
> > > > > > > >
> > > > > > > > Kevin Huntly
> > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > > ------END GEEK CODE BLOCK------
> > > > > > > >
> > > > > > > >
> > > > > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <
> > krah.tm@gmail.com>
> > > > > > wrote:
> > > > > > > >
> > > > > > > > > Please read
> > > > > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > > > > and while you are there, read the whole guide ;-).
> > > > > > > > >
> > > > > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > > > > Servlet.service()
> > > > > > > > > for
> > > > > > > > > > servlet [jsp] threw exception
> > > > > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > > >                 at
> > > > > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > > > > Method)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > > > > >                 at
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > > >
> > > > > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a
> grep
> > > for
> > > > > > > > > > "TagLibraryValidator" I can find it in my app under
> > > > WEB-INF/lib,
> > > > > so
> > > > > > > I'm
> > > > > > > > > not
> > > > > > > > > > sure what's going on
> > > > > > > > > > ________________________________________________
> > > > > > > > > >
> > > > > > > > > > Kevin Huntly
> > > > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > > > > ------END GEEK CODE BLOCK------
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:52:

> 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]) Unable to find taglib [c] for URI: [jakarta.tags.core]
>
> After updating the taglib imports on my jsp files
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:34:
> >
> > > 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 'eSolutions'
> > > 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> > > org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
> > for
> > > servlet [eSolutions] in context with path [/esolutions] threw exception
> > > [Handler processing failed: java.lang.NoClassDefFoundError:
> > > jakarta/servlet/jsp/jstl/core/Config] with root cause
> > >         java.lang.ClassNotFoundException:
> > > jakarta.servlet.jsp.jstl.core.Config
> > >
> > > 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> > > org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service()
> > for
> > > servlet [jsp] threw exception
> > >         org.apache.jasper.JasperException:
> > > /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
> > absolute
> > > uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> > > web.xml or the jar files deployed with this application
> > >
> > > I removed the apache taglibs dependency, clearly that was a mistake.
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com>
> wrote:
> > >
> > > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > 00:19:
> > > >
> > > > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > > > >
> > > > > <taglibs.version>1.2.5</taglibs.version>
> > > > >
> > > > > <jstl.version>3.0.0</jstl.version>
> > > > >
> > > > > <jsp-api.version>3.1.1</jsp-api.version>
> > > > > ________________________________________________
> > > > >
> > > > > Kevin Huntly
> > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > G++ e(+) h--- r+++ y+++*
> > > > > ------END GEEK CODE BLOCK------
> > > > >
> > > > >
> > > > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> > > wrote:
> > > > >
> > > > > > 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 here please,
> the
> > > > > > information you provided is lacking those crucial detail.
> > > > > >
> > > > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > > > 00:12:
> > > > > >
> > > > > > > Thank you for that... I have the right (I think) dependencies
> in
> > my
> > > > > pom:
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>org.apache.taglibs</groupId>
> > > > > > >
> > > > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > > > >
> > > > > > > <version>${taglibs.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > > > >
> > > > > > > <version>${jstl.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > > > >
> > > > > > > <version>${jsp-api.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > > > >
> > > > > > > <version>${jakarta.servlet.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>provided</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > >
> > > > > > > I just want to use the jstl tag libraries =(
> > > > > > > ________________________________________________
> > > > > > >
> > > > > > > Kevin Huntly
> > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > ------END GEEK CODE BLOCK------
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <
> krah.tm@gmail.com>
> > > > > wrote:
> > > > > > >
> > > > > > > > Please read
> > > > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > > > and while you are there, read the whole guide ;-).
> > > > > > > >
> > > > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > > > Servlet.service()
> > > > > > > > for
> > > > > > > > > servlet [jsp] threw exception
> > > > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > >                 at
> > > > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > > > Method)
> > > > > > > > >                 at
> > > > > > > > >
> > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > >
> > > > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep
> > for
> > > > > > > > > "TagLibraryValidator" I can find it in my app under
> > > WEB-INF/lib,
> > > > so
> > > > > > I'm
> > > > > > > > not
> > > > > > > > > sure what's going on
> > > > > > > > > ________________________________________________
> > > > > > > > >
> > > > > > > > > Kevin Huntly
> > > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > > > ------END GEEK CODE BLOCK------
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
https://stackoverflow.com/questions/74585710/migration-to-jakarta-ee-unable-to-find-taglib-c-for-uri-jakarta-tags-core

Does that help?


Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:52:

> 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]) Unable to find taglib [c] for URI: [jakarta.tags.core]
>
> After updating the taglib imports on my jsp files
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:34:
> >
> > > 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 'eSolutions'
> > > 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> > > org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
> > for
> > > servlet [eSolutions] in context with path [/esolutions] threw exception
> > > [Handler processing failed: java.lang.NoClassDefFoundError:
> > > jakarta/servlet/jsp/jstl/core/Config] with root cause
> > >         java.lang.ClassNotFoundException:
> > > jakarta.servlet.jsp.jstl.core.Config
> > >
> > > 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> > > org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service()
> > for
> > > servlet [jsp] threw exception
> > >         org.apache.jasper.JasperException:
> > > /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
> > absolute
> > > uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> > > web.xml or the jar files deployed with this application
> > >
> > > I removed the apache taglibs dependency, clearly that was a mistake.
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com>
> wrote:
> > >
> > > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > 00:19:
> > > >
> > > > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > > > >
> > > > > <taglibs.version>1.2.5</taglibs.version>
> > > > >
> > > > > <jstl.version>3.0.0</jstl.version>
> > > > >
> > > > > <jsp-api.version>3.1.1</jsp-api.version>
> > > > > ________________________________________________
> > > > >
> > > > > Kevin Huntly
> > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > G++ e(+) h--- r+++ y+++*
> > > > > ------END GEEK CODE BLOCK------
> > > > >
> > > > >
> > > > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> > > wrote:
> > > > >
> > > > > > 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 here please,
> the
> > > > > > information you provided is lacking those crucial detail.
> > > > > >
> > > > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > > > 00:12:
> > > > > >
> > > > > > > Thank you for that... I have the right (I think) dependencies
> in
> > my
> > > > > pom:
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>org.apache.taglibs</groupId>
> > > > > > >
> > > > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > > > >
> > > > > > > <version>${taglibs.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > > > >
> > > > > > > <version>${jstl.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > > > >
> > > > > > > <version>${jsp-api.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>compile</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > > <dependency>
> > > > > > >
> > > > > > > <groupId>jakarta.servlet</groupId>
> > > > > > >
> > > > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > > > >
> > > > > > > <version>${jakarta.servlet.version}</version>
> > > > > > >
> > > > > > > <type>jar</type>
> > > > > > >
> > > > > > > <scope>provided</scope>
> > > > > > >
> > > > > > > </dependency>
> > > > > > >
> > > > > > >
> > > > > > > I just want to use the jstl tag libraries =(
> > > > > > > ________________________________________________
> > > > > > >
> > > > > > > Kevin Huntly
> > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > ------END GEEK CODE BLOCK------
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <
> krah.tm@gmail.com>
> > > > > wrote:
> > > > > > >
> > > > > > > > Please read
> > > > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > > > and while you are there, read the whole guide ;-).
> > > > > > > >
> > > > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > > > Servlet.service()
> > > > > > > > for
> > > > > > > > > servlet [jsp] threw exception
> > > > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > >                 at
> > > > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > > > Method)
> > > > > > > > >                 at
> > > > > > > > >
> > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > > > >                 at
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > > >
> > > > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep
> > for
> > > > > > > > > "TagLibraryValidator" I can find it in my app under
> > > WEB-INF/lib,
> > > > so
> > > > > > I'm
> > > > > > > > not
> > > > > > > > > sure what's going on
> > > > > > > > > ________________________________________________
> > > > > > > > >
> > > > > > > > > Kevin Huntly
> > > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > > > ------END GEEK CODE BLOCK------
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
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]) Unable to find taglib [c] for URI: [jakarta.tags.core]

After updating the taglib imports on my jsp files
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 6:47 PM Torsten Krah <kr...@gmail.com> wrote:

> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:34:
>
> > 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 'eSolutions'
> > 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> > org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
> for
> > servlet [eSolutions] in context with path [/esolutions] threw exception
> > [Handler processing failed: java.lang.NoClassDefFoundError:
> > jakarta/servlet/jsp/jstl/core/Config] with root cause
> >         java.lang.ClassNotFoundException:
> > jakarta.servlet.jsp.jstl.core.Config
> >
> > 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> > org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service()
> for
> > servlet [jsp] threw exception
> >         org.apache.jasper.JasperException:
> > /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The
> absolute
> > uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> > web.xml or the jar files deployed with this application
> >
> > I removed the apache taglibs dependency, clearly that was a mistake.
> > ________________________________________________
> >
> > Kevin Huntly
> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > G++ e(+) h--- r+++ y+++*
> > ------END GEEK CODE BLOCK------
> >
> >
> > On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com> wrote:
> >
> > > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> 00:19:
> > >
> > > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > > >
> > > > <taglibs.version>1.2.5</taglibs.version>
> > > >
> > > > <jstl.version>3.0.0</jstl.version>
> > > >
> > > > <jsp-api.version>3.1.1</jsp-api.version>
> > > > ________________________________________________
> > > >
> > > > Kevin Huntly
> > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > G++ e(+) h--- r+++ y+++*
> > > > ------END GEEK CODE BLOCK------
> > > >
> > > >
> > > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> > wrote:
> > > >
> > > > > 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 here please, the
> > > > > information you provided is lacking those crucial detail.
> > > > >
> > > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > > 00:12:
> > > > >
> > > > > > Thank you for that... I have the right (I think) dependencies in
> my
> > > > pom:
> > > > > >
> > > > > > <dependency>
> > > > > >
> > > > > > <groupId>org.apache.taglibs</groupId>
> > > > > >
> > > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > > >
> > > > > > <version>${taglibs.version}</version>
> > > > > >
> > > > > > <type>jar</type>
> > > > > >
> > > > > > <scope>compile</scope>
> > > > > >
> > > > > > </dependency>
> > > > > >
> > > > > > <dependency>
> > > > > >
> > > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > > >
> > > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > > >
> > > > > > <version>${jstl.version}</version>
> > > > > >
> > > > > > <type>jar</type>
> > > > > >
> > > > > > <scope>compile</scope>
> > > > > >
> > > > > > </dependency>
> > > > > >
> > > > > > <dependency>
> > > > > >
> > > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > > >
> > > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > > >
> > > > > > <version>${jsp-api.version}</version>
> > > > > >
> > > > > > <type>jar</type>
> > > > > >
> > > > > > <scope>compile</scope>
> > > > > >
> > > > > > </dependency>
> > > > > >
> > > > > > <dependency>
> > > > > >
> > > > > > <groupId>jakarta.servlet</groupId>
> > > > > >
> > > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > > >
> > > > > > <version>${jakarta.servlet.version}</version>
> > > > > >
> > > > > > <type>jar</type>
> > > > > >
> > > > > > <scope>provided</scope>
> > > > > >
> > > > > > </dependency>
> > > > > >
> > > > > >
> > > > > > I just want to use the jstl tag libraries =(
> > > > > > ________________________________________________
> > > > > >
> > > > > > Kevin Huntly
> > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > ------END GEEK CODE BLOCK------
> > > > > >
> > > > > >
> > > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
> > > > wrote:
> > > > > >
> > > > > > > Please read
> > > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > > and while you are there, read the whole guide ;-).
> > > > > > >
> > > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > > Servlet.service()
> > > > > > > for
> > > > > > > > servlet [jsp] threw exception
> > > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > >                 at
> > > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > > Method)
> > > > > > > >                 at
> > > > > > > >
> > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > > >                 at
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > > >
> > > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep
> for
> > > > > > > > "TagLibraryValidator" I can find it in my app under
> > WEB-INF/lib,
> > > so
> > > > > I'm
> > > > > > > not
> > > > > > > > sure what's going on
> > > > > > > > ________________________________________________
> > > > > > > >
> > > > > > > > Kevin Huntly
> > > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > > ------END GEEK CODE BLOCK------
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:34:

> 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 'eSolutions'
> 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for
> servlet [eSolutions] in context with path [/esolutions] threw exception
> [Handler processing failed: java.lang.NoClassDefFoundError:
> jakarta/servlet/jsp/jstl/core/Config] with root cause
>         java.lang.ClassNotFoundException:
> jakarta.servlet.jsp.jstl.core.Config
>
> 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for
> servlet [jsp] threw exception
>         org.apache.jasper.JasperException:
> /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The absolute
> uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> web.xml or the jar files deployed with this application
>
> I removed the apache taglibs dependency, clearly that was a mistake.
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:19:
> >
> > > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> > >
> > > <taglibs.version>1.2.5</taglibs.version>
> > >
> > > <jstl.version>3.0.0</jstl.version>
> > >
> > > <jsp-api.version>3.1.1</jsp-api.version>
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com>
> wrote:
> > >
> > > > 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 here please, the
> > > > information you provided is lacking those crucial detail.
> > > >
> > > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> > 00:12:
> > > >
> > > > > Thank you for that... I have the right (I think) dependencies in my
> > > pom:
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>org.apache.taglibs</groupId>
> > > > >
> > > > > <artifactId>taglibs-standard-impl</artifactId>
> > > > >
> > > > > <version>${taglibs.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > > >
> > > > > <version>${jstl.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet.jsp</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > > >
> > > > > <version>${jsp-api.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>compile</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > > <dependency>
> > > > >
> > > > > <groupId>jakarta.servlet</groupId>
> > > > >
> > > > > <artifactId>jakarta.servlet-api</artifactId>
> > > > >
> > > > > <version>${jakarta.servlet.version}</version>
> > > > >
> > > > > <type>jar</type>
> > > > >
> > > > > <scope>provided</scope>
> > > > >
> > > > > </dependency>
> > > > >
> > > > >
> > > > > I just want to use the jstl tag libraries =(
> > > > > ________________________________________________
> > > > >
> > > > > Kevin Huntly
> > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > G++ e(+) h--- r+++ y+++*
> > > > > ------END GEEK CODE BLOCK------
> > > > >
> > > > >
> > > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
> > > wrote:
> > > > >
> > > > > > Please read
> > > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > > and while you are there, read the whole guide ;-).
> > > > > >
> > > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > > Servlet.service()
> > > > > > for
> > > > > > > servlet [jsp] threw exception
> > > > > > >         java.lang.ClassNotFoundException:
> > > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > >                 at
> > > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > > Method)
> > > > > > >                 at
> > > > > > >
> > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > > >                 at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > > >
> > > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > > > > > "TagLibraryValidator" I can find it in my app under
> WEB-INF/lib,
> > so
> > > > I'm
> > > > > > not
> > > > > > > sure what's going on
> > > > > > > ________________________________________________
> > > > > > >
> > > > > > > Kevin Huntly
> > > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > > ------END GEEK CODE BLOCK------
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Mark Eggers <it...@yahoo.com.INVALID>.
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 detected on classpath
> 17-Apr-2023 18:32:04.904 INFO [main]
> org.apache.catalina.core.ApplicationContext.log Initializing Spring
> DispatcherServlet 'eSolutions'
> 17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for
> servlet [eSolutions] in context with path [/esolutions] threw exception
> [Handler processing failed: java.lang.NoClassDefFoundError:
> jakarta/servlet/jsp/jstl/core/Config] with root cause
>          java.lang.ClassNotFoundException:
> jakarta.servlet.jsp.jstl.core.Config
> 
> 17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
> org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for
> servlet [jsp] threw exception
>          org.apache.jasper.JasperException:
> /theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The absolute
> uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
> web.xml or the jar files deployed with this application
> 
> I removed the apache taglibs dependency, clearly that was a mistake.
> ________________________________________________
> 
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
> 
> 
> On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com> wrote:
> 
>> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:19:
>>
>>> <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
>>>
>>> <taglibs.version>1.2.5</taglibs.version>
>>>
>>> <jstl.version>3.0.0</jstl.version>
>>>
>>> <jsp-api.version>3.1.1</jsp-api.version>
>>> ________________________________________________
>>>
>>> Kevin Huntly
>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>> G++ e(+) h--- r+++ y+++*
>>> ------END GEEK CODE BLOCK------
>>>
>>>
>>> On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com> wrote:
>>>
>>>> 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 here please, the
>>>> information you provided is lacking those crucial detail.
>>>>
>>>> Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
>> 00:12:
>>>>
>>>>> Thank you for that... I have the right (I think) dependencies in my
>>> pom:
>>>>>
>>>>> <dependency>
>>>>>
>>>>> <groupId>org.apache.taglibs</groupId>
>>>>>
>>>>> <artifactId>taglibs-standard-impl</artifactId>
>>>>>
>>>>> <version>${taglibs.version}</version>
>>>>>
>>>>> <type>jar</type>
>>>>>
>>>>> <scope>compile</scope>
>>>>>
>>>>> </dependency>
>>>>>
>>>>> <dependency>
>>>>>
>>>>> <groupId>jakarta.servlet.jsp.jstl</groupId>
>>>>>
>>>>> <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
>>>>>
>>>>> <version>${jstl.version}</version>
>>>>>
>>>>> <type>jar</type>
>>>>>
>>>>> <scope>compile</scope>
>>>>>
>>>>> </dependency>
>>>>>
>>>>> <dependency>
>>>>>
>>>>> <groupId>jakarta.servlet.jsp</groupId>
>>>>>
>>>>> <artifactId>jakarta.servlet.jsp-api</artifactId>
>>>>>
>>>>> <version>${jsp-api.version}</version>
>>>>>
>>>>> <type>jar</type>
>>>>>
>>>>> <scope>compile</scope>
>>>>>
>>>>> </dependency>
>>>>>
>>>>> <dependency>
>>>>>
>>>>> <groupId>jakarta.servlet</groupId>
>>>>>
>>>>> <artifactId>jakarta.servlet-api</artifactId>
>>>>>
>>>>> <version>${jakarta.servlet.version}</version>
>>>>>
>>>>> <type>jar</type>
>>>>>
>>>>> <scope>provided</scope>
>>>>>
>>>>> </dependency>
>>>>>
>>>>>
>>>>> I just want to use the jstl tag libraries =(
>>>>> ________________________________________________
>>>>>
>>>>> Kevin Huntly
>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>> G++ e(+) h--- r+++ y+++*
>>>>> ------END GEEK CODE BLOCK------
>>>>>
>>>>>
>>>>> On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
>>> wrote:
>>>>>
>>>>>> Please read
>>>> https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
>>>>>> and while you are there, read the whole guide ;-).
>>>>>>
>>>>>> Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
>>>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke
>>>> Servlet.service()
>>>>>> for
>>>>>>> servlet [jsp] threw exception
>>>>>>>          java.lang.ClassNotFoundException:
>>>>>>> javax.servlet.jsp.tagext.TagLibraryValidator
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>>>>>>>                  at
>>>> java.base/java.lang.ClassLoader.defineClass1(Native
>>>>>>> Method)
>>>>>>>                  at
>>>>>>>
>> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
>>>>>>>                  at
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>>>>>>>
>>>>>>> it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
>>>>>>> "TagLibraryValidator" I can find it in my app under WEB-INF/lib,
>> so
>>>> I'm
>>>>>> not
>>>>>>> sure what's going on
>>>>>>> ________________________________________________
>>>>>>>
>>>>>>> Kevin Huntly
>>>>>>> Email: kmhuntly@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-- V-- PS+ PE Y(+)
>>>>>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
>>>>>>> G++ e(+) h--- r+++ y+++*
>>>>>>> ------END GEEK CODE BLOCK------
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
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 'eSolutions'
17-Apr-2023 18:32:16.844 SEVERE [catalina-exec-1]
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for
servlet [eSolutions] in context with path [/esolutions] threw exception
[Handler processing failed: java.lang.NoClassDefFoundError:
jakarta/servlet/jsp/jstl/core/Config] with root cause
        java.lang.ClassNotFoundException:
jakarta.servlet.jsp.jstl.core.Config

17-Apr-2023 18:32:16.986 SEVERE [catalina-exec-1]
org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for
servlet [jsp] threw exception
        org.apache.jasper.JasperException:
/theme/cws/html/en/jsp/errHandler.jsp (line: [1], column: [1]) The absolute
uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either
web.xml or the jar files deployed with this application

I removed the apache taglibs dependency, clearly that was a mistake.
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 6:26 PM Torsten Krah <kr...@gmail.com> wrote:

> 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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:19:
>
> > <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
> >
> > <taglibs.version>1.2.5</taglibs.version>
> >
> > <jstl.version>3.0.0</jstl.version>
> >
> > <jsp-api.version>3.1.1</jsp-api.version>
> > ________________________________________________
> >
> > Kevin Huntly
> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > G++ e(+) h--- r+++ y+++*
> > ------END GEEK CODE BLOCK------
> >
> >
> > On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com> wrote:
> >
> > > 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 here please, the
> > > information you provided is lacking those crucial detail.
> > >
> > > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023,
> 00:12:
> > >
> > > > Thank you for that... I have the right (I think) dependencies in my
> > pom:
> > > >
> > > > <dependency>
> > > >
> > > > <groupId>org.apache.taglibs</groupId>
> > > >
> > > > <artifactId>taglibs-standard-impl</artifactId>
> > > >
> > > > <version>${taglibs.version}</version>
> > > >
> > > > <type>jar</type>
> > > >
> > > > <scope>compile</scope>
> > > >
> > > > </dependency>
> > > >
> > > > <dependency>
> > > >
> > > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > > >
> > > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > > >
> > > > <version>${jstl.version}</version>
> > > >
> > > > <type>jar</type>
> > > >
> > > > <scope>compile</scope>
> > > >
> > > > </dependency>
> > > >
> > > > <dependency>
> > > >
> > > > <groupId>jakarta.servlet.jsp</groupId>
> > > >
> > > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > > >
> > > > <version>${jsp-api.version}</version>
> > > >
> > > > <type>jar</type>
> > > >
> > > > <scope>compile</scope>
> > > >
> > > > </dependency>
> > > >
> > > > <dependency>
> > > >
> > > > <groupId>jakarta.servlet</groupId>
> > > >
> > > > <artifactId>jakarta.servlet-api</artifactId>
> > > >
> > > > <version>${jakarta.servlet.version}</version>
> > > >
> > > > <type>jar</type>
> > > >
> > > > <scope>provided</scope>
> > > >
> > > > </dependency>
> > > >
> > > >
> > > > I just want to use the jstl tag libraries =(
> > > > ________________________________________________
> > > >
> > > > Kevin Huntly
> > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > G++ e(+) h--- r+++ y+++*
> > > > ------END GEEK CODE BLOCK------
> > > >
> > > >
> > > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
> > wrote:
> > > >
> > > > > Please read
> > > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > > and while you are there, read the whole guide ;-).
> > > > >
> > > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > > Servlet.service()
> > > > > for
> > > > > > servlet [jsp] threw exception
> > > > > >         java.lang.ClassNotFoundException:
> > > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > >                 at
> > > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > > Method)
> > > > > >                 at
> > > > > >
> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > > >                 at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > > >
> > > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > > > > "TagLibraryValidator" I can find it in my app under WEB-INF/lib,
> so
> > > I'm
> > > > > not
> > > > > > sure what's going on
> > > > > > ________________________________________________
> > > > > >
> > > > > > Kevin Huntly
> > > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > > G++ e(+) h--- r+++ y+++*
> > > > > > ------END GEEK CODE BLOCK------
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
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 <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:19:

> <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
>
> <taglibs.version>1.2.5</taglibs.version>
>
> <jstl.version>3.0.0</jstl.version>
>
> <jsp-api.version>3.1.1</jsp-api.version>
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > 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 here please, the
> > information you provided is lacking those crucial detail.
> >
> > Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:12:
> >
> > > Thank you for that... I have the right (I think) dependencies in my
> pom:
> > >
> > > <dependency>
> > >
> > > <groupId>org.apache.taglibs</groupId>
> > >
> > > <artifactId>taglibs-standard-impl</artifactId>
> > >
> > > <version>${taglibs.version}</version>
> > >
> > > <type>jar</type>
> > >
> > > <scope>compile</scope>
> > >
> > > </dependency>
> > >
> > > <dependency>
> > >
> > > <groupId>jakarta.servlet.jsp.jstl</groupId>
> > >
> > > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> > >
> > > <version>${jstl.version}</version>
> > >
> > > <type>jar</type>
> > >
> > > <scope>compile</scope>
> > >
> > > </dependency>
> > >
> > > <dependency>
> > >
> > > <groupId>jakarta.servlet.jsp</groupId>
> > >
> > > <artifactId>jakarta.servlet.jsp-api</artifactId>
> > >
> > > <version>${jsp-api.version}</version>
> > >
> > > <type>jar</type>
> > >
> > > <scope>compile</scope>
> > >
> > > </dependency>
> > >
> > > <dependency>
> > >
> > > <groupId>jakarta.servlet</groupId>
> > >
> > > <artifactId>jakarta.servlet-api</artifactId>
> > >
> > > <version>${jakarta.servlet.version}</version>
> > >
> > > <type>jar</type>
> > >
> > > <scope>provided</scope>
> > >
> > > </dependency>
> > >
> > >
> > > I just want to use the jstl tag libraries =(
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> > >
> > > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com>
> wrote:
> > >
> > > > Please read
> > https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > > and while you are there, read the whole guide ;-).
> > > >
> > > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> > Servlet.service()
> > > > for
> > > > > servlet [jsp] threw exception
> > > > >         java.lang.ClassNotFoundException:
> > > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > >                 at
> > java.base/java.lang.ClassLoader.defineClass1(Native
> > > > > Method)
> > > > >                 at
> > > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > > >                 at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > > >
> > > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > > > "TagLibraryValidator" I can find it in my app under WEB-INF/lib, so
> > I'm
> > > > not
> > > > > sure what's going on
> > > > > ________________________________________________
> > > > >
> > > > > Kevin Huntly
> > > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > > G++ e(+) h--- r+++ y+++*
> > > > > ------END GEEK CODE BLOCK------
> > > > >
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
<jakarta.servlet.version>6.0.0</jakarta.servlet.version>

<taglibs.version>1.2.5</taglibs.version>

<jstl.version>3.0.0</jstl.version>

<jsp-api.version>3.1.1</jsp-api.version>
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 6:17 PM Torsten Krah <kr...@gmail.com> wrote:

> 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 here please, the
> information you provided is lacking those crucial detail.
>
> Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:12:
>
> > Thank you for that... I have the right (I think) dependencies in my pom:
> >
> > <dependency>
> >
> > <groupId>org.apache.taglibs</groupId>
> >
> > <artifactId>taglibs-standard-impl</artifactId>
> >
> > <version>${taglibs.version}</version>
> >
> > <type>jar</type>
> >
> > <scope>compile</scope>
> >
> > </dependency>
> >
> > <dependency>
> >
> > <groupId>jakarta.servlet.jsp.jstl</groupId>
> >
> > <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
> >
> > <version>${jstl.version}</version>
> >
> > <type>jar</type>
> >
> > <scope>compile</scope>
> >
> > </dependency>
> >
> > <dependency>
> >
> > <groupId>jakarta.servlet.jsp</groupId>
> >
> > <artifactId>jakarta.servlet.jsp-api</artifactId>
> >
> > <version>${jsp-api.version}</version>
> >
> > <type>jar</type>
> >
> > <scope>compile</scope>
> >
> > </dependency>
> >
> > <dependency>
> >
> > <groupId>jakarta.servlet</groupId>
> >
> > <artifactId>jakarta.servlet-api</artifactId>
> >
> > <version>${jakarta.servlet.version}</version>
> >
> > <type>jar</type>
> >
> > <scope>provided</scope>
> >
> > </dependency>
> >
> >
> > I just want to use the jstl tag libraries =(
> > ________________________________________________
> >
> > Kevin Huntly
> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > G++ e(+) h--- r+++ y+++*
> > ------END GEEK CODE BLOCK------
> >
> >
> > On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com> wrote:
> >
> > > Please read
> https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > > and while you are there, read the whole guide ;-).
> > >
> > > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > > org.apache.catalina.core.ApplicationDispatcher.invoke
> Servlet.service()
> > > for
> > > > servlet [jsp] threw exception
> > > >         java.lang.ClassNotFoundException:
> > > > javax.servlet.jsp.tagext.TagLibraryValidator
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > >                 at
> java.base/java.lang.ClassLoader.defineClass1(Native
> > > > Method)
> > > >                 at
> > > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > > >                 at
> > > >
> > > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > > >                 at
> > > >
> > > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > > >
> > > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > > "TagLibraryValidator" I can find it in my app under WEB-INF/lib, so
> I'm
> > > not
> > > > sure what's going on
> > > > ________________________________________________
> > > >
> > > > Kevin Huntly
> > > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > > G++ e(+) h--- r+++ y+++*
> > > > ------END GEEK CODE BLOCK------
> > > >
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
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 here please, the
information you provided is lacking those crucial detail.

Kevin Huntly <km...@gmail.com> schrieb am Di., 18. Apr. 2023, 00:12:

> Thank you for that... I have the right (I think) dependencies in my pom:
>
> <dependency>
>
> <groupId>org.apache.taglibs</groupId>
>
> <artifactId>taglibs-standard-impl</artifactId>
>
> <version>${taglibs.version}</version>
>
> <type>jar</type>
>
> <scope>compile</scope>
>
> </dependency>
>
> <dependency>
>
> <groupId>jakarta.servlet.jsp.jstl</groupId>
>
> <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
>
> <version>${jstl.version}</version>
>
> <type>jar</type>
>
> <scope>compile</scope>
>
> </dependency>
>
> <dependency>
>
> <groupId>jakarta.servlet.jsp</groupId>
>
> <artifactId>jakarta.servlet.jsp-api</artifactId>
>
> <version>${jsp-api.version}</version>
>
> <type>jar</type>
>
> <scope>compile</scope>
>
> </dependency>
>
> <dependency>
>
> <groupId>jakarta.servlet</groupId>
>
> <artifactId>jakarta.servlet-api</artifactId>
>
> <version>${jakarta.servlet.version}</version>
>
> <type>jar</type>
>
> <scope>provided</scope>
>
> </dependency>
>
>
> I just want to use the jstl tag libraries =(
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>
>
> On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com> wrote:
>
> > Please read https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> > and while you are there, read the whole guide ;-).
> >
> > Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > > org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service()
> > for
> > > servlet [jsp] threw exception
> > >         java.lang.ClassNotFoundException:
> > > javax.servlet.jsp.tagext.TagLibraryValidator
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > >                 at java.base/java.lang.ClassLoader.defineClass1(Native
> > > Method)
> > >                 at
> > > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> > >                 at
> > >
> > >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> > >                 at
> > >
> > >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> > >
> > > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > > "TagLibraryValidator" I can find it in my app under WEB-INF/lib, so I'm
> > not
> > > sure what's going on
> > > ________________________________________________
> > >
> > > Kevin Huntly
> > > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > > G++ e(+) h--- r+++ y+++*
> > > ------END GEEK CODE BLOCK------
> > >
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Kevin Huntly <km...@gmail.com>.
Thank you for that... I have the right (I think) dependencies in my pom:

<dependency>

<groupId>org.apache.taglibs</groupId>

<artifactId>taglibs-standard-impl</artifactId>

<version>${taglibs.version}</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

<dependency>

<groupId>jakarta.servlet.jsp.jstl</groupId>

<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>

<version>${jstl.version}</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

<dependency>

<groupId>jakarta.servlet.jsp</groupId>

<artifactId>jakarta.servlet.jsp-api</artifactId>

<version>${jsp-api.version}</version>

<type>jar</type>

<scope>compile</scope>

</dependency>

<dependency>

<groupId>jakarta.servlet</groupId>

<artifactId>jakarta.servlet-api</artifactId>

<version>${jakarta.servlet.version}</version>

<type>jar</type>

<scope>provided</scope>

</dependency>


I just want to use the jstl tag libraries =(
________________________________________________

Kevin Huntly
Email: kmhuntly@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-- V-- PS+ PE Y(+)
PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
G++ e(+) h--- r+++ y+++*
------END GEEK CODE BLOCK------


On Mon, Apr 17, 2023 at 6:07 PM Torsten Krah <kr...@gmail.com> wrote:

> Please read https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
> and while you are there, read the whole guide ;-).
>
> Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> > org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service()
> for
> > servlet [jsp] threw exception
> >         java.lang.ClassNotFoundException:
> > javax.servlet.jsp.tagext.TagLibraryValidator
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> >                 at java.base/java.lang.ClassLoader.defineClass1(Native
> > Method)
> >                 at
> > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
> >                 at
> >
> >
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
> >                 at
> >
> >
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
> >
> > it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> > "TagLibraryValidator" I can find it in my app under WEB-INF/lib, so I'm
> not
> > sure what's going on
> > ________________________________________________
> >
> > Kevin Huntly
> > Email: kmhuntly@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-- V-- PS+ PE Y(+)
> > PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> > G++ e(+) h--- r+++ y+++*
> > ------END GEEK CODE BLOCK------
> >
>

Re: ClassNotFound after upgrade to tomcat 10

Posted by Torsten Krah <kr...@gmail.com>.
Please read https://tomcat.apache.org/migration-10.html#Server_Pages_3.0
and while you are there, read the whole guide ;-).

Kevin Huntly <km...@gmail.com> 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 [catalina-exec-1]
> org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for
> servlet [jsp] threw exception
>         java.lang.ClassNotFoundException:
> javax.servlet.jsp.tagext.TagLibraryValidator
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1437)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>                 at java.base/java.lang.ClassLoader.defineClass1(Native
> Method)
>                 at
> java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
>                 at
>
> java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2487)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:865)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1401)
>                 at
>
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1245)
>
> it's running on AlmaLinux and tomcat 10.1.7. If I do a grep for
> "TagLibraryValidator" I can find it in my app under WEB-INF/lib, so I'm not
> sure what's going on
> ________________________________________________
>
> Kevin Huntly
> Email: kmhuntly@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-- V-- PS+ PE Y(+)
> PGP++(+++) t+ 5-- X-- R+ tv+ b++  DI++ D++
> G++ e(+) h--- r+++ y+++*
> ------END GEEK CODE BLOCK------
>