The two ways I know this can happen are if you implemented SingleThreadModel
in your servlet, or if you register the servlet as
com.domain.package.MyServlet.class for some reason, having the .class on the
end causes some servlet engines to always create a new instance of the
servlet.
    (*Chris*)

----- Original Message -----
From: "Booth, Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 26, 1999 11:51 AM
Subject: Servlet init() called multiple times - yet not implementing Singl
eThreadModel


> Hello,
>
> Whilst debugging an application problem I noticed something
> very odd in my servlet engine's standard out log: A servlet's init()
> method is being invoked multiple (more than 20) times. This is
> not what would expect. The webserver is Netscape Enterprise 3.6
> with WebSphere 1.1.  Can anyone explain a possible cause for this
> behaviour?
>
> Peter Booth
> [EMAIL PROTECTED]
>
> Initializing Startup Servlet
> Logger class was installed: com.csfb.pdg.mtg.system.LogBuffer
> Init parameter for dispatcher port is 3010
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>  Sun Dec 26 14:06:28 EST 1999FXGorillaServlet.init() debug =true
>  Sun Dec 26 14:06:28 EST 1999GorillaServlet - version 67
>
> This message is for the named person's use only.  It may contain
> confidential, proprietary or legally privileged information.  No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please immediately delete it and all
> copies of it from your system, destroy any hard copies of it and notify
the
> sender.  You must not, directly or indirectly, use, disclose, distribute,
> print, or copy any part of this message if you are not the intended
> recipient. CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each of
> their subsidiaries each reserve  the right to monitor all e-mail
> communications through its networks.  Any views expressed in this message
> are those of the individual sender, except where the message states
> otherwise and the sender is authorised to state them to be the views of
> any such entity.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to