JFinal 在IDEA中用tomcat启动,报错,跪求解决

14-Nov-2017 09:35:33.518 信息 [C3P0PooledConnectionPoolManager[identityToken->1hge0zb9r1f3kvapjojchy|1eadcd14]-AdminTaskTimer] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1311)

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1299)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)

at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:1040)

at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1511)

at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1481)

at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1569)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:44)

at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:2093)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)


Exception in thread "C3P0PooledConnectionPoolManager[identityToken->1hge0zb9r1f3kvapjojchy|1eadcd14]-AdminTaskTimer" java.lang.NoClassDefFoundError: com/mchange/v2/resourcepool/BasicResourcePool$1DestroyResourceTask

at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:1040)

at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1511)

at com.mchange.v2.resourcepool.BasicResourcePool.removeResource(BasicResourcePool.java:1481)

at com.mchange.v2.resourcepool.BasicResourcePool.cullExpired(BasicResourcePool.java:1569)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1900(BasicResourcePool.java:44)

at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:2093)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)

Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1301)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)

... 8 more

Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1311)

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1299)

... 10 more

QQ截图20171114091010.pngQQ截图20171114091031.png

评论区

JFinal

2017-11-14 11:04

多个版本的 c3p0 互相干扰,处理干净一下,注意,如果是多个项目部署在同一个 tomcat,以及 tomcat 下的 lib 包下面有 c3p0 也会影响

热门反馈

扫码入社