Vaibhav95g / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

tomcat can't unregister JDBC Driver in web Listener when application stopped. #392

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

h2 version : 1.3.166
tomcat version : 7.0.27

netbeans ide show me following message whenever redeploy.

2012. 4. 17 오후 5:38:32 org.apache.catalina.loader.WebappClassLoader 
clearReferencesJdbc
Severe: The web application [/abc] registered the JDBC driver [org.h2.Driver] 
but failed to unregister it when the web application was stopped. To prevent a 
memory leak, the JDBC Driver has been forcibly unregistered

i was coded following line in web listener contextInitialized() method.

cp = JdbcConnectionPool.create(url, user, password);

and in contextDestroyed() method.

cp.dispose();

Original issue reported on code.google.com by mug...@gmail.com on 17 Apr 2012 at 9:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This should be fixed in H2 version 1.3.168 

Original comment by thomas.t...@gmail.com on 30 Nov 2012 at 6:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Still getting "failed to unregister" warning on H2 1.3.173 and Tomcat 7.0.47. 
Using DbStarter to start/stop H2.

Original comment by burran...@gmail.com on 31 Oct 2013 at 12:10

GoogleCodeExporter commented 9 years ago
OK, I will re-open the issue. I didn't try to reproduce the problem however, so 
I will set the status to "New".

Original comment by thomas.t...@gmail.com on 18 Dec 2013 at 7:29