在启动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的包一个一个检查了,没问题.但就是启动不起来!
------解决方案--------------------
关注