After upgrading to Apache Tomcat/6.0.26 I've encountered a problem when closing the application:
My system:Code:05-04-2010 16:48:01 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.
My data source is defined as follows:Code:Apache Tomcat/6.0.26 - 1.6.0_18-b07 - Windows 7 6.1 amd64
I'm using the MySQL JDBC driver and the latest version of the Spring Framework.Code:<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${jdbc.driver}" /> <property name="url" value="${jdbc.url}" /> <property name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> <property name="validationQuery" value="SELECT 1" /> <property name="testOnBorrow" value="true" /> </bean>
Is this a problem with the Spring Framework or am I not using it correctly? I suppose I could manually unregister the driver upon shutdown.
Any tips/help is much appreciated.![]()


Reply With Quote
