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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hivmr.com by Unknown author, 1 year ago
No Persistence provider for EntityManager named primary
via Oracle Community by pbaker01, 4 months ago
No Persistence provider for EntityManager named default
via oracle.com by Unknown author, 1 year ago
No Persistence provider for EntityManager named default
via Oracle Community by 843859, 11 months ago
No Persistence provider for EntityManager named default
via java.net by Unknown author, 2 years ago
No Persistence provider for EntityManager named default
via Stack Overflow by Muneeswaran Balasubramanian
, 2 years ago
No Persistence provider for EntityManager named MyJPAApplicationPU
javax.persistence.PersistenceException: No Persistence provider for EntityManager named primary
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)
at com.mycompany.myapp.common.persistence.HibernateUtil.clinit(HibernateUtil.java:35)
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:84)
at com.mycompany.myapp.common.jms.JMSListenerServletTemplate.init(JMSListenerServletTemplate.java:41)
at com.mycompany.myapp.common.jms.JMSAnywhereServlet.init(JMSAnywhereServlet.java:179)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Once, 10 months ago
2 times, 1 year ago
14 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.