This content has been marked as final.
Show 1 reply
-
1. Re: Reference external libraries from a SAR archive in JBoss AS 7
andrei.serea Apr 11, 2013 10:54 AM (in response to andrei.serea)In the meantime I managed to figure it out, thanks to the following articlehttp://middlewaremagic.com/jboss/?p=1081
The catch is simple: Just add the jboss-deployment-structure.xml file to the META-INF directory, with the following content:
<jboss-deployment-structure>
<deployment>
<resources>
<resource-root path="_path_to_archive_goes_here_" />
</resources>
</deployment>That's it. Jboss will add the resource specified to the classpath of the deployed SAR archive. Hope this helps somebody.