title: Spring import xml from a bundle
body: <p>I have a java application that use spring with a spring.xml file in the web content. I have in my java class this piece of code:</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("WEB-INF/spring-conf.xml");
  WService ws = (WService) context.getBean("service");
  </code></pre>
  
  <p>In that spring.xml I import a xml file that lives in a library (bundle) that I've put in my project as an external library.</p>
  
  <pre><code>&lt;import resource="classpath:/org/bundle/spring2.xml" /&gt;
  </code></pre>
  
  <p>and it works but in spring2.xml and in the bundle there are also:</p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
    &lt;property name="location"&gt;
      &lt;value&gt;../properties/environment.properties&lt;/value&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  &lt;import resource="../commons/datasources.xml"&gt;&lt;/import&gt;
  &lt;import resource="../commons/context-resources.xml"&gt;&lt;/import&gt;
  </code></pre>
  
  <p>and I can't find these xml files because they live in the bundle, not in my webcontent.
  How can I indicate in my spring-conf.xml the positions of the other xml files from the beginning?
  If there are another method to do this you're welcome.
  Thank you very much.</p>