一、错误信息:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
二、解决方法
1.检查是否导入jstl包(jar包请到官网下载),没有就导入
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
2.有可能maven下载jar包时网络不好,在项目名处鼠标右键,选择maven,再选择update project,再选中你的项目然后重新下载


3.上面两种方法无法解决的话,你可以查看tomcat>conf>catalina.propertie,将tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar改成tomcat.util.scan.StandardJarScanFilter.jarsToScan=\,然后重新new一个server
(前段时间因为tomcat启动很缓慢,所以将tomcat.util.scan.StandardJarScanFilter.jarsToScan=\改成tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar;启动速度是变快了许多,但是直到引入jstl标签库一直报错:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application,网上各种方法都没解决,偶然改回来就可以了)
本文详细介绍了在使用JSTL标签库时遇到的Theabsoluteuri:http://java.sun.com/jstl/corecannotberesolved错误的四种解决方法,包括检查并导入jstl包、更新Maven项目、调整Tomcat配置以及重新下载Tomcat。
1万+





