I am setting up my project with maven in eclipse using framework spring and it shows me the following errror:

0

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

    
asked by Camila 13.12.2016 в 15:59
source

1 answer

1

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

    
answered by 13.12.2016 / 16:10
source