This content has been marked as final.
Show 2 replies
-
1. Re: JBoss 7 doesn't seem to play well with agents using JDK
lerm Feb 7, 2012 8:02 AM (in response to swati_joshi)The main problem with agents is related to class-loading in JBoss. Agent classes are added to server classpath, but JBoss classloader doesn't allow invocation of methods for agent classes from instrumented code if such modified class has no dependency on agent classes. The simple way to resolve this issue is to specify 'jboss.modules.system.pkgs' property for Java startup arguments. In your case it probably should be following:
-Djboss.modules.system.pkgs=com.willy
This instructs JBoss classloader to pass any request to com.willy.* classes to parent classloader.
-
2. Re: JBoss 7 doesn't seem to play well with agents using JDK
swati_joshi Feb 8, 2012 10:43 PM (in response to lerm)thanks it worked