当前位置: 代码迷 >> Eclipse >> java.lang.IncompatibleClassChangeError
  详细解决方案

java.lang.IncompatibleClassChangeError

热度:101   发布时间:2016-04-23 18:39:12.0
myeclipse创建struts2的问题
在启动weblogic9.1时,出现了以下错误:

<Could   not   load   user   defined   filter   in   web.xml:  

org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.IncompatibleClassChangeError
at   org.apache.struts2.dispatcher.Dispatcher. <clinit> (Dispatcher.java:83)
at   org.apache.struts2.dispatcher.FilterDispatcher.createDispatcher

(FilterDispatcher.java:389)
at   org.apache.struts2.dispatcher.FilterDispatcher.init

(FilterDispatcher.java:162)
at   weblogic.servlet.internal.FilterManager$FilterInitAction.run

(FilterManager.java:311)
at   weblogic.security.acl.internal.AuthenticatedSubject.doAs

(AuthenticatedSubject.java:321)

web.xml内容如下:
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<web-app   version= "2.4 "   xmlns= "http://java.sun.com/xml/ns/j2ee "
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
<filter   id= "filterdispatcher ">
<filter-name> struts2 </filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name> struts2 </filter-name>
<url-pattern> /* </url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file> index.jsp </welcome-file>
</welcome-file-list>
</web-app>
所有struts2.0.6的包一个一个检查了,没问题.但就是启动不起来!

------解决方案--------------------
关注
  相关解决方案