DeploymentUnitProcessingException: only one persistence provider can be packaged with an application in JBoss EAP 6?

Solution Verified - Updated -

Issue

  • JPA conflict when deploying my GWT application in JBoss EAP 6 Alpha, but I'm not using GWT JPA.

    INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added javax.persistence.api dependency to gwt-example.war
    ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."gwt-example.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."gwt-example.war".INSTALL: Failed to process phase INSTALL of deployment "gwt-example.war"
         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
         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_23]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]
         at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: only one persistence provider can be packaged with an application [org.datanucleus.jpa.PersistenceProviderImpl, org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider]
         at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:65)
         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
         ... 5 more
    

Environment

  • JBoss Enterprise Application Platform (EAP) 6 Alpha 1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content