Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-753

ShrinkWrapClassLoader does not find service provider in WAR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • weld_1.0.0.CR4
    • weld_1.0.0.CR3
    • Weld Containers
    • None

      I ran into this issue when working with Arquillian and Weld EE 1.1 Embedded container (that uses ShrinkWrapClassLoader under the hood). ShrinkWrap correctly builds web archive with CDI extension (using org.jboss.shrinkwrap.api.container.ManifestContainer.addAsServiceProvider(Class<?>, Class<?>...); this was also discussed in SHRINKWRAP-266).

      Output:

      test.war
      /WEB-INF/
      /WEB-INF/classes/
      /WEB-INF/classes/META-INF/
      /WEB-INF/classes/META-INF/services/
      /WEB-INF/classes/META-INF/services/javax.enterprise.inject.spi.Extension
      

      However no extensions are found. org.jboss.shrinkwrap.api.classloader.ShrinkWrapClassLoader probably does not find any resource when looking for "META-INF/services/javax.enterprise.inject.spi.Extension".

      Note that I'm not quite sure whether it's ShrinkWrapClassLoader or WeldEEMockContainer issue.

              mkouba@redhat.com Martin Kouba
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: