Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15743

HibernatePersistenceProvider in persistence.xml throws HibernateConsoleRuntimeException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.2.x
    • 4.1.1.Beta1
    • hibernate
    • None
    • Hide
      • Use attached project that shows the below example
      • Create a new Dynamic Web Project
      • Add the JPA 2.0 facet to the project (2.1 does work yet either, but that's a different request)
      • Add an entity, see that the persistence context builds
      • Add a persistence provider to persistence.xml, org.hibernate.ejb.HibernatePersistence
      • Successfully build a JPA-based Hibernate console
      • Change the persistence provider to org.hibernate.jpa.HibernatePersistenceProvider
      • Observe that the Hibernate console can no longer be rebuilt (see screenshots)
      Show
      Use attached project that shows the below example Create a new Dynamic Web Project Add the JPA 2.0 facet to the project (2.1 does work yet either, but that's a different request) Add an entity, see that the persistence context builds Add a persistence provider to persistence.xml, org.hibernate.ejb.HibernatePersistence Successfully build a JPA-based Hibernate console Change the persistence provider to org.hibernate.jpa.HibernatePersistenceProvider Observe that the Hibernate console can no longer be rebuilt (see screenshots)
    • -

      Issue: When org.hibernate.jpa.HibernatePersistenceProvider is used as a <provider> in persistence.xml, per Wildfly 8 docs here, Eclipse / JBIDE Tools throws an exception and cannot build the Hibernate console. Reverting to org.hibernate.ejb.HibernatePersistence resolves this issue.

        1. Screen Shot 2013-10-21 at 10.05.42 AM.png
          106 kB
          Connor Penhale
        2. Screen Shot 2013-10-21 at 10.06.14 AM.png
          132 kB
          Connor Penhale

            kaers@redhat.com Koen Aers
            cpenhale@perforce.com Connor Penhale (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: