错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2013-09-15 08:24
1371 查看
tomcat reload显示错误:SEVERE: The web application [/Interceptor] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@302b4e8e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6b326556]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
在写Annotation注解的时候,使用了@InterceptorRef(value="tt"),如果“tt”不存在,将会出现上面的问题
或者是在XML中action无法找到对应的class也会出错
今天刚发现了另一种情况,当你用注解时指定的父包不存在也会出现这类问题:
@ParentPackage("default-struts")
其中default-struts写反了,应该是struts-default
在写Annotation注解的时候,使用了@InterceptorRef(value="tt"),如果“tt”不存在,将会出现上面的问题
或者是在XML中action无法找到对应的class也会出错
今天刚发现了另一种情况,当你用注解时指定的父包不存在也会出现这类问题:
@ParentPackage("default-struts")
其中default-struts写反了,应该是struts-default
相关文章推荐
- 警告: The web application [ROOT] appears to have started a thread named [Thread-48] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
- The web application registered the JDBC driver * but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
- registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
- The web application [ ] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver
- but has failed to stop it. This is very likely to create a memory leak(c3p0在Spring管理中,连接未关闭导致的内存溢出)
- quartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak解决
- SSH框架 Tomcat报错 内存泄漏的解决办法This is very likely to create a memory leak. Stack trace of thread: java.ne
- This is very likely to create a memory leak. Stack trace of thread
- 关于The web application [/cdmaPlus] created a ThreadLocal with key of type
- registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped.
- registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. (转)
- The web application [/struts2_0100] created a ThreadLocal with key of type
- [tomcat启动报错]registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped
- The web application [/HOTEL] created a ThreadLocal with key of type
- The web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1807b9
- The web application [/XinRui02] created a ThreadLocal with key of type [com.opensymphony.xwork2.inje
- The web application [/struts1] created a ThreadLocal with key of type
- failed to remove it when the web application was stopped. Threads are going to be renewed over time
- The web application [/struts2_0100] created a ThreadLocal with key of type