title: File path to a resource file inside .war folder
body: <p>I have to read records from a text file in my REST service method by accessing it by its relative path. </p>
  
  <p>The service has been deployed to JBoss Application Server 7.1.1.  </p>
  
  <p>Where should I place the file inside the JBoss directory structure
  and what would be the best way of accessing resources in this type of a scenario. </p>
  
  <p>I tried placing the file in the root of the war directory which returned <code>java.io.FileNotFoundException</code></p>
  
  <p>Accessing it through the absolute path worked fine.</p>