警告: A C3P0Registry mbean is already registered. This probably means that an application...
来源:互联网 发布:python php 比较 编辑:程序博客网 时间:2024/06/05 00:36
问题描述:
六月 23, 2017 9:16:59 下午 com.mchange.v2.log.MLog <clinit>信息: MLog clients using java 1.4+ standard logging.六月 23, 2017 9:16:59 下午 com.mchange.v2.c3p0.C3P0Registry banner信息: Initializing c3p0-0.9.2-pre1 [built 27-May-2010 01:00:49 -0400; debug? true; trace: 10]六月 23, 2017 9:16:59 下午 com.mchange.v2.c3p0.management.ActiveManagementCoordinator attemptManageC3P0Registry警告: 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.六月 23, 2017 9:16:59 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 2sphqx9o1n4kyee1y0dhb6|261b7059, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2sphqx9o1n4kyee1y0dhb6|261b7059, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, jdbcUrl -> jdbc:mysql://localhost:3306/bookstore, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 8, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 2, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, statementDestroyerNumActiveThreads -> -1, statementDestroyerNumConnectionsInUseAllUsers -> -1, statementDestroyerNumConnectionsInUseDefaultUser -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumConnectionsWithDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumIdleThreads -> -1, statementDestroyerNumTasksPending -> -1, statementDestroyerNumThreads -> -1, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
出现此问题的原因:
通常是由于在同一个web容器下部署了多个使用c3p0的项目(如:在tomcat\ webapps下面部署了多个使用c3p0的项目)
我遇到这个问题的原因是在tomcat里部署了两个使用c3p0的项目
解决方法:
1.若你不使用JMX,那你可以在src下建一个c3p0.properties文件,内容:
com.mchange.v2.c3p0.management.ManagementCoordinator=com.mchange.v2.c3p0.management.NullManagementCoordinator
2.建议将项目内的c3p0的相关依赖包 (C3P0的jar和JDBC driver的jar) 删除,将这些包转移到容器的共享lib目录下(tomcat\lib)。
参考:http://blog.csdn.net/shootyou/article/details/8129952
阅读全文
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.
- 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
- This generally means that another instance of this process was already running or is hung in the deb
- Oracle 数据库还原代码步骤
- Redis详解(原理,安装,配置,使用,命令)
- pycharm跳转到定义和声明,出现的问题:Cannot find declaration to go to
- Java中EventQueue.invokeLater干什么用的
- APUE习题3.2/3.6
- 警告: A C3P0Registry mbean is already registered. This probably means that an application...
- Servlet
- 第三方集成百度地图定位
- 鼠标移到图片上时,显示鼠标位置
- 装饰器模式
- 并发基础_5_并发_ThreadLocal
- Java面试题集(第七部分)(151-180)
- 第二章 灰度变换与空间滤波(续)
- 6.22 JSP,解决中文乱码