title: Glassfish cannot find my file - FileNotFoundException
body: <p>I am creating a RESTful web service using Netbeans 8.1 and Glassfish 4.1. I have used Maven web application to create a server application.</p>
  
  <p>I am using a client that sends an XML request and gets back a XML response from the server. I have a <code>FoodItemData.xml</code> file in my server project that I read from everytime a request comes in from the client. </p>
  
  <p>I have stored the <code>FoodItemData.xml</code> file in the </p>
  
  <blockquote>
    <p>project_name -> src -> resources -> FoodItemData.xml </p>
  </blockquote>
  
  <p>of my project.</p>
  
  <p>Whenever I run my server application, Glassfish throws the following error:</p>
  
  <blockquote>
    <p>Severe:   java.io.FileNotFoundException: E:\GlassFish\glassfish-4.1.1\glassfish\domains\domain1\config\src\resources\FoodItemData.xml (The system cannot find the path specified)</p>
  </blockquote>
  
  <p>If I create the file at path <code>src/resources/FoodItemData.xml</code> in the 'config' directory of Glassfish, the error goes away. 
  My Glassfish 'config' directory by default does not have the <code>src/resources/FoodItemData.xml</code> file.</p>
  
  <p>My question is, is there any way I can make the server application automatically create it? Because I am going to run this server application on a different system, so I cannot always manually create the folder in the Glassfish directory.</p>
  
  <p>Quick help would be appreciated. Thank you!</p>