-
1. Re: how to access a module in JBoss 7 from a war app?
rhusar Jan 19, 2012 8:01 AM (in response to 23foxleung)1. how to compile my project without jar A in my project's /WEB-INF/lib? Because I want to access it as a module managed by JBoss, putting A in /WEB-INF/lib seems to defeat the purpose.
For instance in Maven add that dependency with <scope>provided</scope>. Then it wont get included in the final war/jar.
2. Other than declaring "Dependencies:... " in manifest.mf, what else needs to be done?
If the module is there and is correct then thats all.
-
2. Re: how to access a module in JBoss 7 from a war app?
mpashworth Jan 20, 2012 8:21 AM (in response to 23foxleung)Hi,
I used the jboss-deployment-structure.xml to access the `com.sun.xml.bind` module from a web application, the syntax is as follows:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="com.sun.xml.bind"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
For good measure, I also created a META-INF\MANIFEST.MF with the dependy of the module:
Manifest-Version: 1.0
Created-By: Apache Maven
Dependencies: com.sun.xml.bind
Regards,
Mark P Ashworth
-
3. Re: how to access a module in JBoss 7 from a war app?
lauradp Jul 2, 2014 3:47 PM (in response to 23foxleung)Did you find a solution to you issue??
Lauta