报错异常java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_24309787/article/details/79214425

如果随便去找个jstl包过来放入web-inf/lib会报错,正确的下载地址:这里

下载jakarta-taglibs-standard-1.1.2.zip这个包,解压缩后将standard和jstl两个包放入lib下即可

展开阅读全文

java.lang.NoClassDefFoundError: javax/servlet/jsp/HttpJspPage

01-31

type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Error allocating a servlet instancern org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn java.lang.Thread.run(Thread.java:534)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: javax/servlet/jsp/HttpJspPagern java.lang.ClassLoader.defineClass0(Native Method)rn java.lang.ClassLoader.defineClass(ClassLoader.java:539)rn java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rn java.net.URLClassLoader.defineClass(URLClassLoader.java:251)rn java.net.URLClassLoader.access$100(URLClassLoader.java:55)rn java.net.URLClassLoader$1.run(URLClassLoader.java:194)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(URLClassLoader.java:187)rn java.lang.ClassLoader.loadClass(ClassLoader.java:289)rn sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)rn java.lang.ClassLoader.loadClass(ClassLoader.java:235)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1255)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)rn java.lang.ClassLoader.defineClass0(Native Method)rn java.lang.ClassLoader.defineClass(ClassLoader.java:539)rn java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rn org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)rn org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn java.lang.Thread.run(Thread.java:534)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrnEClipse + Tomcat 5.0.28 + Lombozrn在Eclipse中一启动后Tomcat后,访问http://localhost:8080就出这个错误,使用Tomcat Monitor也是这样,但是使用Tomcat Config启动没这个问题,不解中,我Eclipse工程中确实有jsp-api.jar 论坛

servlet2.5+tomcat6.0运行时报错java.lang.NoClassDefFoundError: javax/servlet/Servlet

03-04

问题如下,这个错误我在百度上找到的答案是servlet3.0只能用在tomcat7.0里,不能被tomcat6.0支持,但是我现在用的是servlet2.5,怎么会这样呢?rnrnmaven引入的servlet2.5jar包,不是3.0的。rn rn javax.servletrn servlet-apirn 2.5rn providedrn rnrnrnrn2014-3-4 19:47:05 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: javax/servlet/ServletContainerInitializerrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at org.apache.jasper.EmbeddedServletOptions.(EmbeddedServletOptions.java:697)rn at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 27 morern2014-3-4 19:47:05 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /kft-activiti-demo threw load() exceptionrnjava.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at org.apache.jasper.EmbeddedServletOptions.(EmbeddedServletOptions.java:697)rn at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 论坛

没有更多推荐了,返回首页