-->
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: Eclipse Generate mappings (hbm.xml)
PostPosted: Thu Mar 24, 2005 12:25 pm 
Newbie

Joined: Wed Mar 23, 2005 2:32 pm
Posts: 12
Basic settings for artifact generation

Plugin version:3.0 alpha 1, 25. January 2005
Database: DB2 8.1

Only select "Generate mappings (hbm.xml) and receive the following exception:
TIA.

org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (COM.ibm.db2.jdbc.app.DB2Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:201)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:155)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:225)
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:111)
Caused by: java.sql.SQLException: java.lang.UnsatisfiedLinkError: Native Library C:\SQLLIB\BIN\db2jdbc.dll already loaded in another classloader
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at java.lang.Class.newInstance3(Class.java:367)
at java.lang.Class.newInstance(Class.java:305)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:189)
... 6 more


Top
 Profile  
 
 Post subject: An answer and a question
PostPosted: Wed May 04, 2005 1:12 pm 
Newbie

Joined: Wed May 04, 2005 12:44 pm
Posts: 3
Did you ever get this to work? I assume you probably did by now, but just in case someone else comes across this, you have to make sure that you have specified the path to your JDBC driver in the Classpath for your console configuration.

I also am continuing to have a problem where when I use the "Generate mappings (hbm.xml)" to try and generate mappings from my java classes, the only thing that gets generated is the GeneralHbmSettings.hbm.xml file and it doesn't have much of anything in it.

If you got past this issue, please let me know.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 12:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Use XDoclet to generate mappings from the Java classes (Domain Model). Otherwise you can get the tool to generate both Java and Mappings from the database.


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.