Johnny Kewl wrote:
Ha ha... I think this is a kludge,
Using a SecurityManager 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.
The 'System.exit()' example is the usual one, as you will remember from when you read the documentation:
http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html p
----- Original Message ----- From: "Peter Crowther" <[EMAIL PROTECTED]>To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Thursday, May 24, 2007 6:21 PM Subject: RE: TOMCAT ISSUE: System.ExitFrom: Johnny Kewl [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature