Problem is not with init param setting. Problem is how you are accessing the file. Make sure you have a config file in your class path, e.g. under Web-Inf directory; then change your code to access file like
InputStream is = getClass().getResourceAsStream(fileName);
p = new Properties();
p.load(is);