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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to