AppD Archive

AppDynamics on WebSphere with Java 2 Security Enabled.

CommunityUser
Splunk Employee
Splunk Employee

Hello,

We currently have the AppDynamics Java agent installed for WebSphere Application Server v7. The application server that is hosting the application that we want to monitor has "Java 2 Security" enabled.

Our AppDynamics agent is installed in /opt/AppDynamics and the error we see in the application server SystemOut.log is:

[11/16/15 15:14:00:683 AST] 00000016 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

/opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log : Access denied (java.io.FilePermission /opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log read)


Code:

com.singularity.ee.agent.util.pe in {file:/opt/AppDynamics/APPAGENT/lib/appagent.jar}

Stack Trace:

java.security.AccessControlException: Access denied (java.io.FilePermission /opt/AppDynamics/APPAGENT/logs/APPAGENT_617/ByteCodeTransformer.2015_11_16__15_13_45.0.log read)

From what I can see, we need to edit the server.policy file to add the missing permissions for AppDynamics to read local resources?

What do you recommend?

Thank you,

Joey

0 Karma

Arun_Dasetty
Super Champion

Hi Joey,

Adding to Allan comments, to answer your query in specific , yes one way is to add below similar snippet of code in your server.policy file referred part of server jvm args (you can get the server.policy file location by seeing jvm args issuing command "ps -ef | grep java" output on same jvm machine shell prompt)

grant codeBase "file:/opt/AppDynamics/APPAGENT/-" {
permission java.security.AllPermission;
permission java.io.FilePermission;
};

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi akumar,

Thank you very much for your reply. After investigation I had also found that I could use that snippet of code to make it work. My concern was if it could affect the other application servers on the same server since the change is made in the "server.policy" file (and not in app.policy or was.policy).

I will check with AppDynamics support if their solution is similar to yours.

Thank you,

Joey

0 Karma

Allan_Schiebold
Communicator

Hi. I'd recommend contacting support as there can be several ways to resolve this depending on the environment. 

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...