Marc Saegesser wrote:
In Tomcat 3.2.x, specifying more than one name for a servlet in web.xml
causes a separate instance to be created for each name and each instances
init() method will et invoked. Essentially creating a new servlet for each
name as opposed to multiple names for a single
Sorry about that. I was still thinking Servlet 2.1 API spec. The Servlet
2.2 spec is much tighter.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 29, 2000 2:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Init() being called 3 times
Marc
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
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
Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Init() being called 3 times
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
Message -
From: "Marc Saegesser" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, December 28, 2000 12:49 PM
Subject: RE: Init() being called 3 times
In Tomcat 3.2.x, specifying more than one name for a servlet in web.xml
causes a separate instance to be create