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

Tomas Repel (JIRA) issues at jboss.org
Tue Feb 2 09:00:00 EST 2016


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

Tomas Repel commented on WFLY-3971:
-----------------------------------

Hi, I tested this with WildFly 10.0.0.Final and it seems it is working now! Adding `_annotations="true" services="import"_` parameters to _module_ element in _jboss-deployment-structure.xml_ file is totally sufficient. No need for indexing using jandex, no need for copying _/META-INF/services_ to your war directly.

You can give it a try.

> 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, 9.0.0.Final, 10.0.0.Alpha6
>            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.4.11#64026)


More information about the jboss-jira mailing list