[arquillian-issues] [JBoss JIRA] (ARQ-753) ShrinkWrapClassLoader does not find service provider in WAR

Martin Kouba (JIRA) jira-events at lists.jboss.org
Fri Mar 16 04:06:48 EDT 2012


     [ https://issues.jboss.org/browse/ARQ-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kouba updated ARQ-753:
-----------------------------

    Git Pull Request: https://github.com/arquillian/arquillian-container-weld/pull/4  (was: https://github.com/arquillian/arquillian-container-weld/pull/2)

    
> ShrinkWrapClassLoader does not find service provider in WAR
> -----------------------------------------------------------
>
>                 Key: ARQ-753
>                 URL: https://issues.jboss.org/browse/ARQ-753
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Weld Containers
>    Affects Versions: weld_1.0.0.CR3
>            Reporter: Martin Kouba
>            Assignee: Martin Kouba
>             Fix For: weld_1.0.0.Final
>
>
> 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:
> {code}
> 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
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list