Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 07-11-2017 03:51 PM
When running WebSphere with Security Enabled, the user must provide permissions to the Java Agent, to ensure a seamless interaction between the two.
Add the following snippet to the security policy file:
grant codeBase
"file:\* AGENT_DEPLOYMENT_DIRECTORY \*/-"
{
permission java.security.AllPermission;
};
The security policy file is located in the AppDynamics Agent logs under JVM arguments:
-Djava.security.policy=...../security.policy
Or Unix users can use the ps
command to find the command line parameters for the JVM.
If the JVM argument is not provided, the application may be using a default Java policy file (java.policy
). Add the previously mentioned snippet to this file.
1. Agent logs show: java.security.AccessControlException: access denied ("java.io.FilePermission" "/xx/xx/xx/y.xml" "read")
grant codeBase "file:\* AGENT_DEPLOYMENT_DIRECTORY \*/-"
{
permission java.security.AllPermission;
permission java.io.FilePermission "*","read,write,execute";
};
java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
grant codeBase "file:\* AGENT_DEPLOYMENT_DIRECTORY \*/-"
{
permission java.security.AllPermission;
permission java.lang.RuntimePermission "getClassLoader";
};
java.security.AccessControlException: access denied ("javax.management.MBeanServerPermission" "findMBeanServer")
grant codeBase "file:\* AGENT_DEPLOYMENT_DIRECTORY \*/-"
{
permission java.security.AllPermission;
permission javax.management.MBeanServerPermission "findMBeanServer";
};
\*AGENT_DEPLOYMENT_DIRECTORY\*
with the Agent home directory path. Do not miss the forward slash (/-) at the end. grant codeBase "file:/opt/appdynamics/appserveragent/-"
grant codeBase "file:c:/appdynamics/appserveragent/-"
-Djava.security.debug="access,failure"
property name: enable-interceptors-for-security
type: boolean
value: true
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form