Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-183

Runtime dependencies not listed as artifact dependencies

    Details

      Description

      To test, take any of the wildfly-swarm-examples and try to run in a clean m2 repository. The runtime dependencies aren't downloaded into the repository, so not found at runtime.

      Example stacktrace is below.

      org.jboss.modules.ModuleLoadException: Error loading module from modules/org/wildfly/swarm/container/runtime/module.xml
              at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:150)
              at org.jboss.modules.ModuleXmlParserBridge.parseModuleXml(ModuleXmlParserBridge.java:32)
              at org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder.findModule(BootstrapClasspathModuleFinder.java:50)
              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.container.Container.createServer(Container.java:154)
              at org.wildfly.swarm.container.Container.<init>(Container.java:124)
              at org.wildfly.swarm.container.Container.<init>(Container.java:111)
              at edu.vt.research.summit.denali.Main.main(Main.java:43)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.wildfly.swarm:wildfly-swarm-container-runtime:1.0.0.Alpha6-SNAPSHOT' (position: END_TAG seen ...fly.swarm:wildfly-swarm-container-runtime:1.0.0.Alpha6-SNAPSHOT"/>... @10:95)
              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)
              ... 15 more
      Exception in thread "main" org.jboss.modules.ModuleLoadException: Error loading module from modules/org/wildfly/swarm/container/runtime/module.xml
              at org.jboss.modules.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:150)
              at org.jboss.modules.ModuleXmlParserBridge.parseModuleXml(ModuleXmlParserBridge.java:32)
              at org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder.findModule(BootstrapClasspathModuleFinder.java:50)
              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.container.Container.createServer(Container.java:154)
              at org.wildfly.swarm.container.Container.<init>(Container.java:124)
              at org.wildfly.swarm.container.Container.<init>(Container.java:111)
              at edu.vt.research.summit.denali.Main.main(Main.java:43)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.wildfly.swarm:wildfly-swarm-container-runtime:1.0.0.Alpha6-SNAPSHOT' (position: END_TAG seen ...fly.swarm:wildfly-swarm-container-runtime:1.0.0.Alpha6-SNAPSHOT"/>... @10:95)
              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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                mikesir87 Michael Irwin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: