title: How to specify relative path for hibernate.javax.cache.uri property in xml based spring configuration
body: <p>I have legacy spring application which is built using xml based configuration I am trying to configure session factory with second level cache.</p>
  
  <p>I have <code>ecache.xml</code> file present in resource folder also <code>hibernate.javax.cache.uri</code> property expects absolute path for <code>ecache.xml</code>. </p>
  
  <p>if i provide URI as <code>file:///c:/App/resources/ecache.xml</code> it works. But this is not good for deployments, maintenance.</p>
  
  <p>how can specify relative path like <code>classpath:ehcache.xml</code> or <code>/WEB-INF/ehcahe.xml</code> in spring xml based configurations ?</p>
  
  <p><strong>Note</strong>: I am not using spring boot.</p>
  
  <pre><code>&lt;bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"&gt;
          &lt;property name="dataSource" ref="dataSource"/&gt;
          &lt;property name="packagesToScan"&gt;
              &lt;list&gt;
                  &lt;value&gt;com.example.vl.model&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
          &lt;property name="configLocation" value="classpath:hibernate.cfg.xml" /&gt;
          &lt;property name="hibernateProperties"&gt;
              &lt;props&gt;
                  &lt;prop key="hibernate.javax.cache.uri"&gt;file:///c:/App/resources/ecache.xml&lt;/prop&gt;
              &lt;/props&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>