1 Reply Latest reply on Feb 24, 2015 2:57 AM by valsaraj viswanathan

    ModuleNotFoundException during OSGi integration with WildFly-8.2.0.Final

    valsaraj viswanathan Master

      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:112) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:259) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

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

        at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:155) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:434) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107) [wildfly-server-8.2.0.Final.jar:8.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:104) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        ... 3 more

      Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) [rt.jar:1.7.0_07]

        at java.util.concurrent.FutureTask.get(FutureTask.java:111) [rt.jar:1.7.0_07]

        at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:147) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        ... 9 more

      Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module

        at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:196) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

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

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

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

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_07]

        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_07]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

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

        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

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

      Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.osgi.metadata:main

        at org.jboss.modules.Module.addExportedPaths(Module.java:1201) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.Module.addPaths(Module.java:1079) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.Module.link(Module.java:1406) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1434) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:242) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:178) [wildfly-controller-8.2.0.Final.jar:8.2.0.Final]

        ... 9 more

       

      I got this exception when I integrated OSGi with WildFly-8.2.0.Final. I followed the steps in Getting Started - JBoss OSGi - Project Documentation Editor. It looks like this installer creates standalone-osgi.xml for old version. What we need to do to make it working in latest WildFly-8.2.0 version?