Problem with Spring and Maven Project

1

Good morning everyone, I have a problem with a project of some Spring dependencies with Maven, what happens is that I download the project of a repository and some errors that I do not know, the errors are:

  

Can not find the tag library descriptor for   " link "

     

The content of element type "application" is incomplete, it must match   "(icon?, display-name, description?, module +, security-role *)".

     

The function fn: escapeXml is undefined

     

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

I hope and you can help me, I am new to this and I do not have a bit of idea of how to start, in advance I send a cordial greeting

    
asked by JUAN JOSE BUSTAMANTE SOLIS 10.04.2017 в 18:54
source

1 answer

1

The project lacks the dependencies to the JSTL and Java Servlet libraries. It is likely that when it was generated, it was deployed in a JEE application server such as JBoss or GlassFish that already provides this library but you try to deploy it in a servlet container such as Tomcat or Jetty that do not have it.

Solution: add the library to your dependencies or use the appropriate application server for your application.

Here I give you the dependencies for maven:

<dependency>
    <groupId>javax.servlet.jsp.jstl</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
</dependency>

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
    <scope>provided</scope>
</dependency>
    
answered by 10.04.2017 в 21:17