W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

more bug with servlet init()?

From: Bi, Xiaolian <Xiaolian_Bi@tri.sbc.com>
Date: Wed, 28 Apr 1999 10:49:41 -0400 (EDT)
Message-ID: <6C5FB3C08FCBD1118EE600805FEA9CC201E1A46E@trimail.tri.sbc.com>
To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>

4/13's maintenance release fixed the bug of servlet being loaded every time
and thus init() being called every time when servlet is auto loaded and
accessed as com.xxx.xxx.servlet

I have been using the maintenance release since then, and it largely fixed
the problem. However, from time to time I noticed that the init() would be
called again without servlet.class file change (ie there is no need to
reload the servlet). The difference from the original bug is that clearly
the serlvet is not reloaded ( I can tell that because I don't see a printout
stating the servlet is loaded), but only init() is called. My initial guess
was that maybe the serlvet was unloaded as a result of being idle for long
time. But then I noticed it could happen not long after the serlvet is
loaded first time. Also my theory does not make sense because it appears
only init() is called, but servlet is not re-loaded ( the servlet would have
to be reloaded in the case that servlet is timed out and unloaded)

Are their conditions that would cause a servlet's init() to get called? Or
is there a subtle bug?

Could someone look into the problem. Thanks.

Xiaolian
Received on Wednesday, 28 April 1999 10:53:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT