-->
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.  [ 3 posts ] 
Author Message
 Post subject: Error under artifact generation
PostPosted: Mon May 09, 2005 2:24 pm 
Newbie

Joined: Tue May 03, 2005 11:59 am
Posts: 4
Hello,

I'm a new hibernate user. I need to reverse enginner our database, and I'm trying to use the 3.0 Tools.
I'm using Eclipse 3.1M6, Hibernate3.0 tools and JBoss IDE 1.4.1.e31-jre1.5. and mySQL database.

I' following the doc, and I create cfg.xml and console configuaration.
I added the mySql jdbc driver to my classpath with add external jar in project properties. When I'm trying to run the Arficats I get the following message.



org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (org.gjt.mm.mysql.Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:195)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:155)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:205)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:361)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:326)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:74)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:187)



I need some advice. I don't know what I'm doing wrong.

Thanks,

George


Top
 Profile  
 
 Post subject: Artifact Runtime-Exception
PostPosted: Tue May 10, 2005 12:38 am 
Newbie

Joined: Sun May 08, 2005 2:48 am
Posts: 2
Hi,
you have to add the driver's classpath in the artifact generator's wizard, too.

According to your post I think you added it only in the project configuration.

I hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 9:08 am 
Newbie

Joined: Tue May 03, 2005 11:59 am
Posts: 4
Thanks for your tip.
I was thinking that is working in the same way with the project. If the driver is in class path will be find by default.

George


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