0 Replies Latest reply on May 11, 2006 12:10 PM by Jit Roy Chowdhury

    Problem in accessing Resource on JBoss

    Jit Roy Chowdhury Newbie

      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?

      i) Both statements work in Tomcat
      ii) Even if the war is deployed as a folder the same happens in JBoss