title: org.apache.catalina.core.StandardContext listenerStart java.lang.NoClassDefFoundError:
body: <p>please help me, I have never worked on eclipse IDE before. I am working on a self project on myeclipse. now my eclipse has been expired. then i downloaded eclipse indigo. and import my project in that. after that I am not able to deploy my project.</p>
  
  <p>I am using struts 1.2 and tomcat.
  I configured tomcat in eclipse. i can start it also. but when I am deploying the project. it is not able to find the listner class even(web.xml entry). </p>
  
  <p>please help me. </p>
  
  <p>I am facing following issue while starting the server</p>
  
  <pre><code>Oct 15, 2011 3:17:28 AM org.apache.catalina.core.AprLifecycleListener init
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:\app\abhi\product\11.2.0\dbhome_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Broadcom\WHL\;C:\Program Files\Broadcom\WHL\syswow64;C:\Program Files\Broadcom\WHL\SysWow64\;C:\Program Files\Broadcom\WHL\SysWow64\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Intel\Services\IPT\;C:\Oracle\Middleware\jdk160_21\bin;.
  Oct 15, 2011 3:17:28 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:friend' did not find a matching property.
  Oct 15, 2011 3:17:28 AM org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  Oct 15, 2011 3:17:28 AM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 367 ms
  Oct 15, 2011 3:17:28 AM org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  Oct 15, 2011 3:17:28 AM org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.33
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Error configuring application listener of class jaha.Customer.util.ApplicationScopeInit
  java.lang.NoClassDefFoundError: ServletContextListener
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  Caused by: java.lang.ClassNotFoundException: ServletContextListener
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      ... 23 more
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Skipped installing application listeners due to previous error(s)
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.StandardContext start
  SEVERE: Error listenerStart
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.StandardContext start
  SEVERE: Context [/friend] startup failed due to previous errors
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor host-manager.xml
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor manager.xml
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory docs
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory examples
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.ApplicationContext log
  INFO: ContextListener: contextInitialized()
  Oct 15, 2011 3:17:29 AM org.apache.catalina.core.ApplicationContext log
  INFO: SessionListener: contextInitialized()
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory ROOT
  Oct 15, 2011 3:17:29 AM org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on http-8080
  Oct 15, 2011 3:17:29 AM org.apache.jk.common.ChannelSocket init
  INFO: JK: ajp13 listening on /0.0.0.0:8009
  Oct 15, 2011 3:17:29 AM org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=0/14  config=null
  Oct 15, 2011 3:17:29 AM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 593 ms
  </code></pre>
  
  <p>...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
  
   &lt;display-name&gt;friend&lt;/display-name&gt;
   &lt;context-param&gt;
    &lt;param-name&gt;imagePath&lt;/param-name&gt;
    &lt;param-value&gt;D:\\OrderID_images&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;listener&gt;
    &lt;listener-class&gt;jaha.Customer.util.ApplicationScopeInit&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;servlet&gt;
    &lt;servlet-name&gt;action&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.apache.struts.action.ActionServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;config&lt;/param-name&gt;
     &lt;param-value&gt;/WEB-INF/struts-config.xml&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;debug&lt;/param-name&gt;
     &lt;param-value&gt;3&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;detail&lt;/param-name&gt;
     &lt;param-value&gt;3&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
   &lt;/servlet&gt;
   &lt;servlet&gt;
    &lt;servlet-name&gt;action_tmp&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.apache.struts.action.ActionServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;config&lt;/param-name&gt;
     &lt;param-value&gt;/WEB-INF/struts-config.xml&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;debug&lt;/param-name&gt;
     &lt;param-value&gt;3&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;detail&lt;/param-name&gt;
     &lt;param-value&gt;3&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
   &lt;/servlet&gt;
   &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;action&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
   &lt;welcome-file-list&gt;
    &lt;welcome-file&gt;welcome.jsp&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-html.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-html.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-bean.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-bean.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-logic.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-logic.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-tiles.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-tiles.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;!-- The JSTL and Struts-EL tlds --&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-bean-el.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-bean-el.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-html-el.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-html-el.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/struts-logic-el.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/struts-logic-el.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/c.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/c.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/pager-taglib.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/pager-taglib.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/mytags.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/mytags.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;taglib&gt;
    &lt;taglib-uri&gt;/WEB-INF/displaytag.tld&lt;/taglib-uri&gt;
    &lt;taglib-location&gt;/WEB-INF/displaytag-jsp1.1-1.0-b3.tld&lt;/taglib-location&gt;
   &lt;/taglib&gt;
   &lt;login-config&gt;
    &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
   &lt;/login-config&gt;
  
    &lt;description&gt;MySQL Test App&lt;/description&gt;
    &lt;resource-ref&gt;
        &lt;description&gt;DB Connection&lt;/description&gt;
        &lt;res-ref-name&gt;jdbc/TestDB&lt;/res-ref-name&gt;
        &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
        &lt;res-auth&gt;Container&lt;/res-auth&gt;
    &lt;/resource-ref&gt;
  
  
  &lt;/web-app&gt;
  </code></pre>