On Wed, 4 Dec 2002, Peter Maas wrote:

> I my case it was a stupid programming mistake, one of the exception
> handlers included a 'System.exit(-1)' command... .*blush*
>
> is there a way to 'capture' exit commands originating from servlets?
> if someone else would mistakenly include such a command in his/her
> servlet it would shut down the entire tomcat server!

Perhaps you can set up a security manager that forbids/prevents this.
I've never done anything like that myself, but from some comments I've
seen, I think it's possible.


> : This seems to be a common problem....
> :
> : Anyway I have found no solution yet! :-(
> :
> : I hope someone will find it! If this happens I pray him to let me know the
> : solution...
> :
> : Best regards,
> :
> :                        Luca
> :
> : -----Messaggio originale-----
> : Da: A mailing list for discussion about Sun Microsystem's Java Servlet
> : API Technology. [mailto:[EMAIL PROTECTED]]Per conto di
> : RVTobin
> : Inviato: mercoledì 27 novembre 2002 21.17
> : A: [EMAIL PROTECTED]
> : Oggetto: Re: Why does Tomcat 4 suspend itself?
> :
> :
> : ----- Original Message -----
> : From: "Peter Maas" <[EMAIL PROTECTED]>
> : To: <[EMAIL PROTECTED]>
> : Sent: Wednesday, November 27, 2002 3:44 AM
> : Subject: Re: Why does Tomcat 4 suspend itself?
> :
> :
> : > I seem to have the same problem with a stand-alone version of
> tomcat.....
> : >
> : > ----- Original Message -----
> : > From: "Luca Ventura" <[EMAIL PROTECTED]>
> : > To: <[EMAIL PROTECTED]>
> : > Sent: Wednesday, November 27, 2002 7:42
> : > Subject: Why does Tomcat 4 suspend itself?
> : >
> : >
> : > : Hello!
> : > :
> : > : I have Tomcat 4.0.4-b3 as Servlet Container (I use it as a plug-in of
> : IIS
> : > 5,
> : > : using the ISAPI
> : > : filter "isapi_redirector.dll" )and I have seen that
> : > : sometimes the following strange thing happens....
> : > :
> : > : When Tomcat doesn't receive user's requests (forwarded from IIS) for a
> : > : period of time
> : > : (that can take minutes or hours) it suspends itself and I must restart
> : the
> : > : service manually because Tomcat doesn't  answer to the users' requests
> : any
> : > : more.
> : > :
> : > : In fact when this happens and the user tries to connect to Tomcat he
> : waits
> : > : for an answer forever without success until the connection is closed
> by
> : > the
> : > : Web Browser because
> : > : it is timed out.
> : > :
> : > : Is there some setting in Tomcat to avoid this? Has someone
> : > : already had such problem? If yes, how did he solve it?
> : > :
> : > : Is this a bug of the version of Tomcat (or of the ISAPI filter) I am
> : > using?
> : > :
> : > : I hope someone can help me....
> : > :
> : > : Thanks in advance.
> : > :
> : > :
> : > :                                      Luca
> :
> :
> : Have you been able to figure this out?  I'm getting the same problem.
> :
> : Val
> :
> :
> ___________________________________________________________________________
> : 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
> :
>
> ___________________________________________________________________________
> 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
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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