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

发布于 2011-12-31 | 更新于 2020-09-20

1、问题:

org.apache.jasper.JasperException: 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

2、问题描述:

使用了maven管理,在pom.xml中加入如下Jar:

jstl jstl 1.1.2 taglibs standard 1.1.2

用maven编译启动服务器后,访问添加了如下标签的页面:

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

发现访问页面提示如下错误:

org.apache.jasper.JasperException: 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

3、解决方法:

可能是JAR文件的版本问题,关于使用Maven的pom.xml文件的方式还没有具体的方法。可以先手动添加JAR文件。从当前使用的Tomcat的解压路径中复制%TOMCAT_HOME%/webapps/examples/WEB-INF/lib 目录中目录中的jstl.jar 和 standard.jar两个Jar包到项目的WEB-INF的lib目录下,重新用maven编译,启动服务器,问题解决。

本文作者: arthinking

本文链接: https://www.itzhai.comthe-absolute-uri-httpjava-sun-comjspjstlcore-cannot-be-resolved-in-either-web-xml-or-the-jar-files-deployed-with-this-application.html

版权声明: 版权归作者所有,未经许可不得转载,侵权必究!联系作者请加公众号。

×
IT宅

关注公众号及时获取网站内容更新。