C3P0 导致 Tomcat无法关闭?

----请版主手下留情啊,这个问题目前搜索不到,要是能搜索到也不会来讨论区,别带点问题的帖子都当入门提问贴封了隐藏了----

项目中用到C3P0,也不知道什么时候开始发现,web app 在Eclipse或者Netbeans启动后,然后去关闭Tomcat,无法关闭。
异常如下:
信息: Stopping Coyote HTTP/1.1 on http-8888
2008-11-14 14:40:12 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already.  Could not load com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.  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:1246)
Exception in thread "Timer-0" java.lang.NoClassDefFoundError: com/mchange/v2/resourcepool/BasicResourcePool$1DestroyResourceTask
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:980)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1406)
        at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:980)
        at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1378)
        at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1406)
        at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1462)
        at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1378)
        at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:32)
        at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1462)
        at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1937)
        at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:32)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1937)
        at java.util.TimerThread.run(Timer.java:462)
        at java.util.TimerThread.mainLoop(Timer.java:512)
Caused by: java.lang.ClassNotFoundException: com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask
        at java.util.TimerThread.run(Timer.java:462)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
2008-11-14 14:40:15 org.apache.catalina.loader.WebappClassLoader loadClass
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)


我的C3P0配置文件:
<c3p0-config>
	<default-config>
		<property name="acquireIncrement">4</property>
		<property name="acquireRetryAttempts">10</property>
		<property name="acquireRetryDelay">1000</property>
		<property name="autoCommitOnClose">false</property>
		<property name="automaticTestTable">TestConsult_pro</property>
		<property name="breakAfterAcquireFailure">true</property>
		<property name="checkoutTimeout">10000</property>
		<!-- property name="idleConnectionTestPeriod">60</property-->
		<property name="maxStatementsPerConnection">10</property>
		<property name="initialPoolSize">4</property>
		<property name="maxIdleTime">30</property>
		<property name="maxPoolSize">64</property>
		<property name="numHelperThreads">10</property>
		<!-- property name="propertyCycle">300</property-->
		<property name="testConnectionOnCheckout">false</property>
		<property name="testConnectionOnCheckin">false</property>
		<property name="usesTraditionalReflectiveProxies">false</property>
	</default-config>
</c3p0-config>


JavaEye上搜索了相关问题,没有什么收获,不知有JavaEye网友碰到过没有。
这位GG(http://japi.iteye.com/blog/243702)倒是收集了相关C3P0的一些错误解决方案,基本都试过了。
由于对C3p0也没有过多的了解,这次项目也第一次使用,目前丈二和尚摸不着头脑,找不到问题所在,请大家帮忙分析下。

你可能感兴趣的:(java,apache,tomcat,Access,Netbeans)