[jbosstools-issues] [JBoss JIRA] (JBDS-2452) Could not create JPA based Configuration after creating HTML5 project
Fred Bricon (JIRA)
jira-events at lists.jboss.org
Tue Jul 2 11:32:21 EDT 2013
[ https://issues.jboss.org/browse/JBDS-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787012#comment-12787012 ]
Fred Bricon commented on JBDS-2452:
-----------------------------------
The hibernate console launch configuration needs to have the persistence unit name set to disambiguate the case where several persistence.xml are found.
https://github.com/jbosstools/jbosstools-central/pull/134 makes the maven hibernate configurator automatically set a default (i.e. main) persistence unit name for all launch configurations with an empty name.
> Could not create JPA based Configuration after creating HTML5 project
> ---------------------------------------------------------------------
>
> Key: JBDS-2452
> URL: https://issues.jboss.org/browse/JBDS-2452
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: hibernate
> Affects Versions: 6.0.0.GA
> Reporter: Jiri Peterka
> Assignee: Fred Bricon
> Priority: Critical
> Fix For: 7.0.0.CR1
>
>
> org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
> Could not create JPA based Configuration
> <No message>
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException: <no message>
> java.lang.reflect.InvocationTargetException
> javax.persistence.PersistenceException: No name provided and several persistence units found
> No name provided and several persistence units found
--
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