[jbosstools-issues] [JBoss JIRA] (JBIDE-10770) ClassNotFoundException while running hibernate code generation configuration

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Wed Feb 1 05:21:50 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov resolved JBIDE-10770.
-------------------------------------

    Fix Version/s: 3.3.0.Beta1
       Resolution: Duplicate Issue


This is a dublicate of JBIDE-10503.

Now cg lib dependency is removed form hibernate tools.

                
> ClassNotFoundException while running hibernate code generation configuration
> ----------------------------------------------------------------------------
>
>                 Key: JBIDE-10770
>                 URL: https://issues.jboss.org/browse/JBIDE-10770
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 3.3.0.M5
>         Environment: Linux 64b, HSQLDB 1.8, JBDS 5.0.0.M5
>            Reporter: Ivo Bek
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.Beta1
>
>
> 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:
> {code:title=Error log|borderStyle=solid}
> 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
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list