JBOSS Application Not starting after instrumenting APM agnent
search cancel

JBOSS Application Not starting after instrumenting APM agnent

book

Article ID: 258387

calendar_today

Updated On:

Products

DX Application Performance Management

Issue/Introduction

JBOSS is not starting after changing the application  startup script with agent profile  and jar file  entry

 

Environment

Release : 21.3

Cause

Boss Bootstrap Environment is EAP-7.2.0

ERROR Message :

Exception in thread "main" java.lang.NoClassDefFoundError: com/wily/introscope/agent/trace/IIntelligentInstrumentationMethodTracer
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
        at java.lang.Class.getConstructor0(Class.java:3075)
        at java.lang.Class.getConstructor(Class.java:1825)
        at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:116)
        at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:99)
        at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:86)
        at __redirected.__XMLInputFactory.changeDefaultFactory(__XMLInputFactory.java:55)
        at __redirected.__JAXPRedirected.changeAll(__JAXPRedirected.java:58)
        at org.jboss.modules.Main.main(Main.java:428)
Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.trace.IIntelligentInstrumentationMethodTracer from [Module "org.codehaus.woodstox" from local module loader @xxxxx (finder: local module finder @xxxxx (roots: /opt/EAP-7.2.0/modules,/opt/EAP-7.2.0/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

Resolution

There were two entries of  Djboss.modules.system.pkgs parameter

Removing Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS  from start up script resolve the case.