title: Add jar configuration in java servlet web application
body: <p>I have a 3rd party jar package that uses a config file (XML). If this package is used in a desktop application, the XML has to be placed in same folder where the application jar is present. </p>
  
  <p>Now I am using the same jar package in a web application using servlet and jsp pages. I am not sure where to put the XML file. The web application is unable to look for this XML and shows error "Unable to find config file" (error from jar API).</p>
  
  <p>Already tried placing the XML file in <code>WEB-INF/Classes</code>, <code>/lib</code> folders.</p>
  
  <p>The XML contains the following code-</p>
  
  <pre><code>&lt;Configuration&gt;
      &lt;!-- Address --&gt;
      &lt;Address value="https:xxxxxxxxxxxxxxxxxxxxx" /&gt;
  &lt;/Configuration&gt;
  </code></pre>