Skip Headers

# Security Manager

Previous

Next

If you use a security manager, specify a security policy file in the `weblogic.policy` file (normally located in the BEA WebLogic install directory), as follows:

    -Djava.security.manager
    -Djava.security.policy==c:\weblogic\weblogic.policy

The BEA WebLogic installation procedure includes a sample security policy file. You need to edit the `weblogic.policy` file to grant permission for TopLink to use reflection.

The following example illustrates only the permissions that TopLink requires, but most `weblogic.policy` files contain more permissions than are shown in this example.

A Subset of a "Grant" Section from a BEA WebLogic.policy File

    grant {
    // "enableSubstitution" required to run the WebLogic console
    permission java.io.SerializablePermission "enableSubstitution";
    // "modifyThreadGroup" required to run the WebLogic Server
    permission java.lang.RuntimePermission "modifyThreadGroup";
    // grant permission for TopLink to use reflection
        permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    };