IDEA 报错:org.apache.jasper.JasperException: 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]
IDEA上,运行JavaWeb工程报错:org.apache.jasper.JasperException: 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]
16-May-202120:09:31.289信息 [http-nio-8080-exec-7] com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl.info {dataSource-1} initedjava.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) atjava.lang.reflect.Method.invoke(Method.java:498) atweb.BaseServlet.doPost(BaseServlet.java:34) atweb.BaseServlet.doGet(BaseServlet.java:19) atjavax.servlet.http.HttpServlet.service(HttpServlet.java:626) atjavax.servlet.http.HttpServlet.service(HttpServlet.java:733) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) atorg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) atorg.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) atorg.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) atorg.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) atorg.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) atorg.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) atorg.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) atorg.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) atjava.lang.Thread.run(Thread.java:748) Causedby: org.apache.jasper.JasperException: 无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core]atorg.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55) atorg.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294) atorg.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81) atorg.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:251) atorg.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:122) atorg.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431) atorg.apache.jasper.compiler.Parser.parseDirective(Parser.java:489) atorg.apache.jasper.compiler.Parser.parseElements(Parser.java:1445) atorg.apache.jasper.compiler.Parser.parse(Parser.java:144) atorg.apache.jasper.compiler.ParserController.doParse(ParserController.java:244) atorg.apache.jasper.compiler.ParserController.parse(ParserController.java:105) atorg.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207) atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:392) atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:368) atorg.apache.jasper.compiler.Compiler.compile(Compiler.java:352) atorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605) atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400) atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:378) atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:326) atjavax.servlet.http.HttpServlet.service(HttpServlet.java:733) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) atorg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710) atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457) atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384) atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) atweb.BookServlet.list(BookServlet.java:48) ... 30more
在IDEA上,JSTL标签库的jar包已经导入
但是成功部署之后,跳转页面会一直加载,不显示内容
解决办法
官网下载地址:http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/
将【taglibs-standard-impl.jar】下META-INF目录下需要引入的 tld 文件复制到 WEB-INF 目录下。
将需要的tld 文件复制到 WEB-INF 目录下之后重新部署即可解决