`

java.lang.NoClassDefFoundError: JspTagException

    博客分类:
  • Java
 
阅读更多

错误详细信息如下:

SEVERE: Servlet.service() for servlet [jsp] in context with path [/sc] threw exception [java.lang.NoClassDefFoundError: JspTagException] with root cause

java.lang.ClassNotFoundException: JspTagException

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

at java.lang.Class.privateGetPublicMethods(Unknown Source)

at java.lang.Class.getMethods(Unknown Source)

at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)

at java.beans.Introspector.getTargetMethodInfo(Unknown Source)

at java.beans.Introspector.getBeanInfo(Unknown Source)

at java.beans.Introspector.getBeanInfo(Unknown Source)

at org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:4034)

at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2289)

at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1717)

at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1553)

at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)

at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)

at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)

at org.apache.jasper.compiler.Node$Root.accept(Node.java:474)

at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)

at org.apache.jasper.compiler.Generator.generate(Generator.java:3581)

at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:251)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:179)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Unknown Source)

 

四月 04, 2016 10:41:37 下午 org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [jsp] in context with path [/sc] threw exception [java.lang.NoClassDefFoundError: JspTagException] with root cause

java.lang.NoClassDefFoundError: JspTagException

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

at java.lang.Class.privateGetPublicMethods(Unknown Source)

at java.lang.Class.getMethods(Unknown Source)

at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)

at java.beans.Introspector.getTargetMethodInfo(Unknown Source)

at java.beans.Introspector.getBeanInfo(Unknown Source)

at java.beans.Introspector.getBeanInfo(Unknown Source)

at org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:4034)

at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2289)

at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1717)

at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1553)

at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)

at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)

at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)

at org.apache.jasper.compiler.Node$Root.accept(Node.java:474)

at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)

at org.apache.jasper.compiler.Generator.generate(Generator.java:3581)

at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:251)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:179)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Unknown Source)

 

经分析,错误原因是因为项目WEB-INF\lib中缺少servlet-api.jar和jsp-api.jar所致,引入这两个jar文件,问题解决。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics