wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Properties file outside the war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Properties file outside the war file" Watch "Properties file outside the war file" New topic

Properties file outside the war file

sridhar vu

Joined: Feb 28, 2005
Posts: 15
I'm having trouble taking out the KeyStore or the properties file from the Axis2 war file. As long as they are in the Axis2.war/WEB-INF/classes directory, everything works fine. I'm using JBoss 4.0.5 and would like to put KeyStore or the properties file outside the Axis2.war file. I tried putting it in Jboss/server/default/lib ; Jboss/server/conf and also manually updated the JBoss CLASSPATH in the run.bat file but doesn't work.

The properties file (test.properties) in Axis2.war/WEB-INF/classes folder has the following contents.


If I keep both the TestKeyStore and test.properties files in the Axis2.war/WEB-INF/classes folder, it works fine.

Can someone please suggest me how to put make the properties file or the KeyStore file available to Axis2.war after it is deployed?

I'm putting Axis2.war in an ear which contains some jars and 2 other war files.

Any help would be greatly appreciated.

Consider Paul's rocket mass heater.
subject: Properties file outside the war file
Similar Threads
Deployment issue in Jboss 4.2.2 GA with Axis2 1.4
JBOSS configuring properties fies in classpath
Need Suggetions
JBoss class loading and reading .properties files
Don't see properties files after deployment from Jdeveloper 11g