No Persistence provider for EntityManager named

前端 未结 30 2023
甜味超标
甜味超标 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:32

    You need the following jar files in the classpath:

    1. antlr-2.7.6.jar
    2. commons-collections-3.1.jar
    3. dom4j-1.6.1.jar
    4. hibernate-commons-annotations-4.0.1.Final.jar
    5. hibernate-core-4.0.1.Final.jar
    6. hibernate-entitymanager.jar
    7. hibernate-jpa-2.0-api-1.0.0.Final.jar
    8. javassist-3.9.0.jar
    9. jboss-logging-3.1.1.GA.jar
    10. jta-1.1.jar
    11. slf4j-api-1.5.8.jar
    12. xxx-jdbc-driver.jar

提交回复
热议问题