org.jboss.as.server.deployment.DeploymentUnitProcessingException: only one persistence provider can be packaged with an application [org.hibernate.jpa.HibernatePersistenceProvider, org.hibernate.ejb.HibernatePersistence]

Stack Overflow | Subodh | 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

    How to retrieve the refrence of JTA datasource in entityManagerFactory in JBOSS 7

    Stack Overflow | 8 months ago | Subodh
    org.jboss.as.server.deployment.DeploymentUnitProcessingException: only one persistence provider can be packaged with an application [org.hibernate.jpa.HibernatePersistenceProvider, org.hibernate.ejb.HibernatePersistence]

    Root Cause Analysis

    1. org.jboss.as.server.deployment.DeploymentUnitProcessingException

      only one persistence provider can be packaged with an application [org.hibernate.jpa.HibernatePersistenceProvider, org.hibernate.ejb.HibernatePersistence]

      at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy()
    2. JPA
      PersistenceProviderProcessor.deploy
      1. org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:65)
      1 frame
    3. JBoss Application Server: Server
      DeploymentUnitPhaseService.start
      1. org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      1 frame