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:
This instructs JBoss classloader to pass any request to com.willy.* classes to parent classloader.
thanks it worked