[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 12:29:25 EST 2010


User development,

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

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

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

Message:
--------------------------------------------------------------
Correct, since MessageContext is not visible in the classloader loading the Aspect class you are stuck with reflection.
 
Another option would be to put the jar containing MessageContext directly in the .sar (next to the .aop) then it will be visible from everything in the sar. The problem in this case is if you have several applications/deployments needing that jar. If they each keep it in WEB-INF/lib you have isolation between the different applications so they can each run their own version. If that is the case you could still put it in the .sar, but make sure you use Class loader isolation http://community.jboss.org/message/524424#524424

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

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




More information about the jboss-user mailing list