I already searched StackOverflow for \"properties inside war\", but none of the results worked for my case.
I am using Eclipse Galileo and GlassFish v3 to develop a
Check the location of the properties file in WAR file.
If it is in WEB-INF/classes directory under com/company/config directory
getResourceAsStream("com/company/config/configfile.properties") should work
or getResourceAsStream(" This should work if the config file is not under WEB-INF/classes directoy
Also try using getClass().getClassLoader().getResourceAsStream.