I am running WildFly 9.0.0 in standalone mode and try to start it with a javaagent. The agent is set in the standalone.bat file just above rem Setup JBoss specific properties
The agent inserts method calls to org/test/Logger/Log method which is declared inside the agent itself.
When I start WildFly the agent gets attached and the org/test/Logger/Log method is called multiple times.
But then it crashes with this exception:
Caused by: java.lang.ClassNotFoundException: org.tes.Logger from [Module "org.jboss.logmanager:main" from local module loader @a45f686 (finder: local module finder @773bdcae (roots: E:\Java\wildfly-9.0.0.Final\wildfly-9.0.0.Final\modules,E:\Java\wildfly-9.0.0.Final\wildfly-9.0.0.Final\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
... 11 more
I would appreciate any help in determining why this might be happening?
Thanks!
Hi Veni,
The packages that are meant to be seen from all the modules should be specified in jboss.modules.system.pkgs variable.
In your case it should be:
-Djboss.modules.system.pkgs=org.test.Logger
Tomek