title: Spring: How to load @ContextConfiguration from jar classpath? I get FileNotFoundException
body: <p>I have a project called <code>X</code> which has <code>wireup.xml</code> laid as follows :</p>
  
  <pre><code>X/
   Module/
         src/
             main/
                 resources/
                          com.here/
                                  wireup.xml  
  </code></pre>
  
  <p>I import <code>Module</code> of <code>project X</code> in <code>project Y</code> as  </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.org.X&lt;/groupId&gt;
          &lt;artifactId&gt;Module&lt;/artifactId&gt;
          &lt;version&gt;master-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;  
  </code></pre>
  
  <p>Now in the test I want bean that is in <code>wireup.xml</code>, so I do the following :  </p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = {"classpath:com/org/X/Module/src/main/resources/com/here/wireup.xml"})
  public class MongoSaverTest extends Case {
    @Autowired
    private SomeBeanInWireup variable;
  }   
  </code></pre>
  
  <p>But I get error on running the test saying  </p>
  
  <pre><code>Caused by: java.io.FileNotFoundException: class path resource [com/org/X/Module/src/main/resources/com/here/wireup.xml] cannot be opened because it does not exist
  </code></pre>
  
  <p>How can I fix this? How can I know the correct path?</p>