users@glassfish.java.net

Re: Stopping System.exit() in JSP with Security Manager in GF 3.0.1?

From: Kumar Jayanti <v.b.kumar.jayanti_at_oracle.com>
Date: Sat, 2 Apr 2011 07:29:37 +0530

On 02-Apr-2011, at 7:19 AM, forums_at_java.net wrote:

> Hi,
>
> Quick question.. just for fun I made a JSP page with a System.exit(0) and
> knew it would kill glassfish. So, I restarted it and then turned on the
> Security Manager in the Security settings in the admin page. I restarted the
> server and tried the page again and the same thing happened..dead server.
>
> I expected a Access violation or something but didn't get it.
>
> I'm running 3.0.1 and deployed from Netbeans 6.9.1.
>
> Is there anything else I need to do to stop System.exit()?
>

Can you put JVM option java.security.debug=access and send me the logs.

regards,
kumar

> Thanks..
>
> - Tim
>
>
> --
>
> [Message sent by forum member 'tmulle']
>
> View Post: http://forums.java.net/node/787888
>
>