tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Servlet.destroy but not init called when context is reloaded
Date Mon, 15 Sep 2003 13:01:00 GMT


>Looking at the log this weird behaviour seems to start after init()
>exception. I did restart the Tomcat service, but the somehow the server
>malfunctioning from this point onwards. Can the init() somehow be
>so it wont be called on future reloads ?

No, init cannot be disabled.  It is your responsibility to ensure proper
init processing or alternatively be ready to deal with an undefined
state for that servlet.

>Is this 1) an issue with garbage collection order 2) some JRE problem,
>persists across Tomcat reloads 3) Potentially a Tomcat bug 4) Me being
>stupid ?

None of the above.  It's an issue with you not properly handling an
errorneous init() method.

>looking at the log, there might be a 5th possibility relating to Axis
>being busy starting, resulting in a socket timeout that leaves the
>communication in an unstable state, does that sound plausible ?

Possibly, yes.  Only you would know, as that's very implementation

>Rather than waste your time by pasting a 1000 lines from the logfile.
>question is simply : what is the most likely cause of my problem ?

Make sure you init method catches exceptions and handles them properly.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

View raw message