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

ClassNotFoundException for org.objectweb.asm.Opcodes

    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

      My JAX-RS fraction utilizing projects throw an exception on startup unless a direct dependency on org.ow2.asm:asm is declared in each project's pom.xml
      <pre>
      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:497)
      at org.wildfly.swarm.bootstrap.Main.main(Main.java:59)
      Caused by: java.lang.LinkageError: Failed to link org/wildfly/swarm/jaxrs/ApplicationFactory (Module "org.wildfly.swarm.bootstrap:main" from BootModuleLoader@4cdbe50f for finders [org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder@66d33a, org.wildfly.swarm.bootstrap.modules.BootstrapModuleFinder@7cf10a6f, org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder@7e0babb1, org.wildfly.swarm.bootstrap.modules.AppDependenciesModuleFinder@6debcae2])
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:269)
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
      at org.jboss.modules.Module.loadModuleClass(Module.java:560)
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
      at org.wildfly.swarm.jaxrs.JAXRSDeployment.ensureApplication(JAXRSDeployment.java:69)
      at org.wildfly.swarm.jaxrs.JAXRSDeployment.getArchive(JAXRSDeployment.java:76)
      at com.test.service.Application.main(Application.java:35)
      ... 5 more
      Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:353)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:432)
      ... 16 more
      Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Opcodes from [Module "org.wildfly.swarm.bootstrap:main" from BootModuleLoader@4cdbe50f for finders [org.wildfly.swarm.bootstrap.modules.BootstrapClasspathModuleFinder@66d33a, org.wildfly.swarm.bootstrap.modules.BootstrapModuleFinder@7cf10a6f, org.wildfly.swarm.bootstrap.modules.ClasspathModuleFinder@7e0babb1, org.wildfly.swarm.bootstrap.modules.AppDependenciesModuleFinder@6debcae2]]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
      ... 20 more
      </pre>

        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: