[jboss-user] [JBoss AOP Development] New message: "Re: Help: Error [Instrumentor] AOP Instrumentor failed"

Kabir Khan do-not-reply at jboss.com
Fri Feb 5 09:02:54 EST 2010


User development,

A new message was posted in the thread "Help: Error [Instrumentor] AOP Instrumentor failed":

http://community.jboss.org/message/524400#524400

Author  : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com

Message:
--------------------------------------------------------------
The classes in war/lib will be in a child classloader of the classloader that the sar and aop archive belong to hence the CNFE. 
 
You would need to do something like
 
Class<?> clazz = arg[0].getClass().getClassLoader().load("name.of.Class")
 
In this case you seem to want to do stuff to the instance, so I suggest bundling this into a util method and calling that via reflection from your aspect.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/524400#524400




More information about the jboss-user mailing list