JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'

ぃ、小莉子 提交于 2019-12-10 11:43:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!