JBoss Community

Duplicate PU

created by Cleiton Bonomini in JBoss AS 7 Development - View the full discussion

Hi, I have 24 jars with persistence.xml inside, Lots of em got a persistence-unit name as "ems", in AS4.2.3 it's deploying fine. In AS7.x I'm getting this exception:

 

 

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Falha ao adicionar o serviþo da unidade de persistência para ems

        at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnit(PersistenceUnitServiceHandler.java:400)

        at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:267)

        at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleEarDeployment(PersistenceUnitServiceHandler.java:207)

        at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:112)

        at org.jboss.as.jpa.processor.PersistenceCompleteInstallProcessor.deploy(PersistenceCompleteInstallProcessor.java:48)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0

 

 

PS: Falha ao adicionar o serviço da unidade de persistência para EMS is meaning:

 

Failed to add persistence unit service to "EMS".

 

 

 

AS7x cannot get duplicate pu name?

 

 

 

Thanks in Advance!

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community