3 Replies Latest reply on Jun 12, 2013 4:57 PM by John Sipher

    First time startup fails with JBAS015956 for both 7.2.0.Final and EAP-6.1.0.Final

    John Sipher Newbie

      We have an application that uses multiple standalone servers. After installing a new copy of jboss-as-7.2.0.Final or jboss-eap-6.1.0, the first time startup fails if we start multiple servers concurrently. There is no problem if we start one server first. After that we can stop everything and start them all concurrently with no problem.

       

      I believe there's some conflict with multiple processes trying to initialize the same *.jar.index files or maybe with a process trying to use one that's been created but not fully initilized. It's not consistent, but it's happened to me twice in the last 3 or 4 days.

       

      19:12:50,271 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1

      19:12:58,029 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA

      19:12:58,482 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015899: JBoss AS 7.2.0.Final "Janus" starting

      19:13:08,689 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

                at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.server.ServerService.boot(ServerService.java:308) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module org.jboss.as.jpa

                at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:424) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:136) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

                at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

                at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                ... 3 more

      Caused by: java.util.concurrent.ExecutionException: java.util.ServiceConfigurationError: org.jboss.as.controller.Extension: Provider org.jboss.as.jpa.subsystem.JPAExtension could not be instantiated: java.lang.NoClassDefFoundError: org/jboss/as/jpa/spi/PersistenceUnitServiceRegistry

                at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [rt.jar:1.6.0_45]

                at java.util.concurrent.FutureTask.get(FutureTask.java:83) [rt.jar:1.6.0_45]

                at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                ... 9 more

      Caused by: java.util.ServiceConfigurationError: org.jboss.as.controller.Extension: Provider org.jboss.as.jpa.subsystem.JPAExtension could not be instantiated: java.lang.NoClassDefFoundError: org/jboss/as/jpa/spi/PersistenceUnitServiceRegistry

                at java.util.ServiceLoader.fail(ServiceLoader.java:207) [rt.jar:1.6.0_45]

                at java.util.ServiceLoader.access$100(ServiceLoader.java:164) [rt.jar:1.6.0_45]

                at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:360) [rt.jar:1.6.0_45]

                at java.util.ServiceLoader$1.next(ServiceLoader.java:428) [rt.jar:1.6.0_45]

                at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:179) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123) [jboss-as-controller-7.2.0.Final.jar:7.2.0.Final]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_45]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_45]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

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

      Caused by: java.lang.NoClassDefFoundError: org/jboss/as/jpa/spi/PersistenceUnitServiceRegistry

                at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.6.0_45]

                at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398) [rt.jar:1.6.0_45]

                at java.lang.Class.getConstructor0(Class.java:2708) [rt.jar:1.6.0_45]

                at java.lang.Class.newInstance0(Class.java:328) [rt.jar:1.6.0_45]

                at java.lang.Class.newInstance(Class.java:310) [rt.jar:1.6.0_45]

                at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:356) [rt.jar:1.6.0_45]

                ... 11 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.as.jpa.spi.PersistenceUnitServiceRegistry from [Module "org.jboss.as.jpa:main" from local module loader @1055e55f (finder: local module finder @7745c859 (roots: C:\myproduct\jboss-as-7.2.0.Final\modules,C:\myproduct\jboss-as-7.2.0.Final\modules\system\layers\base,C:\myproduct\myprd))]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

                ... 17 more

      19:13:08,705 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

      19:13:08,736 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015950: JBoss AS 7.2.0.Final "Janus" stopped in 17ms

        • 1. Re: First time startup fails with JBAS015956 for both 7.2.0.Final and EAP-6.1.0.Final
          jaikiran pai Master

          John Sipher wrote:

           

          We have an application that uses multiple standalone servers. After installing a new copy of jboss-as-7.2.0.Final or jboss-eap-6.1.0, the first time startup fails if we start multiple servers concurrently. There is no problem if we start one server first. After that we can stop everything and start them all concurrently with no problem.

           

          I believe there's some conflict with multiple processes trying to initialize the same *.jar.index files or maybe with a process trying to use one that's been created but not fully initilized. It's not consistent, but it's happened to me twice in the last 3 or 4 days.

          How exactly do you create those multiple standalone instances?

          • 2. Re: First time startup fails with JBAS015956 for both 7.2.0.Final and EAP-6.1.0.Final
            John Sipher Newbie

            We copy {jboss-home}/standalone to {jboss-home}/{server-name} and then add our EAR/WAR files to {jboss-home}/{server-name}/deployments and modify {jboss-home}/{server-name}/configuration/standalone.xml as needed for that particular applicaiton component.

             

            We also create a start script (.sh or .bat) in {jboss-home}/bin for the server. That script sets up JBOSS_OPTS and calls {jboss-home}/bin/standalone.[bat|sh]

             

            So far I've only seen this on WIndows, but that's where all of our development and initial testing happens.

            • 3. Re: First time startup fails with JBAS015956 for both 7.2.0.Final and EAP-6.1.0.Final
              John Sipher Newbie

              After a closer look I think this problem exists only in the community edition, and not in jboss-eap-6.1.0. It looks like the *.jar.index files are included in the jar files' META-INF folders in the EAP version. When I ran into this with the EAP version, I had a bug in my installer that unzipped 7.2.0.Final on top of the EAP version, so I had both community and EAP jar files in the folders under {jboss-home}/modules. I've done a few more tests today and don't see the issue with EAP.