Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10770

ClassNotFoundException while running hibernate code generation configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 3.3.0.Beta1
    • 3.3.0.M5
    • hibernate
    • None
    • Hide

      1. Create Java Project, Hibernate Console 4.0, HSQLDB 1.8
      2. Set Hibernate Code Generation Configuration - Domain code, Hibernate XML Mappings exporter

      • mark reverse engineer from JDBC Connection, fill package and create reveng.xml, I left strategy left ... there aren't even org.hibernate.cfg.reveng* classes for select strategy
        3 run code generation ... you will catch reported exception
      Show
      1. Create Java Project, Hibernate Console 4.0, HSQLDB 1.8 2. Set Hibernate Code Generation Configuration - Domain code, Hibernate XML Mappings exporter mark reverse engineer from JDBC Connection, fill package and create reveng.xml, I left strategy left ... there aren't even org.hibernate.cfg.reveng* classes for select strategy 3 run code generation ... you will catch reported exception

    Description

      Follow the steps for catch exception. I received 2 different ClassNotFoundExceptions net.sf.cglib.core.KeyFactory and org.hibernate.cfg.reveng.OverrideRepository. I think that from hibernate tools, the classes should be there. This is from error log:

      Error log
      eclipse.buildId=unknown
      java.version=1.6.0_26
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.jbds.product.product
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.jbds.product.product
      
      Error
      Wed Feb 01 10:43:11 CET 2012
      org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
      
      org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
      	at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:135)
      	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:268)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.reveng.OverrideRepository
      	at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0$3.execute(ConsoleExtension4_0.java:234)
      	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      	at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:248)
      	at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:224)
      	at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:154)
      	at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:118)
      	... 6 more
      

      Attachments

        Activity

          People

            dgeraskov Dmitry Geraskov (Inactive)
            ibek1@redhat.com Ivo Bek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: