Hi,
I have installed Eclipse 3.1 and then Installed latest JBOSS IDE files through update. Then
i downloaded hibernate tool "hibernate-tools-3.0.0.alpha4a" and placed it in plugins
directory.
Now the problem is when I tried to create the mapping files, it couldn't load the database
driver. Though i have added it in the lib directory and also added in build path of the
project.
I am trying to use MYSQL database and its driver is placed in build path. Moreover also
placed the driver in plugin directory. I am trying to reverse engineer and create java and
mapping files from Database schema.
!ENTRY org.hibernate.eclipse.console 4 4 2005-06-22 17:03:18.625
!MESSAGE Error under artifact generation
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database
driverclass (org.gjt.mm.mysql.Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:196)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:156)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration
(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish
(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0
(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run
(ArtifactGeneratorWizard.java:98)
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:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(AbstractClassLoader.java:78)
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:108)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:188)
... 6 more
!SUBENTRY 1 org.hibernate.eclipse.console 4 4 2005-06-22 17:03:18.625
!MESSAGE Problems while loading database driverclass (org.gjt.mm.mysql.Driver)
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database
driverclass (org.gjt.mm.mysql.Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:196)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:156)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration
(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish
(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0
(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run
(ArtifactGeneratorWizard.java:98)
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:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(AbstractClassLoader.java:78)
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:108)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:188)
... 6 more
!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2005-06-22 17:03:18.625
!MESSAGE Problems while loading database driverclass (org.gjt.mm.mysql.Driver)
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database
driverclass (org.gjt.mm.mysql.Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:196)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:156)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration
(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish
(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0
(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run
(ArtifactGeneratorWizard.java:98)
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:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(AbstractClassLoader.java:78)
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:108)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:188)
... 6 more
!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2005-06-22 17:03:18.625
!MESSAGE org.gjt.mm.mysql.Driver
!STACK 0
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(AbstractClassLoader.java:78)
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:108)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver
(ConsoleConfiguration.java:188)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:156)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration
(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish
(ArtifactGeneratorWizard.java:164)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0
(ArtifactGeneratorWizard.java:132)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run
(ArtifactGeneratorWizard.java:98)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
I hope someone will reply soon...
Sohaib
|