The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

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: