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

NoClassDefFoundError: io/undertow/servlet/ServletExtension in Beta7 and Beta8

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Beta8
    • Fix Version/s: 1.0.0.CR1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Swarm Beta7 and Beta8

      Description

      The current project hola[1] uses WildFly Swarm Beta6.

      When I try to update it from Beta6 to Beta7 or Beta8 the following exception occurs when "mvn wildfly-swarm:run"

      [1] https://github.com/redhat-helloworld-msa/hola

      15:54:07,899 ERROR [stderr] (main) Exception in thread "main" java.lang.RuntimeException: org.jboss.shrinkwrap.impl.base.ExtensionLoadingException: Failed to instantiate class of type class org.jboss.shrinkwrap.impl.base.MemoryMapArchiveImpl. The underlying constructor threw an exception.
      15:54:07,900 ERROR [stderr] (main) at org.wildfly.swarm.container.Container.createDefaultDeployment(Container.java:411)
      15:54:07,900 ERROR [stderr] (main) at org.wildfly.swarm.container.Container.deploy(Container.java:327)
      15:54:07,900 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:96)
      15:54:07,900 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:43)
      15:54:07,901 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.simpleMain(Swarm.java:128)
      15:54:07,901 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:120)
      15:54:07,901 ERROR [stderr] (main) Caused by: org.jboss.shrinkwrap.impl.base.ExtensionLoadingException: Failed to instantiate class of type class org.jboss.shrinkwrap.impl.base.MemoryMapArchiveImpl. The underlying constructor threw an exception.
      15:54:07,902 ERROR [stderr] (main) at org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader.createExtension(ServiceExtensionLoader.java:365)
      15:54:07,902 ERROR [stderr] (main) at org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader.createFromCache(ServiceExtensionLoader.java:125)
      15:54:07,902 ERROR [stderr] (main) at org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader.load(ServiceExtensionLoader.java:106)
      15:54:07,902 ERROR [stderr] (main) at org.jboss.shrinkwrap.impl.base.ArchiveBase.as(ArchiveBase.java:648)
      15:54:07,903 ERROR [stderr] (main) at org.jboss.shrinkwrap.api.ArchiveFactory.create(ArchiveFactory.java:150)
      15:54:07,903 ERROR [stderr] (main) at org.jboss.shrinkwrap.api.ShrinkWrap.create(ShrinkWrap.java:163)
      15:54:07,903 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.internal.DefaultJAXRSWarDeploymentFactory.create(DefaultJAXRSWarDeploymentFactory.java:40)
      15:54:07,905 ERROR [stderr] (main) at org.wildfly.swarm.container.Container.createDefaultDeployment(Container.java:409)
      15:54:07,905 ERROR [stderr] (main) ... 5 more
      15:54:07,906 ERROR [stderr] (main) Caused by: java.lang.reflect.InvocationTargetException
      15:54:07,906 ERROR [stderr] (main) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      15:54:07,907 ERROR [stderr] (main) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      15:54:07,907 ERROR [stderr] (main) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      15:54:07,908 ERROR [stderr] (main) at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      15:54:07,908 ERROR [stderr] (main) at org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader.createExtension(ServiceExtensionLoader.java:354)
      15:54:07,908 ERROR [stderr] (main) ... 12 more
      15:54:07,909 ERROR [stderr] (main) Caused by: java.lang.NoClassDefFoundError: io/undertow/servlet/ServletExtension
      15:54:07,909 ERROR [stderr] (main) at java.lang.ClassLoader.defineClass1(Native Method)
      15:54:07,909 ERROR [stderr] (main) at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      15:54:07,909 ERROR [stderr] (main) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      15:54:07,909 ERROR [stderr] (main) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      15:54:07,910 ERROR [stderr] (main) at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      15:54:07,910 ERROR [stderr] (main) at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      15:54:07,910 ERROR [stderr] (main) at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      15:54:07,910 ERROR [stderr] (main) at java.security.AccessController.doPrivileged(Native Method)
      15:54:07,910 ERROR [stderr] (main) at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      15:54:07,910 ERROR [stderr] (main) at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      15:54:07,911 ERROR [stderr] (main) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      15:54:07,911 ERROR [stderr] (main) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      15:54:07,911 ERROR [stderr] (main) at org.wildfly.swarm.undertow.descriptors.FaviconFactory.createFaviconServletExtension(FaviconFactory.java:36)
      15:54:07,911 ERROR [stderr] (main) at org.wildfly.swarm.undertow.descriptors.WebXmlContainer.addFaviconExceptionHandler(WebXmlContainer.java:52)
      15:54:07,911 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.<init>(JAXRSArchiveImpl.java:58)
      15:54:07,911 ERROR [stderr] (main) ... 17 more
      15:54:07,912 ERROR [stderr] (main) Caused by: java.lang.ClassNotFoundException: io.undertow.servlet.ServletExtension
      15:54:07,912 ERROR [stderr] (main) at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      15:54:07,912 ERROR [stderr] (main) at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      15:54:07,912 ERROR [stderr] (main) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      15:54:07,912 ERROR [stderr] (main) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      15:54:07,912 ERROR [stderr] (main) ... 32 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                rafabene Rafael Benevides
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: