AppD Archive

Permissions error on startup of java agent.

Graeme_Gilmour
Engager

Hi all, I am using Java Agent v 4.2.8.0 to monitor WebSphere Application Server on Linux. I have configured the agent manually on two seperate nodes, in an identical manner, however on the second node, I get the following error upon startup (briefly summarised here, with full error attached)...

[Thread-0] 01 Nov 2016 16:17:50,252 WARN AgentErrorProcessor - Agent error occurred, [name,transformId]=[com.singularity.JavaAgent - java.security.AccessControlException,2147483647]
[Thread-0] 01 Nov 2016 16:17:50,253 WARN AgentErrorProcessor - 4 instance(s) remaining before error log is silenced
[Thread-0] 01 Nov 2016 16:17:50,258 ERROR JavaAgent - Could Not Start Java Agent, Disabling !!!!!
java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:398)

On both nodes, the agent home directory is /apps/was/appdynamics/appagent/ with identical permissions / ownership on both, including...

drwxr-xr-x  3 websphere websphere      4096 Oct 28 14:34 appdynamics

                            drwxr-xr-x 4 websphere websphere 4096 Oct 28 14:38 appagent

                                               drwxr-xr-x 8 websphere websphere 4096 Oct 17 11:33 ver4.2.8.0

                                                                    drwxr-xr-x 5 websphere websphere  4096 Oct 31 11:46 conf

                                                                    drwxr-xr-x 3 websphere websphere 4096 Oct 31 11:29 logs

Both nodes' WAS home directory ( apps/was/ws8.5/inst01/ has(seemingly) identical permissions / ownership...

drwxr-xr-x 38 websphere websphere 4096 May 27 18:38 inst01

Both nodes' JRE java.policy and the JVMs' server.policy are identical. And so I'm currently at a loss as to what to try next in order to resolve.

0 Karma

Jean-Baptiste_M
Builder
Best is probably to speak to support in that case : help@appdynamics.com

JB
0 Karma

Graeme_Gilmour
Engager

Email sent JB....

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

This is most likely down to permission requirements in the server.policy file. See the 4.2 documentation on instrumenting Websphere jvms here: https://docs.appdynamics.com/display/PRO42/IBM+WebSphere+and+InfoSphere+Startup+Settings

Graeme_Gilmour
Engager

Hi Raymond. Yeah we got past the problem with the server.policy amendment.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...