Richard Louapre [
http://community.jboss.org/people/richard.louapre] created the
discussion
"petclinic project deployment issue with jboss7"
To view the discussion, visit:
http://community.jboss.org/message/643046#643046
--------------------------------------------------------------
Hi,
I followed the instructions from
http://community.jboss.org/blogs/mariusb/2011/07/13/spring-and-jboss-as7-...
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
https://github.com/mbogoevici/spring-samples/tree/as7-blog github but I have the same
deployment issue.
How can I solve this issue?
Thanks,
Richard.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/643046#643046]
Start a new discussion in Snowdrop at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]