问题
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
来源:https://stackoverflow.com/questions/23454185/jbas011445-failed-to-get-adapter-for-persistence-provider-org-hibernate-ogm-jp