tomcat部署的项目,启动后,点击页面报错如下:
Type 异常报告
消息 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]
描述 服务器遇到一个意外的情况,阻止它完成请求。
Exception
org.apache.jasper.JasperException: 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core] org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:472) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:121) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:325) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:154) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) org.apache.jasper.compiler.Parser.parse(Parser.java:138) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:237) org.apache.jasper.compiler.ParserController.parse(ParserController.java:102) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:204) org.apache.jasper.compiler.Compiler.compile(Compiler.java:394) org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.siit.digital.framework.filter.AuthorityFilter.doFilter(AuthorityFilter.java:102) com.sinosig.safety.filter.IllegalCharacterFilter.doFilter(IllegalCharacterFilter.java:52) com.siit.common.filter.EncodingFilter.doFilter(EncodingFilter.java:40) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
报错原因也很简单,找不到jstl标签库。
链接: https://pan.baidu.com/s/1g5T56F7o-ovOGxjznM1t8g 提取码: tdm3
解决办法:
WEB/INF的lib下,除了导入jstl.jar包,还要导入standard.jar包。另外,解压standard.jar包,把.tld文件放在WEB/INF下。