JBAS011445: Failed to get adapter for persistence

2019-06-05 17:41发布

问题:

I try to deploy an application what uses hibernate ogm and I always get the error "Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'".

I have installed the module ogm under WILDFLY_HOME/modules/org/hibernate but it didn't help.

Do I need to configure something in standalone.xml? Does someone have an idea?

Thanks and best regards

回答1:

I had the same problem. By removing the following line from persistence.xml, wildfly got convinced to accept the deployment:

<property name="jboss.as.jpa.adapterModule" value="org.jboss.as.jpa.hibernate:4"/>

I also had to remove any property for the transaction provider