Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iWS 4.1 and Java SecurityManager

1 view
Skip to first unread message

Mark Moales

unread,
Aug 23, 2000, 3:00:00 AM8/23/00
to
Hello,

I'm trying to get the JVM to load the default SecurityManager when it's
started by iWS. I've added the following line to the jvm12.conf file:

jvm.option=-Djava.security.manager

This should load the default SecurityManager and read the policy files
listed in the java.security file. If I execute the following code in a
Java application:

System.out.println(System.getSecurityManager());

I get the following output:

java.lang.SecurityManager@6ed786

However, when I invoke System.getSecurityManager() from within a
servlet, it always returns null.

Can anyone tell me why this is happening and how I get the JVM loaded by
iWS to honor the -Djava.security.manager directive?

Thanks in advance,

Mark Moales
Software Engineer
NextMark.com

0 new messages