I want to load a properties file to be used by my Web Application in WAS CE.
When I do it on websphere ND or sun One I include it in the jvm arguments as a '-D' parameter for eg.
I tried putting this param in the setenv of WAS CE, but it did not work. In fact I placed it in almost every directory after the war was extracted in the repository, but WAS CE cannot seem to find it.
In the code, I am accessing the file as:
this.initprop = new Properties();
And the exception I'm getting is:
java.io.IOException: java.io.FileNotFoundException: giadmingui.properties (The system cannot find the file specified) giadmingui.util.Util.setPropertyFile(Util.java:105) giadmingui.util.Util.initialise(Util.java:162)
I'm using WAS CE 2.1..1.6
Please tell me how to make WAS CE load this properties file. Any help would be greatly appreciated.