Jfinal项目中的c3p0问题

andying 发布于 2014/10/20 09:54
阅读 582
收藏 0

@JFinal 你好,想跟你请教个问题:

系统在启动的时候c3p0报警告信息“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.”

 

当一个tomcat下启动两个或两个以上使用了C3P0的系统时,就会出现以上警告信息,请问在Jfinal项目中如何设置才能避免以上问题?thks.

 

加载中
0
JFinal
JFinal
    这个问题不必在意,是 tomcat 在 context stop 之后,无法移除 c3p0 的类信息造成的。可以换 druid 解决
1
buliugu
buliugu
c3p0相关的jar转移到tomcat下的lib文件夹
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部