Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

Issue in executing java agent on JBoss


Issue in executing java agent on JBoss

Getting this issue after giving java agent path on the jvm and when restarting the jvm giving this error in server log and jvm is not starting.





13:47:24,861 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final-redhat-1
13:47:26,228 INFO  [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1
13:47:26,417 INFO  [] (MSC service thread 1-7) JBAS015899: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) starting
13:47:28,808 ERROR [] (Controller Boot Thread) JBAS014601: Error booting the container: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(
        at javax.xml.parsers.DocumentBuilder.parse( [rt.jar:1.7.0_79]
        at org.jgroups.conf.ClassConfigurator.parse(
        at org.jgroups.conf.ClassConfigurator.readMappings(
        at org.jgroups.conf.ClassConfigurator.init(
        at org.jgroups.conf.ClassConfigurator.<clinit>(
        at org.jgroups.stack.Protocol.<init>(
        at org.jgroups.protocols.TP.<init>(
        at org.jgroups.protocols.UDP.<init>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_79]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance( [rt.jar:1.7.0_79]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( [rt.jar:1.7.0_79]
        at java.lang.reflect.Constructor.newInstance( [rt.jar:1.7.0_79]
        at java.lang.Class.newInstance( [rt.jar:1.7.0_79]
        at org.jboss.staxmapper.XMLMapperImpl.processNested(
        at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(
        at [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at org.jboss.staxmapper.XMLMapperImpl.processNested(
        at org.jboss.staxmapper.XMLMapperImpl.parseDocument(
        at [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at [rt.jar:1.7.0_79]
Caused by: java.lang.ClassNotFoundException: from [Module "org.apache.xerces:main" from local module loader @4098d3f6 (finder: local module finder @7183dc9b (roots: /jboss/EAP-6.3.0/jboss-eap-6.3/modules,/jboss/EAP-6.3.0/jboss-eap-6.3/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass( [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked( [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked( [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass( [jboss-modules.jar:1.3.3.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.loadClass( [jboss-modules.jar:1.3.3.Final-redhat-1]
        ... 30 more

13:47:28,835 INFO  [] (MSC service thread 1-13) JBAS015950: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) stopped in 25ms

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Issue in executing java agent on JBoss
AppDynamics Team



Verify your JVM startup options as given in the below link and see if you have added the below startup settings.


In Linux, you can populate the path dynamically with the following code: 

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

JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$(ls ${JBOSS_HOME}/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-*.jar)"

If using the ${JBOSS_HOME} variable, as in the example, be sure to set the variable to the directory to the JBoss installation directory on your system. 

The path to the LogManager JAR file under the JBoss home can vary by JBoss version. Be sure to check your system and adjust the path as shown in the example accordingly. 




Mohammed Rayan

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.