-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: configure hibernate.cfg.xml with c3po
PostPosted: Sat Jul 21, 2007 12:10 am 
Newbie

Joined: Fri Jul 20, 2007 11:54 pm
Posts: 2
Okay, I've looked at several examples, blah, blah, blah, but I'm having problems adding c3po to my hibernate.cfg.xml.

This is the exception:
java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/DataSources
at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:154)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
.
.
.

I've added the c3po jar to my class path but when I look in com/mchange there is only a bundle.properties file. By the way I'm using netbeans ide, if that helps.

If anyone could help with an example, hints, anything, I would appreciate it.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 21, 2007 12:34 pm 
Beginner
Beginner

Joined: Wed Sep 06, 2006 12:08 pm
Posts: 48
Location: Warsaw - Poland - Europe - Milky Way
Are you sure you have added c3p0-0.9.1.jar JAR file at your CLASSPATH?
This file (c3p0-0.9.1.jar) is in lib directory of Hibernate Core distribution.

Regards,
Adam Wozniak

(rate if this helps)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.