title: Junit class - Failed to load ApplicationContext
body: <p>I am working on the Spring Framework. and made one junit class 
  but i am not able to properly load the xml files needed to run the <strong>@Test</strong> method in junit class. In my case </p>
  
  <ul>
  <li>xml file are placed under folder <code>WEB-INF</code></li>
  <li>the junit test class is under <code>test/&lt;package_name&gt;</code></li>
  </ul>
  
  <p>Please suggest me right way to declare the xml files in  </p>
  
  <p><strong>@ContextConfiguration</strong></p>
  
  <pre><code>@ContextConfiguration( locations={ "classpath:/applicationContext.xml",
          "classpath:/applicationDatabaseContext.xml" })
  </code></pre>
  
  <p><strong>Error</strong> :</p>
  
  <blockquote>
    <p>Caught exception while allowing TestExecutionListener
    [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@48fa48fa]
    to prepare test instance [] java.lang.IllegalStateException: Failed to
    load ApplicationContext</p>
  </blockquote>