日期:2014-05-20  浏览次数:20631 次

整合ssh2中遇到的一个问题,求好心人帮我看看~
我整合了一个简单的ssh2(struts2+spring2.5+hibernate3.2)程序,每次deploy项目, 重新启动tomcat一切正常, 没有异常。 
但是我在服务器保持运行的状态中,redeploy这个项目, 就出现了异常, 就停在了那里, 异常信息大概是JDBC抛出的,意思好像是无法关闭jdbc资源。我用的是mysql数据库,mysql驱动5.1.11。求好心人帮我看看,谢谢了~ 还有ThreadLocal这个异常

异常信息如下:

2010-2-4 11:53:55 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/ssh]
2010-2-4 11:53:55 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC 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.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12c937c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@186dd93]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.config.ConfigureListener$1@13d0fea]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12c937c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1dffb78]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Actual transaction active]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12c937c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1f6ae4d]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
2010-2-4 11:53:55 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal]

------解决方案--------------------
没遇到过,很奇怪的问题。
------解决方案--------------------
A web application registered the JBDC 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. 


一个web应用程序注册的JBDC驱动程序[com.mysql.jdbc.Driver],但Web应用程序时停止时未能注销。为了防止内存泄漏,JDBC驱动程序已被强行注册。