[jboss-user] [Beginner's Corner] - how to load property file outside of the webapplication in Jboss server?

Rose Kad do-not-reply at jboss.com
Wed May 12 17:56:34 EDT 2010

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


it is throwing null pointer exception...

but when i do the following it is working


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.



Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100512/56f62678/attachment-0001.html 

More information about the jboss-user mailing list