5 Replies Latest reply on Apr 25, 2014 1:19 PM by Ramya M

    Not able to read a file inside WEB-INF in jboss-as-7.1.0.Final

    Aslam Mohd Newbie

      Hi,

       

      I have a file in WEB-INF/config/myfile.xml.

       

      When I read the file using following code, I get stream as null. But same code works in Jboss5.1GA.

      InputStream stream = getClass().getClassLoader().getResourceAsStream(../config/myfile.xml)

       

      Could some one help?