-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Code Generation don't works
PostPosted: Fri Jun 16, 2006 4:41 am 
Beginner
Beginner

Joined: Mon Dec 05, 2005 4:15 am
Posts: 36
I try to generate the Java domain objects from existing database, as it in this article: http://www.javamagazin.de/itr/online_ar ... id,11.html described. I use JBossIDE 1.5 Bundle. I can make all steps till Code Generation. It reads the database schema correctly. But, if I try to genarate the code, I get an error:

Code:
org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find  with one argument delegate constructor
  java.lang.ClassNotFoundException:

    java.lang.ClassNotFoundException:


this exception I get with any possible generation configuration. Only if I deactivate the checkbox "Reverse engineer from JDBC connection", it throws no errors. And, althought I turned the log level in the hibernate-log4j.properties to DEBUG, it tells me nothing about this error and this problem, I get no stack trace, I don't know even which class it missed!
The error log from the starting of the code generation till the cancelling through the error is following:

Code:
!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:28.984
!MESSAGE DEBUG Worker-0 org.hibernate.util.DTDEntityResolver - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath under org/hibernate/

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.15
!MESSAGE DEBUG Worker-0 org.hibernate.util.DTDEntityResolver - found http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath

!ENTRY org.hibernate.eclipse 1 20000 2006-06-16 11:40:29.62
!MESSAGE INFO Worker-0 org.hibernate.cfg.Configuration - configuring from XML document

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.connection.password=TIGER

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.connection.url=jdbc:oracle:thin:@MYHOST:1521:orcl

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.connection.username=SCOTT

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.default_catalog=CATAL1

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.default_schema=SCOTT

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.78
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - hibernate.dialect=org.hibernate.dialect.OracleDialect

!ENTRY org.hibernate.eclipse 1 20000 2006-06-16 11:40:29.78
!MESSAGE INFO Worker-0 org.hibernate.cfg.Configuration - Configured SessionFactory: null

!ENTRY org.hibernate.eclipse 1 10000 2006-06-16 11:40:29.93
!MESSAGE DEBUG Worker-0 org.hibernate.cfg.Configuration - properties: {java.vendor=Sun Microsystems Inc., org.osgi.supports.framework.extension=true, hibernate.connection.url=jdbc:oracle:thin:@HOST:orcl, sun.management.compiler=HotSpot Client Compiler, osgi.framework.beginningstartlevel=1, os.name=Windows XP, sun.boot.class.path=C:\Programme\Java\jre1.5.0_05\lib\rt.jar;C:\Programme\Java\jre1.5.0_05\lib\i18n.jar;C:\Programme\Java\jre1.5.0_05\lib\sunrsasign.jar;C:\Programme\Java\jre1.5.0_05\lib\jsse.jar;C:\Programme\Java\jre1.5.0_05\lib\jce.jar;C:\Programme\Java\jre1.5.0_05\lib\charsets.jar;C:\Programme\Java\jre1.5.0_05\classes, osgi.ws=win32, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_05-b05, osgi.instance.area=file:/C:/Eigene Dateien/JBossIDEProjekte/, user.name=user, org.osgi.framework.system.packages=javax.accessibility,javax.activity,........}


Can anybody help me?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 3:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use jbosside 1.6 (or at least a more uptodate hibernate tools ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 6:06 am 
Beginner
Beginner

Joined: Mon Dec 05, 2005 4:15 am
Posts: 36
I have updated my Eclipse IDE with automatic updates manager to 1.6GA. The version of Hibernate Tools is 3.1.0 beta 3. This has not helped, I get the same error.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 8:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
do you have the console configuraiton path set to the correct classpath for the reverse engineering stragy you have set ?

if you haven't set any reverse engineering strategy then i'm quite sure something is "screwed" in your eclipse/hibernate tools mix - try and run eclipse with the -clean argument and if that does not work try and do a clean install.

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