简体   繁体   中英

Migrating from Tomcat 7 to 8 in Eclipse WTP: The absolute uri: http://java.sun.com/jstl/core cannot be resolved

Everything worked fine in Eclipse with Tomcat 7 + Java 8.

JSTL is in place:

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

Taglib is used in JSP:

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

web.xml is standard 3.0.

Using Eclipse WST, module auto reloading off, serve modules without publishing on.

Now the only thing changed - migrated to Tomcat 8 , and getting this:

org.apache.jasper.JasperException: /WEB-INF/jsp/test.jsp (line: 1, 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

Is there any problem with running Tomcat8 in Eclipse?

Updating web.xml to 3.1 does not help.

==EDIT==

When running Tomcat 8 standalone (outside Eclipse), it also works fine.

The issue seems to be with the " Serve modules without publishing " feature.

Turning it off solved the issue.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM