title: org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;) and chain reaction
body: <p>I was trying to make a web application (not coded by me) to run, but, upon deployment, I am getting the following exceptions. </p>
  
  <ol>
  <li><blockquote>
    <p>java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;)V</p>
  </blockquote></li>
  </ol>
  
  <p>I have already checked and validated that there are no version conflicts for the spring-blabla jars in the <strong>WEB-INF/libs</strong> folder (I am using spring version 3.2.0.M1) and the dependecies in the <strong>pom.xml</strong> file have the following form.</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;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I have been quite desperate, so, as a last resort, I checked a chinese site and experimented with the following listener in the *<em>web.xml</em>*file</p>
  
  <pre><code>&lt;listener&gt;
  &lt;listener-class&gt;org.springframework.web.util.IntrospectorCleanupListener&lt;/listener-class&gt;
  </code></pre>
  
  <p></p>
  
  <p>under the already existing one:</p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>When I am running the application, I am no longer receiving the previous exception, but another one,</p>
  
  <blockquote>
    <p>Context initialization failed
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.jndi.JndiLocatorDelegate.isDefaultJndiEnvironmentAvailable()Z</p>
  </blockquote>
  
  <p>and I really have no idea what to do ...</p>