1 Reply Latest reply on Dec 27, 2011 9:08 AM by richard.louapre

    petclinic project deployment issue with jboss7

    richard.louapre

      Hi,

       

      I followed the instructions from this blog

       

      But the deployment in jboss7 failed with the error message:

       

      07:30:17,917 INFO  [org.jboss.as.server.deployment] (pool-2-thread-2) Content added at location D:\Download\Java\JBoss\jboss-as-7.0.2.Final\standalone\data\content\7fc87bc5dd5eb9e451cee831e13453be9d94491b\content

      07:30:18,006 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-15) Starting deployment of "petclinic.war"

      07:30:20,615 INFO  [org.jboss.as.jpa] (MSC service thread 1-9) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to petclinic.war

      07:30:21,287 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC00001: Failed to start service jboss.deployment.unit."petclinic.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."petclinic.war"

      .INSTALL: Failed to process phase INSTALL of deployment "petclinic.war"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: only one persistence provider can be packaged with an application [oracle.toplink.essentials.PersistenceProvider, oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider, org.apache.openjpa.persistence.PersistenceProviderImpl, org.hibernate.ejb.HibernatePersistence]

              at org.jboss.as.jpa.processor.PersistenceProviderProcessor.deploy(PersistenceProviderProcessor.java:65)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

              ... 5 more

       

      I also tried to get the complete modified example for github but I have the same deployment issue.

       

      How can I solve this issue?

       

      Thanks,

         Richard.