Struts2框架下c3p0出错

Abson_Jack 发布于 2014/07/17 01:34
阅读 2K+
收藏 0

用了struts2和c3p0以及mysql连接,每次一重新发布项目就会出现这样的错误,连接都已经关闭好了,请问是什么原因造成的?

七月 17, 2014 1:29:29 上午 org.apache.catalina.startup.HostConfig reload
信息: Reloading context [/Struts2]
七月 17, 2014 1:29:29 上午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/Struts2] has started
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
警告: The web application [/Struts2] 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.
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
警告: The web application [/Struts2] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w93htgyfk5w6j9g|3ca01a72]-AdminTaskTimer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.util.TimerThread.mainLoop(Timer.java:552)
 java.util.TimerThread.run(Timer.java:505)
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
警告: The web application [/Struts2] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w93htgyfk5w6j9g|3ca01a72]-HelperThread-#0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
警告: The web application [/Struts2] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w93htgyfk5w6j9g|3ca01a72]-HelperThread-#1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
警告: The web application [/Struts2] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1hge15w93htgyfk5w6j9g|3ca01a72]-HelperThread-#2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)
七月 17, 2014 1:29:29 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
警告: The web application [/Struts2] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:41)
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
七月 17, 2014 1:29:31 上午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/Struts2] is completed

加载中
返回顶部
顶部