search cancel

Wildfly not starting up

book

Article ID: 244454

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

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 org.jboss.as.server.Main.main(Main.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.modules.Module.run(Module.java:329)
at org.jboss.modules.Main.main(Main.java:507)
Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.AgentShim from [Module "org.jboss.as.server:main" 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(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 7 more

Environment

Release : 10.7.0

Component : Introscope

Resolution

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 -Dcom.wily.org.apache.commons.logging.Log=com.wily.org.apache.commons.logging.impl.NoOpLog -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.