[jboss-user] [JBoss AOP] - Re: Compile Time AOP in JBOSS
gebhardtj
do-not-reply at jboss.com
Tue Nov 20 06:16:16 EST 2012
gebhardtj [https://community.jboss.org/people/gebhardtj] created the discussion
"Re: Compile Time AOP in JBOSS"
To view the discussion, visit: https://community.jboss.org/message/777398#777398
--------------------------------------------------------------
Hi Kabir,
I have listed the .aop file in my application.xml file as java module. However, it seems that I have some classloader issues. My EAR has its own classloader (loader-repository in jboss-app.xml) defined. When deploying the EAR (that already contains the precompiled classes) I can see the following log message " [org.jboss.aop.deployment.AspectDeployer] AOP deployment is scoped using classloader". I also throw an exception in the method that should be surrounded by an aspect and the stacktrace shows that the instrumented "...$aop" method has been called, however not the aspect.
Next I removed the EAR specific classloader in the jboss-app.xml and the aspect was perfectly executed.
Is it possible that there is a classloader bug in version 1.5.6.GA of jboss-aop? My guess is that the byte code manipulated class does not look for the scoped classloader to find the matching aspects.
Kind regards
Joern
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777398#777398]
Start a new discussion in JBoss AOP at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121120/af6eb80e/attachment.html
More information about the jboss-user
mailing list