You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <ra...@unitnet.com> on 2004/08/11 00:16:24 UTC

Help, why is my servlet calling init twice?

Hello,

I am hoping someone can shed some light on this 

I am using Tomcat jakarta-tomcat-5.0.24 on RH9

When I have <load-on-startup>1</load-on-startup> set in  my web.xml

My init in the servlet that I have this set for gets called twice. It is so
bizarre.

But, in my devel env it does not (XP, tomcat 5, intellij)

If I remove the <load-on-startup> tag from the web.xml, then the first time
I call the servlet the init gets only called once

Any ideas?

Randy



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org