[jbosstools-issues] [JBoss JIRA] (JBIDE-13119) Code generation doesn't work when Hibernate 4.0 is used
Jiri Peterka (JIRA)
jira-events at lists.jboss.org
Tue Nov 20 11:19:21 EST 2012
[ https://issues.jboss.org/browse/JBIDE-13119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiri Peterka updated JBIDE-13119:
---------------------------------
Workaround Description: Hibernate 3.5 or 3.6 version can be used in hibernate configuration console for a code generation.
> Code generation doesn't work when Hibernate 4.0 is used
> -------------------------------------------------------
>
> Key: JBIDE-13119
> URL: https://issues.jboss.org/browse/JBIDE-13119
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 4.0.0.CR1
> Environment: JBDS 6.0.0.CR1
> Reporter: Jiri Peterka
> Assignee: Dmitry Geraskov
> Priority: Blocker
> Fix For: 4.0.0.CR1
>
>
> {code}
> 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:147)
> at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
> at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
> at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
> at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.tool.Version
> at org.hibernate.tool.hbm2x.TemplateHelper.setupContext(TemplateHelper.java:215)
> at org.hibernate.tool.hbm2x.AbstractExporter.setupContext(AbstractExporter.java:147)
> at org.hibernate.tool.hbm2x.POJOExporter.setupContext(POJOExporter.java:44)
> at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:94)
> at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0$2.execute(ConsoleExtension4_0.java:201)
> at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
> at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
> at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:174)
> at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
> ... 6 more
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list