[
https://issues.jboss.org/browse/JBIDE-14662?page=com.atlassian.jira.plugi...
]
Fred Bricon updated JBIDE-14662:
--------------------------------
Summary: Hibernate configuration view fails if multiple persistence.xml are found
(was: Hibernate configuration for html5 from central is not ready after import project )
Assignee: Koen Aers
Project contains 2 persistence.xml, one for production, one for tests. Hibernate Tooling
doesn't support it apparently.
Assigning to [~koen.aers] for investigation/fix
Hibernate configuration view fails if multiple persistence.xml are
found
------------------------------------------------------------------------
Key: JBIDE-14662
URL:
https://issues.jboss.org/browse/JBIDE-14662
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: central, hibernate
Affects Versions: 4.1.0.Beta1
Environment: JBDS 7.0.0.Beta1a,64
Reporter: Jiri Peterka
Assignee: Koen Aers
Fix For: 4.1.0.Beta2
When importing HTML5 project form Central, Hibernate console isn't properly
configured and cannot be expanded and used without errors.
{code}
javax.persistence.PersistenceException: No name provided and several persistence units
found
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:337)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.hibernate.console.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:218)
at
org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:161)
at
org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:96)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:240)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:237)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:188)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:42)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
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)
{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