AppD Archive

Integrate Appdynamic in Jboss 7

CommunityUser
Splunk Employee
Splunk Employee

Hi,

 I was instanlated AppServerAgent and trying to configure in Jboss-7 server. I have done below configurations,

 standalone.conf:

JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,com.singularity,org.jboss.logmanager"

standalone.conf.bat:

 set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity"

standalone.bat

"%JAVA%" -javaagent:D:/Public/z001600/AppServerAgent/javaagent.jar %JAVA_OPTS% ^
"-Dorg.jboss.boot.log.file=%JBOSS_HOME%\standalone\log\boot.log" ^
"-Dlogging.configuration=file:%JBOSS_HOME%/standalone/configuration/logging.properties" ^
-jar "%JBOSS_HOME%\jboss-modules.jar" ^

Also added below entries in VM aruguments,

-javaagent:D:/Public/z001600/AppServerAgent/javaagent.jar -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity,org.jboss.logmanager

But while accesing my application i am getting below exception

 java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator

Could you please help me to solve this problem

Thanks in advance for your support.

Regards,

RAM

0 Karma

Arun_Dasetty
Super Champion

Hi,

We understood that you have followed the steps as suggested in docs:

http://docs.appdynamics.com/display/PRO13S/JBoss+Startup+Settings#JBossStartupSettings-Toaddthejavaa...

Can you please provide the following details:

- exact jboss version is it jboss 7.0.0 or 7.1.x?

- are you using latest appserver agent  version?

- Can you remove the additional settings you did in VM args and restart the jboss server and see how it goes?

If the issue still persists please send the standalone.bat , standalone.conf.bat and standalone.conf files for our reference?

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I'm having the same error with Wildfly 8.2: 

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot

I have just downloaded the agent a few minutes ago and here is my standalone.conf.bat in which I define the javaagent:

set "JAVA_OPTS=-Xms256m -Xmx2048m -Djava.awt.headless=true"

set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true"

set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman"

set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=7777,server=y,suspend=n"

set "JAVA_OPTS=%JAVA_OPTS% -javaagent:j:/dev/apps/AppDynamics/4.0.0.0/javaagent.jar"

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you update below jvm arg as follows and see how it goes:

-Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Seems to work for me. I don't have the exception anymore. I will keep testing to see if any other problems occur.

Thanks

0 Karma

Arun_Dasetty
Super Champion

Hi, Glad to hear that news from you,  Please feel to raise new queries if you see any other issues

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...