在同一个tomcat下部署多个项目的时候,出现了如下警告:
2012-04-23 13:41:02,120 WARN (com.mchange.v2.c3p0.management.ActiveManagementCoordinator:56) - 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.
意思是C3P0Registry mbean已经被注册过啦!的确是已经在其他项目中已经对其进行了注册。
解决方案:将所有项目的将c3po和数据库驱动放到tomcat的lib下。
如果是单独一个使用c3p0的项目放在tomcat下,打出的日志是:2012-04-23 13:48:47,289 INFO (com.mchange.v2.c3p0.C3P0Registry:204) - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
英文:
We had this problem when we were trying to deploy multiple applications within same tomcat. So it was a case of multiple class loaders within same VM.
How did we solve this ?
We moved the jar files from WEB-INF of each folder to the tomcat/lib directly.
Files moved
c3p0-0.9.1.jar
mysql-connector-java-5.1.7-bin
This solved the problem.
We were also seeing some out of memory problems which are not happening right now.
Refer to C3P pool documentation
http://www.mchange.com/projects/c3p0/index.html
http://www.mchange.com/projects/c3p0/index.html
分享到:
相关推荐
META-INF/MANIFEST.MF ...com.mchange.v2.c3p0.C3P0ProxyConnection.class ...com.mchange.v2.c3p0.C3P0Registry.class com.mchange.v2.c3p0.ComboPooledDataSource.class com.mchange.v2.c3p0.ConnectionCustomizer.class
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.connection.C3P0ConnectionProvider] as strategy [org.hibernate.engine.jdbc.... ...
2020-11-27 11:26:11|localhost-startStop-1|INFO |com.mchange.v2.c3p0.C3P0Registry,204,banner|-> Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] 2020-11-27 11:26:11|...
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.connection.C3P0ConnectionProvider] as strategy [org.hibernate.engine.jdbc....
Files contained in registry-3.1.3.jar: META-INF/MANIFEST.MF com.ice.jni.registry.RegMultiStringValue.class com.ice.jni.registry.RegBinaryValue.class com.ice.jni.registry.RegistryException.class ...
This book is one-of-a-kind, giving the background of the Registry to help users develop an understanding of the structure of registry hive files, as well as information stored within keys and values ...
Registry Workshop is an advanced registry editor. It is a perfect replacement for RegEdit and RegEdt32 which shipped with Windows. In addition to all the standard features, Registry Workshop adds a ...
讲述了如何部署registry、registry-web的部署,以及registry-web如何管理registry私库的镜像上传、下载的授权、镜像删除、用户管理
docker官方镜像仓库registry离线包,使用docker load -i registry.tar
META-INF/MANIFEST.MF com.ice.jni.registry.HexNumberFormat.class com.ice.jni.registry.NoSuchKeyException.class com.ice.jni.registry.NoSuchValueException.class com.ice.jni.registry.RegBinaryValue.class ...
Registry
RegistryKey registryKey = Registry.openSubkey(Registry.HKEY_CURRENT_USER, Internet, RegistryKey.ACCESS_READ); // 注册表表项键 RegistryValue registryValue = registryKey.getValue("ProxyEnable"); ...
Advanced Registry Optimizer is PC maintenance software that helps to maintain integrity of Windows Registry. It provides a simple and effective solution to keep your PC running faster, cleaner, and ...
api-ms-win-core-registry-l1-1-0.dll适用于window10 、windows server2012 64位系统
赠送jar包:micrometer-registry-prometheus-1.8.2.jar 赠送原API文档:micrometer-registry-prometheus-1.8.2-javadoc.jar 赠送源代码:micrometer-registry-prometheus-1.8.2-sources.jar 包含翻译后的API文档...
Registry entries and MFC class that associates a file extension with a program.(20KB)
解决动态链接库ICE_JNIRegistry.dll位置放置问题,该jar包中已经...该压缩包中有regist.jar和registry源码,regist.jar是将registry-3.1.3的源码修改后重新编译的,不需要ICE_JNIRegistry.dll,直接调用regist.jar即可
Registry Workshop: Registry Workshop 是一款高级的注册表编辑工具,能够完全替代 WIndows 系统自带的 RegEdit 注册表编辑器。
Windows Registry Forensics 2nd 英文pdf
Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry:jar:1.15.3: Could not find artifact io.confluent:kafka-schema-registry-client:jar:6.2.2 in maven 安装本地...