[jboss-as7-dev] How should META-INF/services be dealt with in modules?

Richard Opalka ropalka at redhat.com
Mon Jun 6 03:29:47 EDT 2011


To solve your problem you need to export services:

[nucleus][/home/opalka/git/jboss-modules]>git diff
diff --git a/src/test/resources/test/repo/test/jaxrs/main/module.xml 
b/src/test/resources/test/repo/test/jaxrs/main/module.xml
index fcf53a7..e6da87e 100644
--- a/src/test/resources/test/repo/test/jaxrs/main/module.xml
+++ b/src/test/resources/test/repo/test/jaxrs/main/module.xml
@@ -29,7 +29,7 @@
</resources>

<dependencies>
- <module name="test.jaxrs-jaxb-provider" services="import" />
+ <module name="test.jaxrs-jaxb-provider" services="export" />
</dependencies>
</module>

Rio

On 06/05/2011 12:34 AM, Scott Stark wrote:
> I created an issue that references a test in my
> https://github.com/starksm64/jboss-modules repo showing the problem.
> https://issues.jboss.org/browse/MODULES-87
>
> On 6/4/11 7:26 AM, Jaikiran Pai wrote:
>> I think the JaxrsDependencyProcessor needs to be fixed
>> https://github.com/jbossas/jboss-as/blob/master/jaxrs/src/main/java/org/jboss/as/jaxrs/deployment/JaxrsDependencyProcessor.java
>> to import the services from the dependencies it's adding.
>>
>> -Jaikiran
>> On Saturday 04 June 2011 10:21 AM, Scott Stark wrote:
>>> Just adding the following did not do the trick, but have not looked into
>>> it further.
>>>
>>> <module xmlns="urn:jboss:module:1.0"
>>> name="org.jboss.resteasy.resteasy-jaxrs">
>>> <resources>
>>> <resource-root path="resteasy-jaxrs-2.1.0.GA.jar"/>
>>> <resource-root path="resteasy-jaxrs-2.1.0.GA-jandex.jar"/>
>>> <!-- Insert resources here -->
>>> </resources>
>>>
>>> <dependencies>
>>> <module name="javax.api"/>
>>> <module name="javax.annotation.api"/>
>>> <module name="javax.activation.api"/>
>>> <module name="javax.ws.rs.api"/>
>>> <module name="org.apache.httpcomponents" />
>>> <module name="org.apache.commons.codec" />
>>> <module name="org.scannotation.scannotation" />
>>> <module name="javax.servlet.api"/>
>>> <module name="org.jboss.resteasy.resteasy-jaxb-provider"
>>> services="import" />
>>> <module name="org.jboss.resteasy.resteasy-jackson-provider"
>>> services="import" />
>>> </dependencies>
>>> </module>
>>>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Richard Opalka
ropalka at redhat.com
JBoss, by Red Hat

Office: +420 222 365 200
Mobile: +420 731 186 942



More information about the jboss-as7-dev mailing list