struts2-Tomcat后台报错Error filterStart(第一次发贴)

硬骨头_children 2012-08-24 10:52:55
亲们,鄙人第一次发贴哦;
项目导入的是尚学堂老师的原包,报的具体错误(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文件也纯洁的要死:
  <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>
...全文
213 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
姜小白- 2013-12-30
  • 打赏
  • 举报
回复
楼主,在不呢,这个问题最后怎么解决了,俺遇到这个问题了
硬骨头_children 2012-08-24
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
改为:
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>试试
[/Quote]
之前就试过,没用

大牛帮我解释下tomcat报的那个该死的错误啊,我要KO掉它!!!
  • 打赏
  • 举报
回复
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
改为:
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>试试
硬骨头_children 2012-08-24
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

更换tomcat,tomcat问题。
[/Quote]
我的配置:Myeclipse8.5+tomcat6.0+JDK1.60
我的tomcat以前运行程序没什么问题,去掉工程的<filter>后,tomcat启动非常正常。请问会是tomcat的什么具体问题呢?
brightyq 2012-08-24
  • 打赏
  • 举报
回复
更换tomcat,tomcat问题。
硬骨头_children 2012-08-24
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

xwork-core-2.3.1.2.jar这个jar包有吗
[/Quote]

是导入老师的工程包,所以导入的包是没有问题的,当然我也检查过,另外日志报错方面说的不是这个问题吧。
  • 打赏
  • 举报
回复
xwork-core-2.3.1.2.jar这个jar包有吗

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧