title: java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener
body: <p>I have a webapp built using spring framework. I'm trying to deploy this to Tomcat6 using Eclipse. Everytime i make a change to jsp file, I had to clean the build, publish it &amp; then start the server. I believe, we don't have to do all these steps for JSP changes. If i just publish the files, when the server is running, i get the below exceptions</p>
  
  <blockquote>
    <p>SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
    java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener</p>
    
    <p>SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.util.Log4jConfigListener
    java.lang.NoClassDefFoundError: org/springframework/util/Log4jConfigurer</p>
  </blockquote>
  
  <p>And the war file is not getting deployed in server. </p>
  
  <p>If I make a change to JSP file &amp; then click restart in eclipse, it sometimes publish the files &amp; then start the server. But in some cases, it restarts the server &amp; then publishes the files (in which case i got the above mentioned exceptions &amp; the war file was not getting deployed). </p>
  
  <p>Ideal way that it works is, Stop the server, publish the contents &amp; then start the server. I hate to do this every time i make a simple jsp change. Is there any alternate one click process to do this? </p>