Caused by: java.lang.NoClassDefFoundError: javax/el/ELManager

出现问题的原因:

在将springboot项目部署到Linux下的Tomcat中,项目无法正常启动(本地能正常运行),Tomcat启动日志中出现:

各种百度,有说将apache-tomcat/lib目录下,el-api.jar放到Java/jre/lib/ext下。

有说将编译器下的el-api.jar放到apache-tomcat/lib目录下,两种方法都试过了,不行。

问题总结:

出现这个问题的原因,应该是Tomcat的el-api.jar与编译器的el-api.jar包有差异导致的。

我的解决方法:

将我的编译器下的el-api.jar包(我的路径:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1\lib\rt\jasper2.1),

分别放到服务器端的Tomcat的lib包下(我的路径:/usr/local/tomcat/apache-tomcat-7.0.77/lib),

和jdk/lib/ext包下(我的路径:/usr/lib/java-1.8.0/jdk1.8.0_161/jre/lib/ext)。

apache-tomcat/lib目录下,拷贝el-api.jar放到D:\Java\jdk1.6.0_11\jre\lib\ext下即可

原文地址:https://www.cnblogs.com/Darlin356230410/p/9172474.html

时间: 2024-11-08 16:56:23

Caused by: java.lang.NoClassDefFoundError: javax/el/ELManager的相关文章

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver错误解决办法

今天不用eclipse.myeclipse等开发工具,纯手写JSP页面(有点作死)时突然出现以前从来没遇到过的问题,报错如下: HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver type Exception report message java.lang.NoClassDefFoundError: javax/el/ELResolver description The server encountered

java.lang.NoClassDefFoundError: javax/el/ELResolver 问题解决

HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver type Exception report message java.lang.NoClassDefFoundError: javax/el/ELResolver description The server encountered an internal error that prevented it from fulfilling this reques

Caused by: java.lang.NoClassDefFoundError: javax/faces/webapp/FacesServlet

1.错误描述 严重: Exception starting Context with name [/DoJo] org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DoJo]] at org.apache.catalina.util.LifecycleBase.start(Lifecy

Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.linewell.wechat.WechatApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.spri

java.lang.NoClassDefFoundError: javax/el/ExpressionFactory

在Tomcat发布工程时,出现该异常. 将javaee.jar包copy一份放在tomcat目录的common\lib下可以解决问题. 该包可以在myeclipse的以下路径找到.E:\MyEclipse Professional 2014\plugins\com.genuitec.eclipse.j2eedt.core_11.5.0.me201311281640\data\libraryset\EE_5

Tomcat启动报错java.lang.ClassNotFoundException: javax.el.ExpressionFactory

严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0': Invocation of init method failed; nested exception

Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity

1.错误描写叙述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:41:17 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 usi

Caused by: java.lang.ClassNotFoundException: javax.persistence.NamedStoredProcedureQuery

1.错误描述 2014-7-12 21:06:37 org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation INFO: HHH000422: Disabling contextual LOB creation as connection was null 2014-7-12 21:06:37 org.springframework.web.context.ContextLoader initWeb

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/jms/JMSContext

参考链接 : https://blog.csdn.net/angus_Lucky/article/details/82811946?utm_source=blogxgwz7 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [spring/applicationContex