Tomcat 7 memory Leak due to mySQL
===

I have one Application. I am using tomcat 7.
Currently I am working on Memory Leak Problem of MySQL.
I have written Code for that also in ServletContextListener 
My code is:

     try {
                 java.sql.Driver mySqlDriver = DriverManager.getDriver("jdbc:mysql://localhost:3306/");
                 DriverManager.deregisterDriver(mySqlDriver);
             } catch (SQLException ex) {
                 logger.info("Could not deregister driver:".concat(ex.getMessage()));
             }
             catch(Exception ex)
             {
            	 ex.printStackTrace();
             } 

Still I am facing below Exception while restarting the Tomcat Server

ul 20, 2012 1:24:50 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load com.mysql.jdbc.ProfilerEventHandlerFactory.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1562)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
	at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4425)
	at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1607)
	at snaq.db.CacheConnection.release(CacheConnection.java:951)
	at snaq.db.ConnectionPool.destroy(ConnectionPool.java:308)
	at snaq.db.ConnectionPool.destroy(ConnectionPool.java:25)
	at snaq.util.ObjectPool.destroyObject(ObjectPool.java:662)
	at snaq.util.ObjectPool.purge(ObjectPool.java:1064)
	at snaq.util.ObjectPool$Cleaner.run(ObjectPool.java:1287)
Exception in thread "Cleaner-thread-0" java.lang.NoClassDefFoundError: com/mysql/jdbc/ProfilerEventHandlerFactory
	at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4425)
	at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1607)
	at snaq.db.CacheConnection.release(CacheConnection.java:951)
	at snaq.db.ConnectionPool.destroy(ConnectionPool.java:308)
	at snaq.db.ConnectionPool.destroy(ConnectionPool.java:25)
	at snaq.util.ObjectPool.destroyObject(ObjectPool.java:662)
	at snaq.util.ObjectPool.purge(ObjectPool.java:1064)
	at snaq.util.ObjectPool$Cleaner.run(ObjectPool.java:1287)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.ProfilerEventHandlerFactory
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
	... 8 more

Please let me know how to solve this exception???

