title: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
body: <p>Ok, I am 500th user asking this question, I read many <a href="https://stackoverflow.com/questions/14954931/my-application-could-not-open-servletcontext-resource">answers</a> but still having no luck.</p>
  
  <p>parent module pom contains:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
      &lt;version&gt;${spring.framework.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
      &lt;version&gt;${spring.framework.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Child module has <code>maven-jetty-plugin</code> and I run my webapp module with <code>jetty:run</code>.</p>
  
  <p><code>web.xml</code> defines standard dispatcher module:</p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I have file <code>dispatcher-servlet.xml</code> under <code>WEB-INF</code>, though start fails with:</p>
  
  <pre><code>FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
  </code></pre>
  
  <p>What is wrong? Documentation and everybody says that Spring MVC will search for XX-servlet.xml, where XX is name of servlet. Why does it search for <code>applicationContext.xml</code>?</p>