0

I have a problem with my data persistance. I do not see where is the problem. Can you help me ?

The error in Tomcat:

javax.persistence.PersistenceException: No Persistence provider for EntityManager named miageTP13
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89)
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
    dao.impl.TeamDAOImpl.getEntityManager(TeamDAOImpl.java:20)
    dao.impl.TeamDAOImpl.insert(TeamDAOImpl.java:36)
    controller.TeamController.createTeam(TeamController.java:119)

How is this caused and how can I solve it?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • You seem to not be running the code you think you're running. Clean/rebuild/redeploy/restart and update the question accordingly. – BalusC Mar 10 '16 at 10:50
  • 1
    Possible duplicate of [No Persistence provider for EntityManager named](http://stackoverflow.com/questions/1158159/no-persistence-provider-for-entitymanager-named) – BalusC Mar 10 '16 at 11:00
  • I have add org.eclipse.persistence.jpa.PersistenceProvider but i halways the same problem – Nikolas LEFEBVRE Mar 10 '16 at 11:12

0 Answers0