How To Load Only The ${com.sun.aas.instanceRoot}/config/server.policy File In Oracle GlassFish Server 2.1.1 (Doc ID 1414174.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version: 2.1.1 and later   [Release: 2.1 and later ]
Information in this document applies to any platform.

Goal

The Oracle GlassFish Server 2.1.1 is designed to combine the grant statements from the following three files to establish the policy context:

$GF_HOME/domains/domainX/config/server.policy
${java.home}/lib/security/java.policy
${user.home}/.java.policy


Sometimes the users may have a requirement where he/she may want only the $GF_HOME/domains/domainX/config/server.policy file to be loaded by the GlassFish Server and ignore the policy files that are bundled with the JDK or under the user home directory.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms