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

Packaged JAR cannot execute without Maven Local wildfly-swarm-runtime-* artifacts

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      Given I create a packaged JAR either with Gradle or Maven, followed by either
      1. Sending it to a system without the wildfly-swarm-runtime-* artifacts in Maven Local or
      2. Removing the wildfly-swarm-runtime-* artifacts from the build system's Maven Local

      When I then execute that JAR, I will get this exception:

      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.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.Main.main(Main.java:37)
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'org.jboss.msc:jboss-msc:1.2.6.Final' (position: END_TAG seen ...s>\r\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)
      	... 10 more
      

      This is occuring on my Windows system where I have a .m2 folder setup by IntelliJ/Netbeans.

      Strangely enough, I do not get this error when I add the same exact JAR to a barebones Debian Docker image that completely lacks any sort of Maven Repo.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amannm Amann Malik (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: