Issue
I am using Netbeans as my IDE, currently developing an Web app using:
- Spring 3
- Hibernate 3
- MySQL
I'm relying on netbeans to build the project(in contrast to others using maven). On deployment, the console shows this error:
...noClassDefFoundError: com/mchange/v2/c3p0/DataSources
I've already added the jar file to the Hibernate library. (And oh, this is my first time asking here. Needed 10 points to post the screenshot.)
So I'm confused why would it need THAT class. (whatever that class does.) Ideas why did this happen?
Solution
I've finally manage to solve the problem. The c3p0 distribution has 3 .jar files on the lib directory. I initially added the "c3p0*.jar" only. Which in turn produces the error. It needs the OTHER jar file, mchange-commons*.jar in the directory. Hope this helps to others stuck in here.
Answered By - Gx.Zero