Well, duh, I had to be in the Hibernate perspective to get these specail Run options to run the code generation.
However, still no joy.
org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:271) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:924) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1128) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:352) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:327) at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:254) ... 5 more
OK, which is it? incomplete or conflicting versions. Unfortunately, there isn't an option to see the actual classpath I'm running with. I've tried the default configuration (which includes Maven dependencies), the default plus hibernate-tools.jar from my Eclipse folder, and one I've built up myself. Can't get around this. This should be simpler. What am I missing.
|