This problem is caused by the removal of the previous runtimeserver.
It usually also occurs when you import another person’s project a second time.
Two solutions:
1. Copy and paste the servlet-api.jar in the Tomcat file lib being used into the web/inf lib under the current error reporting project
2. Project properties build Java path – add library server runtime – select the currently used server finish
solve
Similar Posts:
- About eclipse new web project, prompt: “the superclass” javax. Servlet. Http. Httpservlet “was not found on the Java” solution
- The import javax.servlet cannot be resolved [How to Solve]
- JSP Web Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Eclipse Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The solution of the import javax.servlet cannot be resolved in Java
- Error reporting when importing Maven project from MyEclipse
- JSP Page The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- [Eclipse]–Error:The superclass “javax.servlet.http.HttpServlet” was not found on the J…
- The following table: unable to import javax. Servlet. HttpServletRequest
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener