1) Set Tomcat's debug level to something big (say 20).
2) Add a System.out.println() call to the begin and end or your init()
method. Include a timestamp.
3) Add a call to Thread.currentThread().dumpStack() to the start of your
init() method.
4) Post the output here.
It is extremely unlikely that the servlet container is calling init() more
than once, but there is no way to diagnose the problem without more
information.
-----Original Message-----
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:23 AM
To: [EMAIL PROTECTED]
Subject: Init() being called 3 times
Hi,
I am loading a servlet on startup. In the init(), I have a setting some
system properties, and
doing some logging.
When I inspect the logs, its seems that the init method is called exactly 3
times.
Any idea whats going on ?
I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel w/JDK 1.3
Thanks
Shahed.