警告处理 A C3P0Registry mbean is already registered. This probably means that an application using c3p.
来源:互联网 发布:淘宝漏洞1元6s的网址 编辑:程序博客网 时间:2024/06/05 03:13
遇到完整的警告信息如下:
- WARN 2010-11-06 19:04:37,270 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.
遇到此警告通常是在同一个web容器下部署了多个使用c3p0的项目(例如:tomcat下面部署了多个使用c3p0的webapp)。
解决的方法可以是:
1.如果你不使用JMX,那么你可以在src下建立一个c3p0.properties,内容如下:
com.mchange.v2.c3p0.management.ManagementCoordinator=com.mchange.v2.c3p0.management.NullManagementCoordinator
2.建议将项目内(例如:WebappX/WEB-INF/lib
)的c3p0的相关依赖包(C3P0的jar和JDBC driver的jar)删除,将这些包转移到容器的共享lib目录下(例如:$TOMCAT_HOME/lib
)
问题解决。
0 0
- 警告处理 A C3P0Registry mbean is already registered. This probably means that an application using c3p.
- 警告处理 A C3P0Registry mbean is already registered. This probably means that an application using c3p.
- 警告: A C3P0Registry mbean is already registered. This probably means that an application...
- A C3P0Registry mbean is already registered.This probably means that an application using c3p0的警告信息处理
- Trying to install an already registered mbean
- Trying to install an already registered mbean
- It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be
- matplotlib:This probably means that Tcl wasn't installed properly.
- A 2007 Office system application does not load an add-in that is developed by using VSTO
- If no other git process is currently running, this probably means a git process crashed in this repo
- If no other git process is currently running, this probably means a git process crashed in this repo
- If no other git process is currently running, this probably means a git process crashed in this rep
- If no other git process is currently running, this probably means a git process crashed in this repo
- kafka : A broker is already registered on the path /brokers/ids/1006. This proba
- 奇怪的错误:This generally means that another instance of this process was already running or is hung in t
- 报错:This generally means that another instance of this process was already running or is hung in the
- This generally means that another instance of this process was already running or is hung in the deb
- This generally means that another instance of this process was already running or is hung in the deb
- boost::bind 介绍
- SSH框架总结(框架分析+环境搭建+实例源码下载)
- Spring注入与无参构造函数自定义构造函数
- 实验三(1) 顺序栈的验证实验
- 数据的批量删除
- 警告处理 A C3P0Registry mbean is already registered. This probably means that an application using c3p.
- Android NDK开发环境搭建(window 7 64位系统)
- MyBatis项目源代码导入到Eclipse
- textview跑马灯效果
- JPA关系映射
- javascript实现日期时间动态显示
- WPF总述
- ssh:对于java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I错误解决
- NOSQL-MongoDB-存储。