问题: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/
这样 没有再报错!
本文发布于:2024-01-27 17:41:27,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17063484871702.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |