Exception report
resolvent
Abnormal cause
After Tomcat 10, the servlet dependent package is no longer javax.servlet, but jakarta.servlet.
terms of settlement
Use a version of Tomcat below 10. Modify the dependency to the latest Jakarta. Servlet.
Similar Posts:
- [Solved] IDEA: JSP Could Not Use session Build-in Object
- [Solved] Tomcat10 Error: jakarta.servlet.ServletException: Class com.kuang.servlet.HelloServlet is not a servlet
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
- Tomcat Deployed Applications Start Error: java.lang.ClassCastException: [XXX].filter.CharacterEncoding cannot be cast to jakarta.servlet.Filter
- import javax.servlet.http.HttpSession;
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- IDEA error: javax/xml/bind/DatatypeConverter [How to Solve]
- Maven does not have a servlet (an error is reported after the servlet is created)
- HTTP Status 500 – Unable to compile class for JSP settlement program
- Error during artifact deployment. See server log f