Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-2452

Could not create JPA based Configuration after creating HTML5 project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • 7.0.0.CR1
    • 6.0.0.GA
    • hibernate
    • None
    • Hide

      EXE: On JBoss Central create HTML5 project
      EXE: Open Hibernate Configuration View
      EXE: Expand poh5 hibernate configuration
      ASSERT: Configuration should be expanded without errors

      Show
      EXE: On JBoss Central create HTML5 project EXE: Open Hibernate Configuration View EXE: Expand poh5 hibernate configuration ASSERT: Configuration should be expanded without errors
    • Workaround Exists
    • Hide

      If the error occurs, one needs to open the Project properties > Hibernate Settings > select the console configuration and click on details.
      The persistence unit name must be set, using the name found in the main persistence.xml.

      Show
      If the error occurs, one needs to open the Project properties > Hibernate Settings > select the console configuration and click on details. The persistence unit name must be set, using the name found in the main persistence.xml.

      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

              fbricon@redhat.com Fred Bricon
              jpeterka_jira Jiri Peterka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: