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.