1. I deploy a war such that in the WEB-INF/classes folder of a war contains a properties file (say a.properties)
2. Now, from a JSP if
(i)I get the resource as getClass().getClassLoader().getResource("/a.properties"), I am not getting that resource, but
ii) I am able to get if I use getClass().getClassLoader().getResource("a.properties");
I would like to know the difference between the 2 calls. Why does it fail if I give the path?
Note:
i) Both statements work in Tomcat
ii) Even if the war is deployed as a folder the same happens in JBoss