I have been working on a web application running on Apache
Tomcat 6.0.16 and 6.0.20. I have one
servlet that loads on startup, all URIs are mapped to the Filter class and specific URIs are mapped to the servlet controller class. I have observed on startup (by watching the filter class in the debugger) that Tomcat attempts to serve the welcome page (index.jsp) even though, since there was no formal request, there is nowhere to serve it to. Tomcat just seems to swallow the output. Tomcat does this regardless of whether the startup servlet is specified or not. If a startup servlet is specified, this behavior occurs after the startup servlet is loaded.
This behavior does not seem to cause any problems but I fail to understand why Tomcat attempts to serve a welcome page on startup for this scenario. In my opinion, this is a bug. Why would one want to serve a page on startup?
Is there a reason for Tomcat's observed behavior?