-->
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: Unable to load DB Driver (Eclipse+Hibernate Tools)
PostPosted: Mon Jun 27, 2005 1:22 am 
Newbie

Joined: Tue Jun 07, 2005 2:29 am
Posts: 8
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 3:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
seems like you can't read what is said about Bump Postings!

hint: you shouldn't bump!

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