-->
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: Problem loading database driver in Hibernate Toools 3.1 beta
PostPosted: Mon Jun 26, 2006 5:31 am 
Newbie

Joined: Mon Jun 26, 2006 4:48 am
Posts: 1
I am trying to create reverse engineering file using Hibernate Tools wizard: I get the following dialog box titled: Lazy tree error.

The message: Error while fetching children
Reason:
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass(com.ibm.db2.jcc.DB2Driver)

Clicking the "Details" button on the dialog gives me:

Problems while loading database driverclass(com.ibm.db2.jcc.DB2Driver)
java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver

The database driver jar is in my project's classpath

I can otherwise access the database. What can I do?

My configuration:
Eclipse 3.2
Hibernate 3
Hibernate Tools 3.1 beta 5
DB2 database

Thanks in anticipation for the help!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 2:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
do as the docs and dialog says and put driver.jar in the console configuration classpath (also remember to put the classes build directory in there)

_________________
Max
Don't forget to rate


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.