Please take care to close all PooledDataSources

问题:tomcat启动时报错

<A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.>

  这个问题网上有一些解答。

一般是重复加载了多次 c3p0连接池,导致的。

但是我只有一个工程,并且只配置了一次连接池!

分析可能是项目本身及tomcat 加载了两次吧,暂时这样认为吧!

 

解决方法可以把 数据库驱动和c3p0驱动 放到 tomcat/ lib/

这样 没有再报错!

你可能感兴趣的:(dataSource)