C3P0Registry mbean is already registered

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.”

 

 

 

 

刚刚在启动resin服务器的时候,报错如上,重启还是报错。

框架是使用的spring3,hibernate3

解决方式:

对 xml配置:

 <bean id="dataSource"  class="com.mchange.v2.c3p0.ComboPooledDataSource"  destroy-method="close">

如果还是报错,那就 删掉resin webapp下的所有项目,对自己正使用的项目进行重新部署,重启resin OK 了

 

你可能感兴趣的:(bean,xml,框架)