javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.

hivmr.com | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    WebLogic Cluster 2 Managed Servers

    Oracle Community | 6 years ago | 885196
    javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
  2. 0

    WebLogic Cluster 2 Managed Servers

    Oracle Community | 6 years ago | 885196
    javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
  3. 0

    WebLogic Cluster 2 Managed Servers

    Oracle Community | 6 years ago | 885196
    javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 2.99::Error javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory.... while Deploying jbpm5.1 web example with human task on jboss5.1 server m1

    hivmr.com | 8 months ago
    javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
  6. 0

    EclipseLink - Error: Attempted to redeploy a session without closing it

    Stack Overflow | 2 years ago | Felipe Ferreira do Amaral
    javax.persistence.PersistenceException: Exception [EclipseLink-28009] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to redeploy a session named file:###################################### without closing it.

  1. davidvanlaatum 3 times, last 4 months ago
4 unregistered visitors
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

    Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.

    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy()
  2. EclipseLink (non-OSGi)
    EntityManagerFactoryImpl.createEntityManager
    1. org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:307)
    2. org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151)
    3. org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207)
    4. org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:195)
    4 frames
  3. Spring ORM
    JpaTransactionManager.createEntityManagerForTransaction
    1. org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:392)
    1 frame