title: When ever i add spring security configuration in web.xml i get the error "No WebApplicationContext found: no ContextLoaderListener registered?"
body: <p>When i add the following into web.xml </p>
  
  <pre><code>   &lt;filter&gt;
       &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
       &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
      &lt;init-param&gt;
           &lt;param-name&gt;contextAttribute&lt;/param-name&gt;
      &lt;param-value&gt;org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
      &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>I am getting the following error</p>
  
  <pre><code>java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:251)
  </code></pre>
  
  <p>Could someone help me here?</p>