Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-430

ArchivePaths.createInstance breaks in modular CL environments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 1.1.1-alpha-1
    • 1.1.0
    • api
    • None

    Description

      Trace:

      java.lang.ExceptionInInitializerError
      	at org.jboss.shrinkwrap.api.ShrinkWrap.getDefaultDomain(ShrinkWrap.java:108)
      	at org.jboss.shrinkwrap.api.ArchivePaths.createInstance(ArchivePaths.java:115)
      	at org.jboss.shrinkwrap.api.ArchivePaths.create(ArchivePaths.java:51)
      	at org.jboss.shrinkwrap.impl.base.ArchiveBase.addAsDirectory(ArchiveBase.java:381)
      	at org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl.importFrom(ZipImporterImpl.java:115)
      	at org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl.importFrom(ZipImporterImpl.java:45)
      	at org.jboss.arquillian.daemon.server.NettyServer$DeployHandlerAdapter.inboundBufferUpdated(NettyServer.java:315)

      This is because we rely upon the default Domain to obtain the ArchivePath implementation:

      final Class<?> archivePathImplClass;
              try {
                  archivePathImplClass = ClassLoaderSearchUtil.findClassFromClassLoaders(PATH_IMPL, ShrinkWrap
                      .getDefaultDomain().getConfiguration().getClassLoaders());
              } catch (final ClassNotFoundException cnfe) {
                  throw new IllegalStateException("Could not find the archive path implementation class " + PATH_IMPL
                      + " in any configured ClassLoader", cnfe);
              }

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            arubinge@redhat.com Andrew Rubinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: