-->
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.  [ 5 posts ] 
Author Message
 Post subject: HibernateConsoleRuntimeException under artifact generation
PostPosted: Sun Jun 05, 2005 2:08 pm 
Newbie

Joined: Sun Jun 05, 2005 1:58 pm
Posts: 3
Hi guys!

I tried to found anything about my problem before posting but I couldn't! So, sorry if I am posting a question that has been already answered.

I am using Hibernate 3.0, Eclipse 3.1.0 and Hibernate tools 3.0 alpha 1 with MySQL database.

I create a configuration file(cfg.xml) and a console configuration. But then I get this exception under artifact generation:

Error under artifact generation
Reason:
org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading databse driver class(com.mysql.jdbc.Driver)


Then I tried to connect using good and old jdbc code to find out if the problem was with the Driver. And it was not. The connection worked fine.

Am I doing something wrong? Can anybody help?

Thanks,
Leo.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 2:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
did you add the driver jar to the classpath of the hibernate console as stated in the GUI and documentation ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 3:04 pm 
Newbie

Joined: Sun Jun 05, 2005 1:58 pm
Posts: 3
Sorry! I didn't add indeed.

But when I try, the drver jar does not appear in the add.. window of the conmfiguration console. And the jar is exported in my project. Is any more setting needed in order to add the driver jar to the console configuration?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 3:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the jar must be inside the project for the release you are using.

in cvs it can be external

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 3:09 pm 
Newbie

Joined: Sun Jun 05, 2005 1:58 pm
Posts: 3
Forget the last question. I added the driver jar.

It worked perfectly now!!!

Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.