No Persistence provider for EntityManager named

前端 未结 30 2071
甜味超标
甜味超标 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条回答
  •  旧时难觅i
    2020-11-22 04:42

    It happenes when the entity manager is trying to point to many persistence units. Do the following steps:

    1. open the related file in your editor (provided your project has been closed in your IDE)
    2. delete all the persistence and entity manager related code
    3. save the file
    4. open the project in your IDE
    5. now bind the db or table of your choice

提交回复
热议问题