[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-430) ArchivePaths.createInstance breaks in modular CL environments

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Oct 30 10:59:01 EDT 2012


Andrew Rubinger created SHRINKWRAP-430:
------------------------------------------

             Summary: ArchivePaths.createInstance breaks in modular CL environments
                 Key: SHRINKWRAP-430
                 URL: https://issues.jboss.org/browse/SHRINKWRAP-430
             Project: ShrinkWrap
          Issue Type: Bug
          Components: api
    Affects Versions: 1.1.0
            Reporter: Andrew Rubinger
            Assignee: Andrew Rubinger
            Priority: Blocker
             Fix For: 1.1.1


Trace:

{code}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){code}

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

{code}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);
        }{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list