[jboss-jira] [JBoss JIRA] (WFLY-3971) Jar Services in META-INF/services are not loaded from static modules

Stuart Douglas (JIRA) issues at jboss.org
Mon Oct 13 21:08:35 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011395#comment-13011395 ] 

Stuart Douglas commented on WFLY-3971:
--------------------------------------

This is bootstrapped via a ServletContainerInitializer not a a META-INF/services based entry. 

SCI's are discovered by looking at the super class, however because the parent SCI is located outside the deployment we have no way of discovering it (other than loading every single class in the deployment, which we are not going to do).

If you index the module with jandex and import the annotations then this *may* work (as the superclass information from Jandex is used to discover the SCI's), however there are no guarantees. 

> Jar Services in META-INF/services are not loaded from static modules
> --------------------------------------------------------------------
>
>                 Key: WFLY-3971
>                 URL: https://issues.jboss.org/browse/WFLY-3971
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: Web (Undertow)
>    Affects Versions: 8.1.0.Final
>            Reporter: Tomas Repel
>            Assignee: Stuart Douglas
>
> If the web application (war) uses jar file from static module, the content of META-INF/services has no effect. If the jar is located inside WEB-INF/lib, services are loaded successfully.
> Neither adding `Dependencies: my.module.name.com services` into MANIFEST.MF nor adding `services="import"` to jboss-deployment-structure.xml works.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list