No I don't think that is the problem. It seems to be an issue with the way tomcat handles files in the web app (exploded or in a war). I don't think tomcat can locate the resource. All the java files in tomcat get placed in the build directory in the corresponding package, so what relative or absolute path do I have to use to point to files in the WEB-INF directory?
I've a question related to FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream() function, it returns only the web application name as string and I wanna to get a property file read from WEB-INF folder. But throws null pointer exception when I not give path to getResourceAsStream("/WEB-INF/A.properties").
I hope the WEB-INF folder is added with the web application's class path, so it has to retrieve the file right? Kindly clarify me. Thanks in advance.
No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com