This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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