Multiple applications having c3p0 configuration gives warning

前端 未结 2 2032
梦谈多话
梦谈多话 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).

提交回复
热议问题