title: Error configuring application listener of class: ClassNotFoundException
body: <p>in my java maven project, I am getting an exception:</p>
  
  <pre><code>SEVERE: Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener]
  java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
  </code></pre>
  
  <p>However, the maven pom eclipse, the build path libraries tab has spring-web-4.3.4.RELEASE.jar which contains that class, and is there because of the pom contains </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;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>where     </p>
  
  <pre><code>&lt;spring.version&gt;4.3.4.RELEASE&lt;/spring.version&gt;
  </code></pre>
  
  <p>And that so the question is, why is that exception being thrown rather than that class being loaded?</p>