The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application] with root cause异常处理及解释

1. Problem Description:

Jstl want to use the standard library at run time very natural references jar package follows in the web of jsp file:

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

In the jsp interface quoted statement is as follows:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 

  On the surface nothing wrong, but time is running, 500 pages directly, and being given The absolute uri: [http://java.sun.com/jsp/jstl/core] can not be resolved in either web.xml or the jar files deployed with this application] with root cause roughly meaning the absolute path [http://java.sun.com/jsp/jstl/core] neither in web.xml configuration has not been deployed in the jar package file.

All in all is ---- project jstl can not find the library.

 

2. Solution:

  After analysis browse the Internet, my question is, maven project posted to tomcat process on the server, not the local project has been configured jstl1.2 jar package jia deployed to lib tomcat's, so after running the project click referred to a page jstl library display 500 and an error in eclipse. I will copy the local warehouse jstl.jar lib tomcat to republish it in the project, to return to normal.

3. summary of information on the issue

On this issue, I see the situation there are many, you may wish to control what:

  <. 1> JAR package references the problem

  1. The project is not loaded jstl.jar
  2. Jstl.jar loaded version is less than 1.0 but not load the corresponding standard.jar package (version 1.1 or more in jstl package contains standard)

  <2> JAR package references format issues

  1. Project 1.0 is loaded in the following format jstl.jar in jsp interface reference is:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

    2.jstl.1.1 version 1.2 versions have changed and a new path:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

  <3> Tomcat is not related to the deployment of the jar package

  Copy the local warehouse jstl.jar to the tomcat lib re-release about the project, OK.

Guess you like

Origin www.cnblogs.com/zzu-superYi/p/11870674.html
Recommended