引入jstl标签库报错The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml

一、错误信息: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包请到官网下载),没有就导入


	    javax.servlet
	    jstl
	    1.2
	

2.有可能maven下载jar包时网络不好,在项目名处鼠标右键,选择maven,再选择update project,再选中你的项目然后重新下载

引入jstl标签库报错The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml_第1张图片
引入jstl标签库报错The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml_第2张图片

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,网上各种方法都没解决,偶然改回来就可以了)

4.如果还是解决不了,建议重新下载一个tomcat,下载地址http://tomcat.apache.org/

你可能感兴趣的:(小记)