八月 08, 2012 5:05:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/gjdjy] 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.-----------------------------------------------------------------
说明,只要一连接数据库,在tomcat关闭的时候,就报这个错误。没有用框架。直接serlet的程序。
严重: The web application [/gjdjy] 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.-----------------------------------------------------------------
说明,只要一连接数据库,在tomcat关闭的时候,就报这个错误。没有用框架。直接serlet的程序。
如果是自己写的JDBC,那么可以写代码手工注销驱动。
总的来说这个问题近期比较常见,楼主参考下:
http://stackoverflow.com/questions/3320400/to-prevent-a-memory-leak-the-jdbc-driver-has-been-forcibly-unregistered
不会,你连Tomcat都关掉了,还有啥不能释放的