tomcat 启动报错 registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister

来源:互联网 发布:设计算法需要考虑什么 编辑:程序博客网 时间:2024/05/16 06:27

 

2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/bjrcsc] 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.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

 

在网上查说是tomcat版本问题,有如下解决办法

<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>;
将上面的东东关闭。

我这里不好使

我没有关闭上面的监听,停止服务,清理catalina,再启动。问题解决了