Steve Waldman - 2007-01-02

Logged In: YES
user_id=175530
Originator: NO

Hi. So this is a question of where you put the c3p0 library code vs where you put the drivers... Tomcat uses several different classloaders, and it's possible that c3p0 cannot load some code that your web app can load. I expect to add some sort of API that would let apps register classloaders and/or classes to help c3p0 find resources it will be asked to load that may not be visible using the ClassLoader that loaded c3p0, but this will have to wait for c3p0-0.9.2. In the meantime, work around this by making sure that drivers and other classes c3p0 may need are located in the same directory on Tomcat.

Good luck!