WebSphere AccessControlException in native_stderr.log


Overview of the Issue

This issue occurs in the following circumstances:

  1. Java 2 Security is enabled in the WebSphere Application Server
  2. An organization installs the VF Agent on a Java Application running on a WebSphere Application Server
  3. The WebSphere Application Server won’t start and throws a java.security.AccessControlException in the $WEBSPHERE_BASE_PATH/AppServer/profiles/$APP_SERVER_NAME/logs/$SERVER_NAME/native_stderr.log

Steps to Resolve the Issue

  1. SSH to the JBoss Application Server
  2. In a text editor, open the $PROFILE_ROOT/properties/server.policy
  3. Add the following lines to the file
// Allow vFunction
// Change the "file" path if vFunction is installed to a different location
grant codeBase "file:/opt/vfunction/agent/-" {
  permission java.security.AllPermission;
};
  1. Save and close the file
  2. Restart the JBoss Application Server