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
|