To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

1、错误描述

严重: The web application [/AMST] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
八月 10, 2015 2:57:44 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/AMST] 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.
八月 10, 2015 2:57:44 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/AMST] 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.
八月 10, 2015 2:57:44 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

2、错误原因

       从字面翻译:为了防止内存泄漏,JDBC驱动程序已经被强制注销。


3、解决办法

(1)将JDBC驱动包拷贝到Tomcatlib目录下

(2)将Tomcat中server.xml监听器注释掉

<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>




你可能感兴趣的:(java,Hibernate,mysql,Web,springMVC,jdbc)