Error starting service with JBoss

-2

I am working with Hibernate 4.3, JSF 2.0 and JBoss 7.0.1, and when launching the project view I get the following exception:

19:44:23,592 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."Ultima.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."Ultima.war".INSTALL: Failed to process phase INSTALL of deployment "Ultima.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.runWorker(ThreadPoolExecutor.java:1142) [:1.8.0_101]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [:1.8.0_101]
    at java.lang.Thread.run(Thread.java:745) [:1.8.0_101]
Caused by: 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(PersistenceProviderProcessor.java:65)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
    ... 5 more

19:44:23,804 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "Ultima.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"Ultima.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Ultima.war\".INSTALL: Failed to process phase INSTALL of deployment \"Ultima.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.Ultima.Ultima.Ultima.Validator missing [ jboss.naming.context.java.module.Ultima.Ultima ]","jboss.naming.context.java.comp.Ultima.Ultima.Ultima.ValidatorFactory missing [ jboss.naming.context.java.module.Ultima.Ultima ]"]}
19:44:24,172 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment Ultima.war in 369ms
19:44:24,176 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"Ultima.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Ultima.war\".INSTALL: Failed to process phase INSTALL of deployment \"Ultima.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.Ultima.Ultima.Ultima.Validator missing [ jboss.naming.context.java.module.Ultima.Ultima ]","jboss.naming.context.java.comp.Ultima.Ultima.Ultima.ValidatorFactory missing [ jboss.naming.context.java.module.Ultima.Ultima ]"]}}}

Does anyone know why this error happens to me? What can I do to solve it?

    
asked by vrojas 29.09.2016 в 05:19
source

1 answer

0

Well the error, of course, is telling you that you have more than one persistence provider, if you are configuring spring by xml, you should share your xml, I agree that we need more details, how do you configure hibernate? Is it an application with spring?.

And it can also be if you are using wildfly a dependency error.

Try adding the following dependency to your pom

<dependency>
 <groupId>org.jipijapa</groupId>
 <artifactId>jipijapa-hibernate4-3</artifactId>
 <version>1.0.1.Final</version>
</dependency>
    
answered by 30.09.2016 в 01:37