3 Replies Latest reply on Jun 12, 2012 3:01 PM by Ravi Jegga

    Reading proprties file directly under WEB-INF folder

    862484
      Hi,

      We have ADF fusion web application, which is being deployed as ear in a standalone web-logic server.
      The application have several projects, which are bundled as a jar inside the ear, on only one top level project is used to create WAR

      The WEB-INF folder of this war contains a properties file.

      Now from one of the project which is bundled as jar , i want to read the properties file, but i am not able to get it.

      I have already tried using - this.getClass().getClassLoader().getResourceAsStream("/WEB-INF/some.properties"); but this doesn't work.


      The fact is that i cant place this file under WEB-INF/classes folder because there is none, also i want to read it directlu under WEB-INF folder

      Is there any way by which i can access this file??

      thanks-
      Ankit