• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.persistence.PersistenceException: No Persistence provider for EntityManager - WebApplication

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys!

I have a persistence.xml file inside my web application and it only works after that i try to access the context on browser. If i do deploy and don't try to access the application ( http://localhost:8080/MyApp ), it gives me an exception:


javax.persistence.PersistenceException: No Persistence provider for EntityManager named



I have some tasks that runs independently access or not the application and when the tasks run before access, i get that exception.

How can i fix it?

JPAUtil.java


persistence.xml


Thanks.

David
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic