Multiple applications having c3p0 configuration gives warning

前端 未结 2 2033
梦谈多话
梦谈多话 2020-12-28 22:13

Hi
I have two web application under one tomcat. Both are using hibernate 3.2.1 and c3p0 0.9.1.2. While the second application gets deployed, I always get the following w

相关标签:
2条回答
  • 2020-12-28 22:57

    To avoid the C3P0Registry from being loaded and registered multiple times (when deploying multiple webapps, when reloading a given webapp), my recommendation would be to move the C3P0 JAR (and the JDBC driver) from the Webapp classloader (WebappX/WEB-INF/lib) to the Common classloader ($TOMCAT_HOME/lib).

    0 讨论(0)
  • 2020-12-28 22:58

    If you dont want c3p0 exposed through JMX then you could do:

    com.mchange.v2.c3p0.management.ManagementCoordinator=com.mchange.v2.c3p0.management.NullManagementCoordinator
    
    0 讨论(0)
提交回复
热议问题