web项目异常A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gg12365gg/article/details/51338129
异常:
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驱动程序已被强行注册。

在服务器保持运行的状态中,redeploy(重新部署)这个项目, 就出现该异常!

解决办法:

将整个项目stop之后再redeploy,就不会报该异常!
阅读更多

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了一下,好多人都遇到了这种情况,但是也没找到特别好的解决方案。故,特此来这里请求大家的帮助。先谢谢大家了。

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