我使用: java 10 , Tomcat 7.0.88 和 maven
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
在这种情况下,我会按照例外的食谱
HTTP状态500-绝对uri:http://java.sun.com/jsp/jstl/core 无法在web.xml或通过以下方式部署的jar文件中解析 此应用程序
类型异常报告
消息绝对uri:http://java.sun.com/jsp/jstl/core不能为 在web.xml或与此一起部署的jar文件中解决 应用
说明服务器遇到内部错误,阻止了它 满足此请求。
例外
org.apache.jasper.JasperException:绝对uri: http://java.sun.com/jsp/jstl/core在任何一个web.xml中都无法解析 或与此应用程序一起部署的jar文件 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:325) org.apache.jasper.compiler.TagLibraryInfoImpl。(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:242) org.apache.jasper.compiler.ParserController.parse(ParserController.java:102) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199) org.apache.jasper.compiler.Compiler.compile(Compiler.java:374) org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) org.apache.jasper.compiler.Compiler.compile(Compiler.java:341) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364) 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:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) todo.TodoServlet.doGet(TodoServlet.java:23) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note Apache中提供了根本原因的完整堆栈跟踪 Tomcat / 7.0.88日志。 Apache Tomcat / 7.0.88