Cannot be resolved in either web. xml or the jar files deployed with this application, resolveddeployed

Source: Internet
Author: User

Cannot be resolved in either web. xml or the jar files deployed with this application, resolveddeployed

An error is reported when C segments in the original project are sent to the new project. 
: Org. apache. jasper. jasperException:/register. jsp (line: 10, column: 1) 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

Try a solution 
1. Reference a method for testing.

It may be a JSTL version error. Because JSTL1.0 and JSTL1.1 have different declaration statements.

JSTL 1.0 declaration is:
<% @ Taglib prefix = "c" uri = "http://java.sun.com/jstl/core" %>
JSTL 1.1 declaration is:
<% @ Taglib prefix = "c" uri = http://java.sun.com/jsp/jstl/core %>

If the JSTL library you are using is inconsistent with your declaration in JSP. The Exception mentioned above will be reported.
In addition, it should be noted that Tomcat is to first reference the library under "TOMCAT_HOME/shared/lib", and then reference the "WEB-INF/lib" library under the web Project.
In addition, the JSTL library in jBuilder has two configurations: "JSTL" (1.0) and "JSTL1.1" (1.1 ), note: Do not reference the error during project creation.
Another trick is: how to determine the version of two JSTL library files (standar. jar and jstl. jar?
Expand the MANIFEST. MF file of the jar file under the META-INF directory, where "Specification-Version" indicates the Version number.

Operation 
Open MANIFEST. MF, only

1 Manifest-Version: 1.02 Class-Path: 

 

 

The code is http://java.sun.com/jsp/jstl/core, and may be 1.1.
Change it to http://java.sun.com/jstl/corefor post-testing, and the question remains.

2. There may be no package for lib under web-inf. Place jstl. jar and standard. jar under lib. 
Test: Put the two packages into the package.
Note: If the servlet version does not match the jar version of The jstl tag library, an error is returned.
According to TLD or attribute directive in tag file, attribute value does not ac

Version JSTL version Requirements
Standard 1, 1.2 JSTL 1.2 (not yet JCP approved) Servlet 2.5, assumerver Pages 2.1
Standard 1, 1.1 JSTL 1.1 Servlet 2.4, assumerver Pages 2.0
Standard 1, 1.0 JSTL 1.0 Servlet 2.3, assumerver Pages 1.2

Pay attention to the table above.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.