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

Running a main() in Intellij fails with ClassNotFoundException

    Details

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

      Description

      Running https://github.com/wildfly-swarm/wildfly-swarm-examples/blob/master/jaxrs/jaxrs-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jaxrs/shrinkwrap/Main.java in an IDE results in the following exception:

      Caused by: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/jboss/shrinkwrap/descriptor/api/jbossdeployment13/JBossDeploymentStructureDescriptor
      	at org.wildfly.swarm.spi.api.JBossDeploymentStructureAsset.<init>(JBossDeploymentStructureAsset.java:41)
      	at org.wildfly.swarm.spi.api.JBossDeploymentStructureContainer.getDescriptorAsset(JBossDeploymentStructureContainer.java:66)
      	at org.wildfly.swarm.spi.api.JBossDeploymentStructureContainer.addModule(JBossDeploymentStructureContainer.java:36)
      	at org.wildfly.swarm.spi.api.JBossDeploymentStructureContainer.addModule(JBossDeploymentStructureContainer.java:31)
      	at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.addExceptionMapperForFavicon(JAXRSArchiveImpl.java:120)
      	at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.<init>(JAXRSArchiveImpl.java:56)
      	... 16 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/shrinkwrap/descriptor/api/jbossdeployment13/JBossDeploymentStructureDescriptor
      	... 22 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.shrinkwrap.descriptor.api.jbossdeployment13.JBossDeploymentStructureDescriptor
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 22 more
      

      It appears that Shrinkwrap Descriptors 2.0.0-alpha-8 is being preferred instead of 2.0.0-alpha-9

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                kenfinni Ken Finnigan
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: