AppD Archive

Keep getting a "Invalid Agent Installation Directory" on JBOSS

CommunityUser
Splunk Employee
Splunk Employee

I am trying to install the agent on a JBOSS 4.3_CP10 server ( JDK 1.5.0_22), but I keep getting this exception when I run the server.

What I did is:

  1. Log into the linux box 
  2. Add this line in run.sh export JAVA_OPTS="$JAVA_OPTS -javaagent:/local/home/Jboss/jboss/instances/jboss-simdevl-2/jboss-as-4.3-CP_10/bin/javaagent.jar"  
  3. copy the agent jar file
  4. chmod a+rwx javaagent.jar
  5. Run the server
  6. Cry...

Thanks for your help.

antonio

ps: Jboss output:

  JAVA_OPTS: -Dprogram.name=run.sh -server -Djboss.platform.mbeanserver -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -XX:+DisableExplicitGC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.net.inetaddr.ttl=60 -Duser.language=fr -Dfile.encoding=ISO-8859-1 -Duser.country=CH -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -XX:+UseParallelGC   -Xms128m -Xmx256m -Djade.instance.mode=simdevl -Djade.instance.version=united-1.1 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -javaagent:/local/home/Jboss/jboss/instances/jboss-simdevl-2/jboss-as-4.3-CP_10/bin/javaagent.jar

  CLASSPATH: /home/Jboss/jboss/instances/jboss-simdevl-2/jboss-as/bin/run.jar:/usr/java/jdk1.5.0_22/lib/tools.jar

=========================================================================

Install Directory resolved to[/local/home/Jboss/jboss/instances/jboss-simdevl-2/jboss-as-4.3-CP_10/bin]
java.lang.RuntimeException: Invalid Agent Installation Directory [/local/home/Jboss/jboss/instances/jboss-simdevl-2/jboss-as-4.3-CP_10/bin]
	at com.singularity.ee.agent.appagent.AgentEntryPoint.addThirdPartyURLs(AgentEntryPoint.java:190)
	at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:144)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
17:14:58,518 INFO  [Server] Starting JBoss (MX MicroKernel)...
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Solved this myself... I didnt copy de rest of the files.

cheers.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Glad to hear that you could able solve the issue and could monitor jboss server now, but we suggest to maintain separate agent install directory instead copying AD lite agent files under jboss server installation directories which might conflict if there similar file name or directories.

refer docs for future reference: http://litedocs.appdynamics.com/display/ADLite/Installing+the+Application+Server+Agent

http://litedocs.appdynamics.com/display/ADLite/JBoss

We hope this information will help for future AD lite agent installations

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...