title: Ignore Servlet loadOnStartup
body: <p>Well, I have this problem.</p>
  
  <p>On Java Dynamic Web Project A, I have a servlet that is loaded on web startup, i.e.</p>
  
  <pre><code>@WebServlet(loadOnStartup = 1, urlPatterns = "/init")
  public class InitializingServlet extends HttpServlet {
      @Override
      public void init() {
           // doing something
      }
  }
  </code></pre>
  
  <p>And then, I bundle that Project A into a jar, and put it into Java Dynamic Web Project B's build path.
  When I start project B in tomcat, the InitializingServlet in project A is run.
  Well, I put project A into project B's build path only because I want to access the interface and object inside project A, but I don't want the InitializingServlet in project A is running on startup.</p>
  
  <p>Is there a way of doing what I want?</p>
  
  <p>Thank you very much</p>