title: How is ContextLoaderListener from Spring being run even when web.xml does not include it?
body: <p>I have a webapp I inherited from another team that uses spring.  I have been trying to debug some odd behavior and wanted to "turn off" any spring servlets/filters/context-listeners.</p>
  
  <p>So I removed the entry in web.xml that looked like this...</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;
          /WEB-INF/applicationContext.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;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>Yet somehow after a clean/build and run of our application I am hitting org.springframework.web.context.ContextLoaderListener on the method contextInitialized.</p>
  
  <p>So my question is if my web.xml no longer declared ContextLoadListener as a listener to run how/why is it being run?  I looked and the source for Spring 3.2.3-RELEASE does not appear to have the Servlet 3.0 Annotation @WebServletContextListener.</p>
  
  <p>So why/how is this Context Listener running?</p>
  
  <p><a href="https://i.stack.imgur.com/5jw35.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5jw35.png" alt="enter image description here"></a></p>