[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
Wed Jul 3 08:25:21 EDT 2013


    [ https://issues.jboss.org/browse/JBDS-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787258#comment-12787258 ] 

Fred Bricon edited comment on JBDS-2452 at 7/3/13 8:23 AM:
-----------------------------------------------------------

According to [~maxandersen], this is (kinda) the expected behavior.
- the archetype should be fixed to not have 2 persistence.xml in the classpath (problematic since eclipse doesn't disambiguate test and main classpaths) (JDF-406)
- hibernate tools should be able to intercept the error and display a meaningful message with instructions to manually fix the issue instead. (JIRA pending)
                
      was (Author: fbricon):
    According to [~maxandersen], this is (kinda) the expected behavior.
- the archetype should be fixed to not have 2 persistence.xml in the classpath (problematic since eclipse doesn't disambiguate test and main classpaths) (JIRA pending)
- hibernate tools should be able to intercept the error and display a meaningful message with instructions to manually fix the issue instead. (JIRA pending)
                  
> 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