3 Replies Latest reply on Nov 20, 2015 2:12 PM by Ben Tomasini

    WildFly Swarm 1.0.0.Alpha4 fails loading server modules

    Francesco Marchioni Apprentice

      Dear all,

      I'm testing some simple Swarm examples (wildfly-swarm/wildfly-swarm-examples · GitHub) against the release 1.0.0.Alpha4 however it seems they all fail when loading server modules.
      Here is for example the output from a mvn package wildfly-swarm:run against the servlet example (using 1.0.0.Alpha4 instead of 1.0.0.Alpha5-SNAPSHOT):
      org.jboss.modules.ModuleLoadException: Error loading module from modules/org/jboss/msc/main/module.xml
              at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:150)
              at org.jboss.modules.ModuleXmlParserBridge.parseModuleXml(ModuleXmlParserBridge.java:17)
              at org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder.findModule(BootstrapClasspathModuleFinder.java:35)
              at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:452)
              at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:355)
              at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:302)
              at org.jboss.modules.Module.addPaths(Module.java:1028)
              at org.jboss.modules.Module.link(Module.java:1398)
              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1426)
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:238)
              at org.wildfly.swarm.bootstrap.util.Layout.getBootstrapClassLoader(Layout.java:90)
              at org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder.findModule(ClasspathModuleFinder.java:25)
              at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:452)
              at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:355)
              at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:302)
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:234)
              at org.wildfly.swarm.Swarm.main(Swarm.java:36)
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.jboss.msc:jboss-msc:1.2.6.Final' (position: END_TAG seen ...es>\n
        <artifact name="org.jboss.msc:jboss-msc:1.2.6.Final"/>... @34:63)
      
      

       

      The problem seems to be the packaged modules/org/jboss/msc/main/module.xml which references org.jboss.msc:jboss-msc:1.2.6.Final

      <module xmlns="urn:jboss:module:1.3" name="org.jboss.msc">
          <properties>
              <property name="jboss.require-java-version" value="1.7"/>
          </properties>
          <main-class name="org.jboss.msc.Version"/>
          <resources>
              <artifact name="org.jboss.msc:jboss-msc:1.2.6.Final"/>
          </resources>
          <dependencies>
              <module name="javax.api"/>
              <module name="org.jboss.logging"/>
              <module name="org.jboss.modules"/>
              <!-- Optional deps -->
              <module name="javax.inject.api" optional="true"/>
              <module name="org.jboss.threads" optional="true"/>
              <module name="org.jboss.vfs" optional="true"/>
          </dependencies>
      </module>
      
      

      Should that be something like jboss-msc-X.X.X.Final.jar rather ?

      Thanks

      Francesco