Answer the question
In order to leave comments, you need to log in
Why doesn't GlassFish 6.2.3 see javax.faces.webapp.FacesServlet?
Hello! Please help, glassfish refuses to accept servlet's faces mapping in the web.xml file.
The following lines:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Answer the question
In order to leave comments, you need to log in
In general, they answered me on stackoverflow. I'll leave this answer here in case someone suddenly encounters the same problem)
GlassFish 6.2.3 implements Jakarta EE 9.1 and Faces 3.0. These use the Jakarta namespace. Your servlet declaration should therefor be:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class>
</servlet>
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
Means jvm can't find required class in classpath
Try putting it there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question