使用DBCP出现registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it

可以要么用旧版本的tomcat(6.025以前),要么就在tomcat的server.xml文件中,把
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>

或者

http://blog.csdn.net/mtgongren/article/details/6763305

注意mysql数据库有个超过8个小时没有被访问,mysql就会关闭空闲的Connection连接而Hibernate检测不到的问题


阅读更多

请教registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister

01-04

部署JSP时出现:rn[/openmeetings] startup failed due to previous errorsrn2013-01-04 22:51:25,676 [main] ERROR o.a.c.loader.WebappClassLoader - The web application [/openmeetings] 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.rn2013-01-04 22:51:25,676 [main] ERROR o.a.c.loader.WebappClassLoader - The web application [/openmeetings] registered the JDBC driver [org.apache.derby.jdbc.AutoloadedDriver40] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2013-01-04 22:51:25,676 [main] ERROR o.a.c.loader.WebappClassLoader - The web application [/openmeetings] registered the JDBC driver [org.apache.derby.jdbc.ClientDriver40] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2013-01-04 22:51:25,676 [main] ERROR o.a.c.loader.WebappClassLoader - The web application [/openmeetings] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn请教高手,这是什么问题?我已经把mysql-connector-java-5.1.22-bin.jar包导入到openmeetings\webapps\openmeetings\WEB-INF\lib目录下了。怎么解决?谢谢!!

The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but fa

05-03

现在用SSH框架开发一个博客项目。开发环境[code=text]win7 64bit myEclipse 10.x tomcat7.x jdbc:mysql-connector-java-5.1.25 struts2.0.x Hibernate3 Spring2.0.8 MySQL5.5[/code]。rn问题是这样的,每当我重新部署项目的时候,就会报这的提示信息:[code=text]五月 03, 2014 6:18:49 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: The web application [/personalblog] 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.rn五月 03, 2014 6:18:49 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: The web application [/personalblog] 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.rn五月 03, 2014 6:18:49 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/personalblog] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@62604ef8]) and a value of type [com.opensymphony.xwork2.inject.InternalContext[]] (value [[Lcom.opensymphony.xwork2.inject.InternalContext;@20e0ae3d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.[/code]。rn说是注册JDBC驱动,但是当Web应用程序关闭时无法注销.为了避免内存泄露,JDBC驱动被强制注销了。rn我Google了一下,好多人都遇到了这种情况,但是也没找到特别好的解决方案。故,特此来这里请求大家的帮助。先谢谢大家了。

没有更多推荐了,返回首页