This is so annoying
Hope this helps someone.
- My project structure is as follows . I am using JPA2.0
- Compare the case sensitiveness for the Persistence Unit Name.
- If you have JPA2.0 as a dependency, you can go ahead and remove the same
- Check if your provider is
Check your pom.xml if you have hibernate entity manager as a dependency.
If needed add the hibernate annotations too . No HARM