I am currently encountering a problem, when running a Java-process via JZOS as a started task. The Java-class is executed, but it stops with an AccessControlException (Access denied) in the main method. However, in the specified policy file the following section ist included:
Code: Select all
grant {
permission java.security.AllPermission;
};
When reading the log-files written by my class, it appears, that even the specified time-zone is not the one specified, too.
I just can't make out why these options are not given to the JVM via the IBM_JAVA_OPTIONS. These are defined in the STDENV DD as follows:
Code: Select all
IJO="-Xms128M -Xmx256M"
IJO="$IJO -Duser.timezone=Europe/Berlin"
IJO="$IJO -Djava.net.preferIPv4Stack=true"
IJO="$IJO -Djava.security.policy=$POLICYFILE_LOCATION"
IJO="$IJO -Dnetworkaddress.cache.ttl=60"
export IBM_JAVA_OPTIONS="$IJO "
Another remark: There is no problem, when invoking the started task with BPXBATCH and starting the java-process like this:
Code: Select all
java -Xms128M -Xmx256M -Duser.timezone=Europe/Berlin -Djava.net.preferIPv4Stack=true -Djava.security.policy=$POLICYFILE_LOCATION -Dnetworkaddress.cache.ttl=60 (...)
(Please note that I am new to the whole mainframe-environment )