A new maven web project was created with the default index.jsp page, and it appeared.
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
Solution.
Introduce the dependency in the pom.xml file.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
Similar Posts:
- Maven does not have a servlet (an error is reported after the servlet is created)
- [Solved] IDEA: JSP Could Not Use session Build-in Object
- Springboot always reports an error when importing JSP dependencies
- Eclipse Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- import javax.servlet.http.HttpSession;
- [Eclipse]–Error:The superclass “javax.servlet.http.HttpServlet” was not found on the J…
- About eclipse new web project, prompt: “the superclass” javax. Servlet. Http. Httpservlet “was not found on the Java” solution
- JSP Web Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Error during artifact deployment. See server log f
- [Solved] java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUni