-
1. Re: Load arbitrary resources outside ear/war/jar
jaikiran Apr 7, 2014 5:55 AM (in response to littlewing88)Francesco Calabri wrote:
added the dependency to this module inside the MANIFEST of my war.
What does it look like? Also post the output of:
jar -tf yourwar.war
Also post the directory listing of {WILDFLY_HOME}\modules\system\layers\base\com\mycomp\myapp\resources\main folder.
-
2. Re: Re: Load arbitrary resources outside ear/war/jar
littlewing88 Apr 7, 2014 6:34 AM (in response to jaikiran)Thanks for the quick response.
In my MANIFEST i have the dependency
Dependencies: com.mycomp.myapp.resources
The war is deployed exploded inside an ear, so i guess I can't run jar -tf for you, by the way the structure is
myapp.ear`--- META-INF/
`--- META-INF/MANIFEST.MF (empty)
`--- META-INF/application.xml
`--- webapp1.war
`--- webapp2.war
`--- META-INF/
`--- META-INF/MANIFEST.MF (the one with the dependency "com.mycomp.myapp.resources")`--- WEB-INF
`--- WEB-INF/web.xml
I don't have any other configuration (such as jboss-deployment-structure.xml) in any other inside the war or the ear.
In the folder {WILDFLY_HOME}\modules\system\layers\base\com\mycomp\myapp\resources\main i have
.
..
application_setting.properties
module.xml
Thanks!
-
3. Re: Load arbitrary resources outside ear/war/jar
littlewing88 Apr 7, 2014 11:09 AM (in response to littlewing88)Actually my solution works, maybe I had something wrong elsewhere.
Thanks