We have not solved our persistence provider problem yet.
What we have done so far:
1. We extended the HibernatePeristence class and built our own version (because we needed to change the entitynotfounddelegate)
2. This class was packaged as jar file
3. A seperate module was created (org/hibernate/custom/main) and the jar was put in this folder
4. A module.xml was created (resource-root is the jar, depencies are the hibernate files)
5. We put the following line in the persistence.xml: <property name="jboss.as.jpa.providerModule" value="org.hibernate.custom" />
6. We removed the <provider> element from the persistence.xml
Finally we started the JBoss Server (AS 7.1 Final), but the deployment never completes - it's just hanging until a timeout error appears.
What have we done wrong? Has the class to be provided in another way?
We tried to follow this example https://docs.jboss.org/author/display/AS71/JPA+Reference+Guide
Thanks