在战争中运送的罐子与码头冲突 [英] jars shipped in war conflicting with jetty
问题描述
可能重复:
org.apache.jasper.el.ELContextImpl无法强制转换为org.apache.jasper.runtime.ELContextImpl
我在war文件中导出一个来自Eclipse的Web服务项目(包含jsp页面)并进行部署在Jetty 8.1.5中。它在我的机器上工作正常。但是在另一台机器(Windows Server 2003)上在Jetty 8.1.3上部署相同的war文件后,当我转到index.jsp页面时,它会给出HTTP Error 500和以下异常:
I export a web service project (contains jsp pages) from Eclipse in a war file and deploy it in Jetty 8.1.5. It works fine on my machine. But after deploying the same war file on Jetty 8.1.3 on another machine (windows server 2003) it gives HTTP Error 500 and the following exception when I go to the index.jsp page:
org.apache.jasper.el.ELContextImpl无法强制转换为org.apache.jasper.runtime.ELContextImpl
我在两天前发布的这个问题。我在 WEB_INF / lib
中的所有罐子都在这两个屏幕截图中提供:
the full trace and more details in this question which I posted two days ago. while all the jars that I have in WEB_INF/lib
are provided in these two screenshots:
在互联网上寻找解决方案两天后,我们知道问题是由于运送的罐子之间的冲突造成的战争文件和其他罐子(我想是码头罐子)。
two days of looking around the internet for a solution resulted in knowing that the problem is caused by conflicts between the jars shipped in the war file and other jars (I guess the jetty jars).
问题是:我怎样才能找出导致问题的罐子?我尝试浏览这些罐子的内容,寻找类 ElContextImpl
,但没有找到任何东西?
有什么想法?
The question is: how can I find out which jar is causing the problem? I tried browsing the contents of these jars looking for the class ElContextImpl
but did not find anything ?
Any thoughts?
编辑:
我尝试将我当地的整个Jetty 8.1.5复制到服务器并从那里修改码头..但仍然没有成功。
I tried copying my local whole Jetty 8.1.5 into the server and statrted jetty from there.. but still no success.
推荐答案
您的WAR文件包含一些不必要的JAR,例如 servlet-api-2.4.jar
应该是Jetty安装的一部分(可能在另一个版本中)。
Your WAR file contains some unnecessary JARs like servlet-api-2.4.jar
which should be part of the Jetty installation (maybe in another version).
乍一看你应该删除所有 jetty- *。 jar
, servlet-api-2.4.jar
, javax.servlet。*。jar
。如果你从8.1.5 Jetty安装中获取了这些,那么它可能会导致与你的8.1.3安装冲突。
At first sight you should remove all jetty-*.jar
, servlet-api-2.4.jar
, javax.servlet.*.jar
. If you have taken these from your 8.1.5 Jetty installation then it could cause conflicts with your 8.1.3 installation.
这篇关于在战争中运送的罐子与码头冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!