[jboss-user] [Installation, Configuration & DEPLOYMENT] - Annoyance with EARs and .properties file
sil
do-not-reply at jboss.com
Mon Jul 21 15:44:57 EDT 2008
So I have a little annoyance here. Within my EAR I have a .properties file that multiple modules read from through an XML file by setting values to classpath:some.properties. It all works fine and dandy if I place the .properties file in the base of the EAR like so:
myApp.ear
| |
| |--- some.properties
| |
| |--- META-INF
| | |
| | |--- (some files)
| |
| |--- APP-INF
| | |
| | |--- lib
| | | |
| | | |--- (various .jar files)
|
However, I really want it to be read from APP-INF/classes instead, like so:
myApp.ear
| |
| |--- META-INF
| | |
| | |--- (some files)
| |
| |--- APP-INF
| | |
| | |--- lib
| | | |
| | | |--- (various .jar files)
| | |
| | |--- classes
| | | |
| | | |--- some.properties
I have tried adding a class path entry to the MANIFEST.MF file with no success. I have tried playing around in application.xml and jboss-app.xml as well. I always get the error:
java.io.FileNotFoundException: class path resource [some.properties] cannot be opened because it does not exist
I am looking for any tips or advice. Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165736#4165736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165736
More information about the jboss-user
mailing list