title: After deployment JDBC.Properties outside .Jar not found by Spring anymore
body: <p>lately a requirement came up to outsource the database settings out of Spring applicationContext.xml. Therefore we wanted to have a jdbc.properties file outside the builded jars, so the user can easily change the jdbc.settings. So far all worked fine within the eclipse workspace, but as soon as I build the distribution with ant, the applicationContext.xml doesnt find the jdbc.properties anymore.</p>
  
  <p>The applicationContext.xml looks like the following:</p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
    &lt;property name="locations"&gt;
      &lt;value&gt;classpath:jdbc.properties&lt;/value&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="dataSource"  class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt; 
    &lt;property name="driverClassName" value="${jdbc.driver}"/&gt;
    &lt;property name="url" value="${jdbc.url}"/&gt;
    &lt;property name="username" value="${jdbc.user}"/&gt;
    &lt;property name="password" value="${jdbc.password}"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Within eclipse I used following classpath, so the jdbc.properties (which is placed in an eclipse project folder "config") gonna get found:</p>
  
  <p>classpath file:</p>
  
  <pre><code>&lt;classpath&gt;
          ...
   &lt;classpathentry kind="src" path="config"/&gt;
          ...
  &lt;/classpath&gt;
  </code></pre>
  
  <p>Until here all works fine. Now I build the project with Ant. The project.jar gets created, and a seperate config folder right next to it as well with the jdbc.properties file in it. Within the Manifest.mf there is an entry: </p>
  
  <pre><code>config/jdbc.properties
  </code></pre>
  
  <p>But when I now start the server, the jdbc.properties are not found. I noticed, when I change the Manifest.mf entry to:</p>
  
  <pre><code>config/.
  </code></pre>
  
  <p>it works fine again. But I dont understand why this is different. Can anyone explain me this behaviour? Or maybe even knows what I am doing wrong? Obviously I have to change the Ant file somehow, so he just adds the config folder in the manifest file, and not only the jdbc.properties-file itself? </p>
  
  <p>Thank you in advance!</p>