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

hivmr.com | 4 months ago
  1. 0

    db:: 4.79::Re: No Persistence provider for EntityManager named dj

    hivmr.com | 4 months ago
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named primary
  2. 0

    PersistenceException: No Persistence provider for EntityManager named defaultPersistenceUnit in playframework

    Stack Overflow | 3 years ago | user2765753
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named defaultPersistenceUnit
  3. 0

    jboss 7.0.1 hibernate javax.persistence.PersistenceException: No Persistence provider for EntityManager

    Stack Overflow | 5 years ago | user619804
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named primary2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    determine location of persistence.xml

    Stack Overflow | 5 years ago | Roalt
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named myunit
  6. 0

    Start JPA EntityManagerFactory in remote server through RMI

    Stack Overflow | 3 years ago | Yellow Duck
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named abc
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.persistence.PersistenceException

    No Persistence provider for EntityManager named primary

    at javax.persistence.Persistence.createEntityManagerFactory()
  2. JavaEE 7
    Persistence.createEntityManagerFactory
    1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
    2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
    2 frames
  3. com.mycompany.myapp
    JMSAnywhereServlet.init
    1. com.mycompany.myapp.common.persistence.HibernateUtil.clinit(HibernateUtil.java:35)[classes:]
    2. com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:84)[classes:]
    3. com.mycompany.myapp.common.jms.JMSListenerServletTemplate.init(JMSListenerServletTemplate.java:41)[classes:]
    4. com.mycompany.myapp.common.jms.JMSAnywhereServlet.init(JMSAnywhereServlet.java:179)[classes:]
    4 frames
  4. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)[jbossweb-7.0.1.Final.jar:7.0.1.Final]
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)[jbossweb-7.0.1.Final.jar:7.0.1.Final]
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631)[jbossweb-7.0.1.Final.jar:7.0.1.Final]
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:3844)[jbossweb-7.0.1.Final.jar:7.0.1.Final]
    4 frames
  5. JBoss Web
    WebDeploymentService.start
    1. org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)[jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
    1 frame
  6. JBoss Modular Service Container
    ServiceControllerImpl$ClearTCCLTask.run
    1. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
    2. org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
    2 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_26]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_26]
    3. java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
    3 frames