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

Swarmtool unable to resolve undertow artifacts

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.7.0
    • Fix Version/s: 2018.1.0
    • Component/s: swarmtool
    • Labels:
      None
    • Story Points:
      5
    • Steps to Reproduce:
      Hide

      swarmtool swarmtest-1.0.war
      java -jar swarmtest-1.0-swarm.jar

      (I attached the war file)

      Show
      swarmtool swarmtest-1.0.war java -jar swarmtest-1.0-swarm.jar (I attached the war file)

      Description

      Using the swarmtool the -swarm.jar file is generated but when executing it stops with the following exception:

      2017-07-18 13:44:41,854 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                  Logging - STABLE          org.wildfly.swarm:logging:2017.7.0
      2017-07-18 13:44:41,869 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:        CDI Configuration - STABLE          org.wildfly.swarm:cdi-config:2017.7.0
      2017-07-18 13:44:41,870 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      JSF - STABLE          org.wildfly.swarm:jsf:2017.7.0
      2017-07-18 13:44:41,870 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:          Bean Validation - STABLE          org.wildfly.swarm:bean-validation:2017.7.0
      2017-07-18 13:44:41,870 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:             Transactions - STABLE          org.wildfly.swarm:transactions:2017.7.0
      2017-07-18 13:44:41,871 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      CDI - STABLE          org.wildfly.swarm:cdi:2017.7.0
      2017-07-18 13:44:41,871 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                 Undertow - STABLE          org.wildfly.swarm:undertow:2017.7.0
      java.lang.reflect.InvocationTargetException
      	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:498)
      	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      	at org.wildfly.swarm.bootstrap.Main.run(Main.java:128)
      	at org.wildfly.swarm.bootstrap.Main.main(Main.java:83)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:114)
      	at org.wildfly.swarm.Swarm.start(Swarm.java:372)
      	at org.wildfly.swarm.Swarm.main(Swarm.java:628)
      	... 7 more
      Caused by: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder.findModule(ClasspathModuleFinder.java:108)
      	at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:439)
      	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:342)
      	at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:289)
      	at org.jboss.modules.Module.addPaths(Module.java:1079)
      	at org.jboss.modules.Module.link(Module.java:1449)
      	at org.jboss.modules.Module.getPaths(Module.java:1410)
      	at org.jboss.modules.Module.getPathsUnchecked(Module.java:1433)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:601)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:606)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
      	at org.jboss.weld.resources.AbstractClassLoaderResourceLoader.classForName(AbstractClassLoaderResourceLoader.java:40)
      	at org.jboss.weld.util.reflection.Reflections.loadClass(Reflections.java:368)
      	at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.containsBeanDefiningAnnotation(JandexDiscoveryStrategy.java:145)
      	at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.processAnnotatedDiscovery(JandexDiscoveryStrategy.java:94)
      	at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:129)
      	at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:678)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:570)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$null$0(ServerBootstrapImpl.java:150)
      	at org.wildfly.swarm.container.runtime.LogSilencer$SilentExecutor.execute(LogSilencer.java:60)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:121)
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
      	... 10 more
      Caused by: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:228)
      	at org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder.findModule(ClasspathModuleFinder.java:85)
      	... 44 more
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'io.undertow:undertow-servlet:1.4.0.Final' (position: END_TAG seen ...s>\n    <artifact name="io.undertow:undertow-servlet:1.4.0.Final"/>... @4:64) 
      	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:838)
      	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:739)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:535)
      	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:340)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:226)
      	... 45 more
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      	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:498)
      	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      	at org.wildfly.swarm.bootstrap.Main.run(Main.java:128)
      	at org.wildfly.swarm.bootstrap.Main.main(Main.java:83)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:114)
      	at org.wildfly.swarm.Swarm.start(Swarm.java:372)
      	at org.wildfly.swarm.Swarm.main(Swarm.java:628)
      	... 7 more
      Caused by: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder.findModule(ClasspathModuleFinder.java:108)
      	at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:439)
      	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:342)
      	at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:289)
      	at org.jboss.modules.Module.addPaths(Module.java:1079)
      	at org.jboss.modules.Module.link(Module.java:1449)
      	at org.jboss.modules.Module.getPaths(Module.java:1410)
      	at org.jboss.modules.Module.getPathsUnchecked(Module.java:1433)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:601)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:606)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
      	at org.jboss.weld.resources.AbstractClassLoaderResourceLoader.classForName(AbstractClassLoaderResourceLoader.java:40)
      	at org.jboss.weld.util.reflection.Reflections.loadClass(Reflections.java:368)
      	at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.containsBeanDefiningAnnotation(JandexDiscoveryStrategy.java:145)
      	at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.processAnnotatedDiscovery(JandexDiscoveryStrategy.java:94)
      	at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:129)
      	at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:678)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:570)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$null$0(ServerBootstrapImpl.java:150)
      	at org.wildfly.swarm.container.runtime.LogSilencer$SilentExecutor.execute(LogSilencer.java:60)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:121)
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
      	... 10 more
      Caused by: org.jboss.modules.ModuleLoadException: Error loading module from modules/io/undertow/servlet/main/module.xml
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:228)
      	at org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder.findModule(ClasspathModuleFinder.java:85)
      	... 44 more
      Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'io.undertow:undertow-servlet:1.4.0.Final' (position: END_TAG seen ...s>\n    <artifact name="io.undertow:undertow-servlet:1.4.0.Final"/>... @4:64) 
      	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:838)
      	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:739)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:535)
      	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:340)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:226)
      	... 45 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adler.fleurant Adler Fleurant
                Reporter:
                xonya Sonia Zorba
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: