I'm taking a tutorial of Spring framework mvc v3 with JPA, using maven in Eclipse. Then I created the project and it shows me the following error:
the superclass javax.servlet.http.HttpServlet was not found on the java build path
What you should do is add the dependency to the servlet library. Since you indicate that you work with maven, this would be the dependency:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<!--
scope provided porque no debes agregar estas librerías
directamente al proyecto, el contenedor de servlets
o servidor de aplicaciones que uses se encargará de
brindar estas librerías
-->
<scope>provided</scope>
</dependency>
Adapted from: link