jetty、tomcat启动发生异常 java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl
来源:互联网 发布:淘宝话费号码不是自己 编辑:程序博客网 时间:2024/05/17 02:47
公司原来web项目是在tomcat 下运行 包括tomcat运行环境在内所有的jar都放到目录WEB-INF/lib下,一切正常,切换到jetty(9.3)以后启动报错
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl
查了一下 原来是因为 serlet容器jar冲突导致
以下摘自http://stackoverflow.com 一篇 提问,说得很好,
That can happen if your webapp ships with servletcontainer-specific JAR files such as jasper.jar
, jetty.jar
servlet.jar
, etc in the /WEB-INF/lib
for some unclear reason. This is in turn conflicting with with a different versioned JAR file on the target servletcontainer.
Remove that servletcontainer-specific JAR file from your webapp's /WEB-INF/lib
. It doesn't belong there. It's supposed to be already supplied by the servletcontainer itself.
原文
解决办法,删除项目目录下 有关 jasper servlet的jar 依赖容器本身的jar运行,避免冲突。原文解释中有一句话 “ It doesn't belong there.”,我觉得 这句话很关键,提醒我们该谁管的就该谁去管,别瞎往一起整,呵呵。
感叹一下做这个web项目框架整合的哥们。
- jetty、tomcat启动发生异常 java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl
- tomcatx java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl
- 访问tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl
- 访问tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl
- java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl
- 访问tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl
- tomcat启动报错:java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to o
- 关于tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl的错误
- Tomcat7出现HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot b
- Tomcat7出现HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot b
- 关于tomcat7 java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl的错误
- org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
- org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
- org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
- org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl
- tomcat启动发生 java.lang.NoClassDefFoundError:javax/el/ExpressionFactory错误
- linux部署tomcat7启动org.apache.jasper.el.ELContextImpl的解决
- tomcat启动Java.Lang.NoClassDefFoundError: Org/Apache/Commons/Logging/LogFactory异常
- golang并发编程
- Android开发之Fragments之间的交互
- 搭建java开发环境
- gulp学习笔记
- mysql学习笔记(6)
- jetty、tomcat启动发生异常 java.lang.NoClassDefFoundError: org.apache.jasper.el.ELContextImpl
- 对uc/OS中的任务-----学习
- 【第7周 项目6 - 停车场模拟】
- OC内存管理剖析()
- UNIX环境高级编程--文件共享
- windows下github
- scu 3636 二维单调队列
- mongodb linux下启动
- [IOS 开发] NSArray去除重复元素的方法