title: Why is contextInitialized() called multiple times?
body: <p>I'm running a Stripes web app on Jboss 4.2.3.GA and am trying to call a method when I start JBoss.  I created a ServletContextListener like so:</p>
  
  <pre><code>public class TimerContextListener implements ServletContextListener {
  
      @Inject
      private TimerManager timerManager;
  
      public void contextInitialized(ServletContextEvent servletcontextevent) {
          ((Injector) servletcontextevent.getServletContext().getAttribute(GuiceServletContextListener.KEY)).injectMembers(this);
          timerManager.stopAllTimers();
          timerManager.startTimer();
      }
  
      public void contextDestroyed(ServletContextEvent servletcontextevent) {
  
      }
  }
  </code></pre>
  
  <p>and I added an entry in web.xml like so:</p>
  
  <pre><code>&lt;listener&gt;
          &lt;listener-class&gt;com.lawless.web.servletContextListeners.TimerContextListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  </code></pre>
  
  <p>but contextInitialized() is getting called 3 times when I start my server.  Any idea what the issue could be?  Thanks.</p>