title: Multiple ContextLoader definition in web.xml
body: <p>I encountered this <code>"Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!"</code> error.</p>
  
  <p>How I defined my listener and context param:</p>
  
  <pre><code>&lt; listener &gt; 
  &lt; listener-class &gt; org.springframework.web.context.ContextLoaderListener &lt; /listener-class &gt;
  &lt; context-param &gt;
  &lt; param-name &gt; contextConfigLocation &lt; /param-name &gt;
  &lt; param-value &gt; /WEB-INF/applicationContext.xml,/WEB-INF/applicationContext-securityBeans.xml &lt; /param-value &gt;
  </code></pre>
  
  <p>It was working fine when I was using Spring 3.1.2, Spring Security 3.1.4. I did an upgrade to Spring 4.1.1 and  Spring Security 3.2.5 and got this error.</p>
  
  <p>May I know how I may resolve this error?</p>
  
  <p>Thanks in advance!
  Whiskers</p>