This content has been marked as final.
Show 1 reply
-
1. Re: how to load property file outside of the webapplication in Jboss server?
rkadupuk May 12, 2010 5:56 PM (in response to rkadupuk)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.