javax.persistence.PersistenceException

No Persistence provider for EntityManager named primary

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • javax.persistence.PersistenceException: No Persistence provider for EntityManager named primary at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at com.mycompany.myapp.common.persistence.HibernateUtil.clinit(HibernateUtil.java:35)[classes:] at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:84)[classes:] at com.mycompany.myapp.common.jms.JMSListenerServletTemplate.init(JMSListenerServletTemplate.java:41)[classes:] at com.mycompany.myapp.common.jms.JMSAnywhereServlet.init(JMSAnywhereServlet.java:179)[classes:] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)[jbossweb-7.0.1.Final.jar:7.0.1.Final] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)[jbossweb-7.0.1.Final.jar:7.0.1.Final] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631)[jbossweb-7.0.1.Final.jar:7.0.1.Final] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844)[jbossweb-7.0.1.Final.jar:7.0.1.Final] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)[jboss-as-web-7.0.1.Final.jar:7.0.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765) at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_26] at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitor1 times, last one,
HronomHronom
1 times, last one,
kjhdofjosvskjhdofjosvs
2 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
12 more bugmates