0 Replies Latest reply on Sep 20, 2015 4:55 PM by Adriano Schmidt

    wildfly swarm - ModuleLoadException

    Adriano Schmidt Master

      Pessoal... estou tentando fazer um hello-world com o wildfly swarm pois quero usá-lo em um projeto meu mas estou com um erro aqui...

       

      Estou rodando no windows 8... java 1.8.0_60 hotspot-64bits...

       

      meu pom só tem a dependência pro wildfly-swarm-undertow e pro wildfly-swarm-jaxrs... ambos com a version LATEST..

      coloquei no pom o wildfly-swarm-plugin

      Veja em: wildfly-swarm-hello-world/pom.xml at master · adrianoschmidt/wildfly-swarm-hello-world · GitHub

       

      minha classe main apenas faz um new Container() e já dá o erro abaixo.

      a classe container é a org.wildfly.swarm.container.Container

      Veja em: wildfly-swarm-hello-world/App.java at master · adrianoschmidt/wildfly-swarm-hello-world · GitHub

       

      O erro é esse. Alguém sabe o que pode ser?

       

      [INFO] --- wildfly-swarm-plugin:1.0.0.Alpha4:run (default-cli) @ wildfly-swarm-hello-world ---

      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.addExportedPaths(Module.java:1179)

              at org.jboss.modules.Module.addPaths(Module.java:1071)

              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.container.Container.createServer(Container.java:127)

              at org.wildfly.swarm.container.Container.<init>(Container.java:97)

              at org.wildfly.swarm.container.Container.<init>(Container.java:85)

              at br.com.localhost8080.wildflyswarm.App.main(App.java:11)

      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)

              at org.jboss.modules.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:756)

              at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:650)

              at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:446)

              at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:261)

              at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:148)

              ... 14 more

      Exception in thread "main" 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.addExportedPaths(Module.java:1179)

              at org.jboss.modules.Module.addPaths(Module.java:1071)

              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.container.Container.createServer(Container.java:127)

              at org.wildfly.swarm.container.Container.<init>(Container.java:97)

              at org.wildfly.swarm.container.Container.<init>(Container.java:85)

              at br.com.localhost8080.wildflyswarm.App.main(App.java:11)

      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)

              at org.jboss.modules.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:756)

              at org.jboss.modules.ModuleXmlParser.parseResources(ModuleXmlParser.java:650)

              at org.jboss.modules.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:446)

              at org.jboss.modules.ModuleXmlParser.parseDocument(ModuleXmlParser.java:261)

              at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:148)

              ... 14 more