0 Replies Latest reply on Nov 19, 2014 10:47 AM by Chandra Akella

    Migrating from JBoss 7.1.3 to Wildfly 8.1

    Chandra Akella Newbie

      My applications deploys and works fine in JBoss 7.1.3 and I am porting this application to WildFly 8.1.

       

      During the deployment in WildFly, persistent unit fails to start with an error - "ArchiveDescriptor reused; can URLs be processed multiple times?"

       

      I get below error -

       

      2014-11-19 09:25:24,046 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 52) MSC000001: Failed to start service jboss.persistenceunit."is3-server-app.ear#IceCubeUnit".__FIRST_PHASE__: org.jboss.msc.service.StartException in service jboss.persistenceunit."is3-server-app.ear#IceCubeUnit".__FIRST_PHASE__: java.lang.IllegalStateException: ArchiveDescriptor reused; can URLs be processed multiple times?

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:121)

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:103)

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_72]

        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474) [wildfly-security-manager-1.0.0.Final.jar:1.0.0.Final]

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1.run(PhaseOnePersistenceUnitServiceImpl.java:130)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_72]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_72]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72]

        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]

      Caused by: java.lang.IllegalStateException: ArchiveDescriptor reused; can URLs be processed multiple times?

        at org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl.validateReuse(AbstractScannerImpl.java:223)

        at org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl.buildArchiveDescriptor(AbstractScannerImpl.java:102)

        at org.hibernate.jpa.boot.scan.spi.AbstractScannerImpl.scan(AbstractScannerImpl.java:70)

        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.scan(EntityManagerFactoryBuilderImpl.java:723)

        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:219)

        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:186)

        at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:45)

        at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:57)

        at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.<init>(TwoPhaseBootstrapImpl.java:38)

        at org.jboss.as.jpa.hibernate4.HibernatePersistenceProviderAdaptor.getBootstrap(HibernatePersistenceProviderAdaptor.java:173)

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.createContainerEntityManagerFactoryBuilder(PhaseOnePersistenceUnitServiceImpl.java:243)

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.access$800(PhaseOnePersistenceUnitServiceImpl.java:60)

        at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:118)

        ... 8 more

       

       

      2014-11-19 09:25:24,053 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "is3-server-app.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"is3-server-app.ear#IceCubeUnit\".__FIRST_PHASE__" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"is3-server-app.ear#IceCubeUnit\".__FIRST_PHASE__: java.lang.IllegalStateException: ArchiveDescriptor reused; can URLs be processed multiple times?

          Caused by: java.lang.IllegalStateException: ArchiveDescriptor reused; can URLs be processed multiple times?"}}

       

      Attaching the persistence.xml for this unit.

       

      Any help/suggestions to fix this issue is appreciated.

       

      Thanks,