Hello , A strange thing about 'load-on-startup' servlet.
I use tomcat 4.1.12 with multi-host, and log4j 1.2.7 in my web.xml i wrote these lines : <servlet> <servlet-name>Setup</servlet-name> <servlet-class>init.SetupServlet</servlet-class> <load-on-startup/> </servlet> and i put an information log at the end of the servlet init() method at tomcat startup, we can read in the log : INFO 2002-11-29 09:28:50,084 [Thread-7] init.SetupServlet : end of initialisation setup. INFO 2002-11-29 09:28:55,352 [HostConfig[myhost]] init.SetupServlet : end of initialisation setup. INFO 2002-11-29 09:28:56,943 [HostConfig[myhost]] init.SetupServlet : end of initialisation setup. INFO 2002-11-29 09:29:17,647 [main] init.SetupServlet : end of initialisation setup. INFO 2002-11-29 09:29:20,501 [main] init.SetupServlet : end of initialisation setup. five execution for this servlet ?? (what an initialisation !) if i remove the two other host definitions in my server.xml, and restart tomcat, this log appear "only" 2 times , execute by a thread main ... INFO 2002-11-29 09:42:53,267 [main] init.SetupServlet : end of initialisation setup. INFO 2002-11-29 09:42:56,144 [main] init.SetupServlet : end of initialisation setup. Smby can explain this ?? Why 5 or 2 executions of a load-on-startup servlet ? Why when i remove other host in tomcat configuration file, 3 lines dissepear in the log of an application on the first ?? thks ! _ M -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>