[
https://issues.jboss.org/browse/JBIDE-14305?page=com.atlassian.jira.plugi...
]
Andrei Ivanov edited comment on JBIDE-14305 at 9/9/14 11:13 AM:
----------------------------------------------------------------
When I remove the logging deps in pom.xml, I get a new exception :(
{noformat}
java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.SimpleHash
at org.hibernate.tool.hbm2x.TemplateHelper.init(TemplateHelper.java:64)
at org.hibernate.tool.hbm2x.AbstractExporter.setupTemplates(AbstractExporter.java:140)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
at org.jboss.tools.hibernate.proxy.ExporterProxy.start(ExporterProxy.java:70)
at
org.hibernate.eclipse.console.common.ConsoleExtension$1.execute(ConsoleExtension.java:219)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
at
org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:182)
at
org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:883)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
at
org.jboss.tools.hibernate.jpt.ui.wizard.GenerateEntitiesWizard$1.runInWorkspace(GenerateEntitiesWizard.java:98)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{noformat}
After I install FreeMarker IDE it works, so I guess Hibernate Tools needs to declare a
dependency for freemarker.
Actually, now I see from the 1st exception that freemarker is present, but it just
doesn't see the class {{freemarker.template.SimpleHash}} somehow. Very weird.
was (Author: andrei.ivanov):
When I remove the logging deps in pom.xml, I get a new exception :(
{noformat}
java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.SimpleHash
at org.hibernate.tool.hbm2x.TemplateHelper.init(TemplateHelper.java:64)
at org.hibernate.tool.hbm2x.AbstractExporter.setupTemplates(AbstractExporter.java:140)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
at org.jboss.tools.hibernate.proxy.ExporterProxy.start(ExporterProxy.java:70)
at
org.hibernate.eclipse.console.common.ConsoleExtension$1.execute(ConsoleExtension.java:219)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:108)
at
org.hibernate.eclipse.console.common.ConsoleExtension.runExporters(ConsoleExtension.java:182)
at
org.hibernate.eclipse.console.common.ConsoleExtension.launchExporters(ConsoleExtension.java:110)
at
org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:266)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:883)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
at
org.jboss.tools.hibernate.jpt.ui.wizard.GenerateEntitiesWizard$1.runInWorkspace(GenerateEntitiesWizard.java:98)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{noformat}
After I install FreeMarker IDE it works, so I guess Hibernate Tools needs to declare a
dependency for freemarker.
Error popup when runing schema ddl with Hibernate Configurations
-----------------------------------------------------------------
Key: JBIDE-14305
URL:
https://issues.jboss.org/browse/JBIDE-14305
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Reporter: labdoui labdoui
Assignee: Koen Aers
Priority: Minor
Fix For: 4.2.0.CR1
Using Hibernate 4, and slf4j 1.7.2, I can't runing my ddl schema
to reproduce the problem just explore the database from hibernate console
java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:26)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:116)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:107)
at
org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:63)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)