title: Spring - No WebApplicationContext found: no ContextLoaderListener registered?
body: <p>I am getting the following error while trying to run a Spring project</p>
  
  <pre><code>HTTP Status 500 - java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
  </code></pre>
  
  <p>Inspite of adding the listner on to my <code>web.xml</code>. I am still getting this error. Below is the listener I have added to my web.xml :</p>
  
  <pre><code> &lt;context-param&gt;
     &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
     &lt;param-value&gt;/WEB-INF/HelloWebRedirect-servlet.xml&lt;/param-value&gt;
   &lt;/context-param&gt; 
  
   &lt;listener&gt;
   &lt;listener-class&gt;
    org.springframework.web.context.ContextLoaderListener
   &lt;/listener-class&gt;
   &lt;/listener&gt; 
  </code></pre>
  
  <p>Can someone help me out in this regard?</p>