Issue Type: Bug Bug
Affects Versions: 3.6.0.CR1
Assignee: Unassigned
Attachments: config_screen1.png, config_screen2.png, config_screen3.png, config_screen4.png, plugin_versions.png, user_library.png
Created: 16/Dec/12 8:03 AM
Description:

I'm having two major troubles related to Hibernate Tools + Dali integration. In this post I will expose only one of the as it fully concerns Hibernate Tools.

My project is Maven based. For persistence, I have chosen to use Hibernate + JPA, and to ease the creation of the Java classes, I have used the Dali plugin. In order to be able to use Hibernate with Dali, I have created a User library, holding some of the Hibernate Jars (see attachment).

I have created a hibernate configuration. The thing is that when parsing the tree related to the configuration, 1 of the childs is not accessible :

  • Configuration : OK, displays the database entities
  • Session factory : OK, displays altso the database entities in a different manner
  • Database : fails with an exception :
    !ENTRY org.eclipse.core.jobs 4 2 2012-12-15 21:38:01.233
    !MESSAGE An internal error occurred during: "Fetching children of Database".
    !STACK 0
    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:126)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
    at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:115)
    at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
    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:53)

I don't know how to debug this issue, I have never debugged eclipse plugins...

Environment: Windows 8 x64, eclipse JEE, Dali persitence plugin, H2 database
Project: Hibernate Tools
Priority: Major Major
Reporter: Omar BELKHODJA
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