permaculture playing cards*
The moose likes Tomcat and the fly likes Problem with  the JBDC driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with  the JBDC driver" Watch "Problem with  the JBDC driver" New topic
Author

Problem with the JBDC driver

Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
Hello,

I am using Struts 2, Hibernate and Eclipse as IDE. If I start the server (Tomcat 6.0) and then modify some of the code and save (I have 'autodeploy on save' activated), after some time I always get this error:


INFO: Reloading this Context has started
Jul 22, 2010 12:23:37 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

SEVERE: 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.

Jul 22, 2010 12:23:37 PM org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread

SEVERE: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.

Jul 22, 2010 12:23:37 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap

....

In hibernate.cfg.xml I am using:



Does this mean that I am having a memory leak? Will I have problems with this application if I use it in production?

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

So, not really a Struts question. Moving.
Tamas Ragoncsa
Greenhorn

Joined: Feb 25, 2011
Posts: 6

This topic is discussed in detail here:
http://bugs.mysql.com/bug.php?id=36565

Tamas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with the JBDC driver
 
Similar Threads
Memory Leak after repeat deploy and undeploy
oracle apex problem. registering driver
jdbc connections not closing
Unload event for Tomcat
Tomcat startup problems (MySQL driver)