Rose Kad [
http://community.jboss.org/people/rkadupuk] replied to the discussion
"how to load property file outside of the webapplication in Jboss server?"
To view the discussion, visit:
http://community.jboss.org/message/542729#542729
--------------------------------------------------------------
continue...
it is throwing null pointer exception...
but when i do the following it is working
System.out.println(ClassLoader.+getSystemClassLoader+().getResource("log4j-debug.properties").getPath());
where log4j-debug.properties is inside the run.jar
Similary I tried with ResourceBundle. It is working for the props inside the run.jar file
only.
At present I am placing the properties file inside the /server/conf/ folder and changed
the property-server.xml and getting the properties using
System.getProperty("");
But my question is why the property file inside the run.jar is available but not the
property file from the custom lib.
Any help is greatly appreciated.
Regards,
Rose.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/542729#542729]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]