Every time,when i copy the .class file from myEclipse to Tomcat\webapps\my\WEB-INF\classes file.MyEclipse always give me the informaiton
信息: Reloading Context with name [/my] has started
2012-4-22 13:30:14 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/my] 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.
Could you tell me the reason and how to solve this problem?
Most JDBC drivers don't unregister themselves, so this message is pretty normal. But it's unlikely to be a problem unless you restart web apps many times between Tomcat restarts. What's more, in this case the message actually tells you that the driver has been unregistered - so there is no leak.