title: The correct place to put the config file in Eclipse
body: <p>I have created a Dynamic Web Project in Eclipse and I have a following Java statement that needs to read a config file:</p>
  
  <pre><code> Document doc= new SAXReader().read(new File(ConstantsUtil.realPath+"appContext.xml"));
  </code></pre>
  
  <p>Basically, ConstantsUtil.realPath will return an empty string.</p>
  
  <p>I tried putting "appContext.xml" under both "src" folder and under "WEB-INF" folder. However, I will always get the following error:</p>
  
  <pre><code> org.dom4j.DocumentException: appContext.xml (The system cannot find the file specified)
  </code></pre>
  
  <p>I am really confused: in Eclipse, where is the correct place to put my config xml file?</p>
  
  <p>Thanks in advance.</p>