日期:2014-05-19  浏览次数:20640 次

struts2-Tomcat后台报错Error filterStart(第一次发贴)
亲们,鄙人第一次发贴哦;
项目导入的是尚学堂老师的原包,报的具体错误(but failed to remove it when the web ap
plication was stopped. This is very likely to create a memory leak.)我在网上还没搜到过,请大牛们帮我看看:

Tomcat后台报错:

严重: Error filterStart
2012-8-24 10:10:16 org.apache.catalina.core.StandardContext start
严重: Context [/Struts2_0400_Path] startup failed due to previous errors
2012-8-24 10:10:16 org.apache.catalina.loader.WebappClassLoader clearThreadLocal
Map
严重: The web application [/Struts2_0400_Path] created a ThreadLocal with key of
 type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony
.xwork2.inject.ContainerImpl$10@166c114]) and a value of type [java.lang.Object[
]] (value [[Ljava.lang.Object;@10e1513]) but failed to remove it when the web ap
plication was stopped. This is very likely to create a memory leak.
2012-8-24 10:10:16 org.apache.catalina.loader.WebappClassLoader clearThreadLocal
Map
严重: The web application [/Struts2_0400_Path] created a ThreadLocal with key of
 type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony
.xwork2.inject.ContainerImpl$10@509df8]) and a value of type [java.lang.Object[]
] (value [[Ljava.lang.Object;@b31a7c]) but failed to remove it when the web appl
ication was stopped. This is very likely to create a memory leak.
2012-8-24 10:10:17 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2012-8-24 10:10:17 org.apache.coyote.ajp.AjpAprProtocol start
信息: Starting Coyote AJP/1.3 on ajp-8009
2012-8-24 10:10:17 org.apache.catalina.startup.Catalina start
信息: Server startup in 2835 ms

web.xml文件也纯洁的要死:
XML code
  <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


------解决方案--------------------
xwork-core-2.3.1.2.jar这个jar包有吗
------解决方案--------------------
更换tomcat,tomcat问题。
------解决方案--------------------
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
改为:
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>试试