search cancel

Wildfly not starting up


Article ID: 244454


Updated On:


CA Application Performance Management (APM / Wily / Introscope)


Wildfly running in Standalone mode not starting up after adding Broadcom Agent, inside the console log we can see:

Commons Daemon procrun stderr initialized
'rem' is not recognized as an internal or external command,
operable program or batch file.

Exception in thread "main" java.lang.NoClassDefFoundError: com/wily/introscope/agent/AgentShim
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.jboss.modules.Main.main(
Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.AgentShim from [Module "" from local module loader @91c4a3f (finder: local module finder @62d0ac62 (roots: D:\ibanking\wildfly\modules,D:\ibanking\wildfly\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(
at org.jboss.modules.ConcurrentClassLoader.loadClass(
... 7 more


Release : 10.7.0

Component : Introscope


Make sure that the Startup script has the following entries for the JVM OPTS:

set JAVA_OPTS=%JAVA_OPTS% -javaagent:/CA/Introscope_Agent/Agent.jar -DagentProfile=/CA/Introscope_Agent/core/config/IntroscopeAgent.profile -Dorg.osgi.framework.bootdelegation=com.wily,com.wily.,sun. -Djboss.modules.system.pkgs=org.jboss.byteman,com.wily,com.wily.*

Also, double check If the startup script does not contains duplicated entry like the Jboss module being loaded over below section:

rem # Make Byteman classes visible in all module loaders
rem # This is necessary to inject Byteman rules into AS7 deployments
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman"

Comment the entry and leave it over JVM_OPTS section only.