`
bozch
  • 浏览: 460573 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

A C3P0Registry mbean is already registered

阅读更多

在同一个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

分享到:
评论

相关推荐

    c3p0-0.9.5-pre1,hamcrest-core-1.3的jar包

    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

    hibernate3.0+c3p0 重新自动连接

    `c3p0`是一个开源的JDBC连接池,它实现了数据源和JNDI绑定,支持JDBC3规范和JDBC2的标准扩展。本篇文章将深入探讨`Hibernate3.0`与`c3p0`的整合,以及它们如何实现自动重连机制。 `Hibernate3.0`是一个强大的对象...

    Hibernate结合C3P0的小例子

    而C3P0则是一个开源的JDBC连接池,它提供了数据库连接的管理,提高了数据库访问的性能和效率。在本教程中,我们将深入探讨如何将Hibernate与C3P0结合,实现一个高效、稳定的数据库连接管理。 首先,我们需要了解C3P...

    HIbernate4.3.6整合c3p0所需jar

    Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.connection.C3P0ConnectionProvider] as strategy [org.hibernate.engine.jdbc....

    HIbernate4.3.6-c3p0所需jar.rar

    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|...

    Java registry,com.ice.jni.registry

    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 ...

    Registry Workshop 5.0.0

    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 ...

    docker registry与registry-web端管理部署.docx

    讲述了如何部署registry、registry-web的部署,以及registry-web如何管理registry私库的镜像上传、下载的授权、镜像删除、用户管理

    jmx 实例 rmi mbean

    5. **连接到RMI注册表**: 在客户端,使用` LocateRegistry.getRegistry()`找到RMI注册表,并通过`MBeanServerConnection`连接到远程的MBeanServer。 6. **操作MBean**: 一旦连接建立,就可以使用`...

    docker registry离线镜像

    docker官方镜像仓库registry离线包,使用docker load -i registry.tar

    Registry Workshop: Registry Workshop 2.5绿色版

    **Registry Workshop:超越标准注册表编辑器的利器** 在Windows操作系统中,注册表是系统配置的核心,存储着系统和应用程序的大量关键设置。虽然Windows自带的RegEdit是默认的注册表编辑器,但它功能相对有限,无法...

    java读写注册表jar包,com.ice.jni.registry

    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 ...

    RemoteRegistry服务修复

    远程注册表服务(Remote Registry)是Windows操作系统中的一个重要组件,主要功能是允许远程用户修改本地计算机的注册表设置。在日常的系统管理和网络维护中,这项服务对于远程诊断和修复问题,尤其是对于IT管理员和...

    docker registry私库与registry-web管理端部署.docx

    讲述了如何部署registry、registry-web的部署,registry-web是如何管理registry私库的镜像上传、下载的授权、镜像删除、用户管理,提供用户认证的

    registry.jar java读写注册表的开源库

    `registry.jar`是一个专门为Java设计的开源库,它允许开发者在Java应用程序中方便地访问和修改Windows注册表。这个库名为`registry3.1.3.jar`,包含了源代码,使得开发者可以深入理解其内部工作原理,同时也提供了`...

    api-ms-win-core-registry-l1-1-0.dll

    api-ms-win-core-registry-l1-1-0.dll适用于window10 、windows server2012 64位系统

    docker的registry镜像

    dockerhub经常访问不了,特地将registry下载到本地,供大家学习使用

    registry64.rar

    RegistryKey registryKey = Registry.openSubkey(Registry.HKEY_CURRENT_USER, Internet, RegistryKey.ACCESS_READ); // 注册表表项键 RegistryValue registryValue = registryKey.getValue("ProxyEnable"); ...

Global site tag (gtag.js) - Google Analytics