Hello, > -----Ursprüngliche Nachricht----- > Von: Markus Reich <[email protected]> > Gesendet: Donnerstag, 23. Juni 2022 08:53 > An: Tomcat Users List <[email protected]> > Betreff: Re: Precompile JSP error using webapp-jspc.ant.xml (tomcat > stuffed) > > yes, it seems that in the pom tomcat 10 is specified, does this make any > difference? > <tomcat.version>10.0.18</tomcat.version> > > Am Do., 23. Juni 2022 um 08:30 Uhr schrieb Rob Sargent < > [email protected]>: > > > > > > > > On Jun 22, 2022, at 11:36 PM, Markus Reich <[email protected]> > > wrote: > > > > > > Hi, > > > > > > I'm trying to precompile a JSF application, I follow the > > > instructions on https://tomcat.apache.org/tomcat-9.0-doc/graal.html. > > > > > > I got a lot of errors like > > > Caused by: java.lang.ClassCastException: class > > > com.sun.faces.taglib.jsf_core.CoreValidator cannot be cast to class > > > jakarta.servlet.jsp.tagext.TagLibraryValidator > > > (com.sun.faces.taglib.jsf_core.CoreValidator and > > > jakarta.servlet.jsp.tagext.TagLibraryValidator are in unnamed module > > > of loader org.apache.tools.ant.AntClassLoader > > > > > > The header in JSP is > > > <%@page contentType="text/html"%> > > > <%@page pageEncoding="UTF-8"%> > > > > > > <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> > > > <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> > > > > > > <%@taglib prefix="t" uri="/WEB-INF/eclnt"%> > > > > > > regards > > > Meex > > > > Are you sure you haven’t included something from Tomcat v10? > >
Java EE changed to Jakarta EE because of some legal issues about naming. Many packages changed, like javax and sun. The new packages contain "Jakarta" now. Maybe this helps to determine whether it’s a new or old package. Because of all the dependencies it can be quite exhaustive to figure out the old packages and check whether new ones are available. Greetings, Thomas
