tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: TOMCAT ISSUE: System.Exit
Date Thu, 24 May 2007 17:00:45 GMT
Ha ha... I think this is a kludge, but ok, I have "read"... so help me... I 
want to stop Tomcat calling System.Exit(1)... what do I need to do to the 
catalina.policy file to do this?
I imagine that instead of the embedded app shutting down the user will now 
get a security exception, which to me is wrong... but hey, I'll try it.


----- Original Message ----- 
From: "Peter Crowther" <Peter.Crowther@melandra.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, May 24, 2007 6:21 PM
Subject: RE: TOMCAT ISSUE: System.Exit


> From: Johnny Kewl [mailto:john@kewlstuff.co.za]
> Imagine I make a library for you... and your user application
> does something
> wrong... and then my library calls System.Exit and shuts down
> the JVM... how
> you going to fix that with a security manager??

The security manager can prevent the call from succeeding.  Read, don't
just assume it can't work.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#exit(int)
will give you hint on the fact that exit can be prevented by a security
manager, for example.

- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message