Hello everybody.
I'm using Hibernate and C3P0 in my Content Management System.
I have installed 4 instances of the CMS to mantain 4 web sites. The java under each application is obiously the same while the static files and the db (mysql) are differentiated for every instance.
Under Tomcat, when I start the server, I'm receiving this warning at the startup of every app but the first, so from the second app to the last:
Code:
com.mchange.v2.c3p0.management.ActiveManagementCoordinator|WARN - 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.
Since only the first app doesn't cast this warning it is obvious that the next instances try to create their C3P0Registry and C3P0 complains about it.
The awful drawback of the problem is that the applications crash since memory leak...
I've tried to google the problem but I cannot find any good answer to configure my applications or C3P0 or Hibernate or Tomcat to work properly...
I feel that the problem has a very simple solution but I cannot find it, does anyone of you have any idea?
thank you in advance
bluedog