日期:2014-05-17  浏览次数:20765 次

有了STRUTS之后,启动TOMCAT 的问题
报错信息如下,这是个什么意思啊?应该怎么样去解决呢?
严重: Error filterStart
2012-4-21 8:04:07 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
2012-4-21 8:04:07 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.ope
nsymphony.xwork2.inject.ContainerImpl$10@172c47b]) and a value of type [java.lang.Obj
ect[]] (value [[Ljava.lang.Object;@1c187c8]) but failed to remove it when the web app
lication was stopped. To prevent a memory leak, the ThreadLocal has been forcibly rem
oved.
2012-4-21 8:04:07 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.ope
nsymphony.xwork2.inject.ContainerImpl$10@b95f72]) and a value of type [java.lang.Obje
ct[]] (value [[Ljava.lang.Object;@294f62]) but failed to remove it when the web appli
cation was stopped. To prevent a memory leak, the ThreadLocal has been forcibly remov
ed.
2012-4-21 8:04:07 org.apache.coyote.http11.Http11Protocol start

------解决方案--------------------
把你的web.xml贴出来应该是那里的配置问题
------解决方案--------------------
加上默认的拦截器试试
Java code

<interceptors>
<interceptor name="timer" class="com.opensymphony.xwork2.interceptor.TimerInterceptor"/>
<interceptor name="logger" class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>

<interceptor-stack name="myStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="time"/>
<interceptor-ref name="logger"/>
</interceptor-stack>
</interceptors>

------解决方案--------------------
<interceptor-ref name="time"/> -->

<interceptor-ref name="timer"/>

其实<interceptor name="timer" class="com.opensymphony.xwork2.interceptor.TimerInterceptor"/>
<interceptor name="logger" class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>这两行可不加
------解决方案--------------------
<interceptor-stack name="myStack">
这个在哪里配置的 貌似这里有问题
------解决方案--------------------
是不是少XWORK2包啊
------解决方案--------------------
楼主,看看这个是不是这个问题
http://blog.csdn.net/zongzhankui/article/details/6117224
------解决方案--------------------
试试将默认拦截器放在最后面。
------解决方案--------------------
把toncat的work目录删了,重新发布,然后启动试试