java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config报错

版权声明:本文为博主柒晓白(邹涛)原创文章,未经博主允许不得转载,否则追究法律责任。 https://blog.csdn.net/ITBigGod/article/details/79397661

1.报错

web项目运行报错:
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

2.解决方案

主要是因为缺少standard.jar和jstl.jar所致:

解决方案:

1.添加maven依赖:(maven项目)

 jstl.jar.
   <dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
 
standard.jar
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
2.直接下载jar包(没有使用maven管理的项目(在下面链接下载jar包,放到项目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 论坛

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