-->
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: Artifact Generation - Problems while loading database driver
PostPosted: Wed Mar 02, 2005 7:23 pm 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
Hibernate version: 3.0rc1
Eclipse 3.1m5
hibernate-tools-3.0alpha1.tar.gz
Database: mysql 3.23.58

Hi you all. I've got a problem with using hibernate-tools-3.0alpha1.tar.gz. The first and unsigninficant part is that when I try to save hibernate.cfg.xml file and an error shows up: "SaveFailed: Null". After that the file is saved however I can't understand where whis error comes from.

The worse thing is that I hava one ohter error which prevents me of using "Hibernate Artifact Generator". OK, I use the pluging from hibernate-tools and create a hibernate.cfg.xml file. After that I want to generate some hbm.xml files for the classes I have. However when try to do it this error comes:

Error under artifact generation
Reason:
org.hibernate.console.HibernateConsoleRuntimeException: problems while loading databse driverclass (org.gjt.mm.mysql.Driver)


Any ides how to fix this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 12, 2005 2:42 pm 
Newbie

Joined: Tue Apr 12, 2005 2:39 pm
Posts: 2
I have the same problem.

org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (oracle.jdbc.driver.OracleDriver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:195)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:155)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:128)
at org.hibernate.eclipse.console.actions.BuildSessionFactoryAction.doRun(BuildSessionFactoryAction.java:50)
at org.hibernate.eclipse.console.actions.ConsoleConfigurationBasedAction.run(ConsoleConfigurationBasedAction.java:47)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)

I'm running Eclipse 3.1M6.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 12, 2005 2:48 pm 
Newbie

Joined: Tue Apr 12, 2005 2:39 pm
Posts: 2
My bad, checked again. I didn't add the Oracle Driver jar in the conf


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 10:36 am 
Newbie

Joined: Sun Feb 26, 2006 10:23 am
Posts: 1
i also have this problem when i create hibernate Reverse engineering file.
i have checked the classpath

org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (oracle.jdbc.driver.OracleDriver)
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

please help me, thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 10:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so did you do the same as the previous solution ? Rememebering to add the jdbc drivers to the console configuration classpath ?

_________________
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.  [ 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.