No Persistence provider for EntityManager named

前端 未结 30 2069
甜味超标
甜味超标 2020-11-22 03:45

I have my persistence.xml with the same name using TopLink under the META-INF directory. Then, I have my code calling it with:

30条回答
  •  被撕碎了的回忆
    2020-11-22 04:34

    Maybe you defined one provider like org.hibernate.ejb.HibernatePersistence but referencing another one in jar. That happened with me: my persistence.xml provider was openjpa but I was using eclipselink in my classpath. Hope this help!

提交回复
热议问题