2 Replies Latest reply on Sep 6, 2013 5:18 PM by henk53

    Wildfly 8 Persistence Provider Changed?

    andy.miller

      I am bringing an application over from AS 7.x and in deploying it I am getting the following exception:

       

      javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'org.hibernate.ejb.HibernatePersistence' not found"

       

      The org.hibernate.ejb.HibernatePersistence is specified in my persistence.xml as follows:

       

      provider>org.hibernate.ejb.HibernatePersistence</provider>

       

      This has been the same since JBoss AS 5, so I'm not sure why its not found.  Did this change with Wildfly 8?

        • 1. Re: Wildfly 8 Persistence Provider Changed?
          andy.miller

          Okay, a search found an answer to this, and the name was changed to:

           

          org.hibernate.jpa.HibernatePersistenceProvider

           

          I'm not sure why this name changed, but it seems odd to break backward compatibility with this, consider this is only a Hibernate 4.3.x release vs. a Hibernate 4.2.x release.  I believe we have violated our own rules for breaking backward compatibility here.

           

          I would recommend fixing this.

          • 2. Re: Wildfly 8 Persistence Provider Changed?
            henk53

            Andrig Miller wrote:

             

            I would recommend fixing this.

             

            I would recommend not specifying the provider at all.

             

            What drove you to explicitly specifying it in the first place?

            1 of 1 people found this helpful