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