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 | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

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