title: servletcontextlistener is not invoking
body: <p>why follow contextlistener is not invoking on  first request  or server startup.</p>
  
  <pre><code>package com.kk.HTTP.listener;
  
  import javax.servlet.ServletContextEvent;
  import javax.servlet.ServletContextListener;;
  
  public class WebApplicationListener  implements ServletContextListener{
  
  @Override
  public void contextDestroyed(ServletContextEvent arg0) {
      // TODO Auto-generated method stub
      System.out.println("Destroyed");
  }
  
  @Override
  public void contextInitialized(ServletContextEvent arg0) {
      // TODO Auto-generated method stub
  
      System.out.println("init");
  }
  
  }
  </code></pre>
  
  <p>in web.xml</p>
  
  <pre><code>&lt;web-app&gt;
  
  &lt;listener&gt;
  &lt;listener-class&gt;com.kk.HTTP.listener.WebApplicationListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>am i missing something. please answer. </p>