JBoss Community

Re: Compile Time AOP in JBOSS

created by gebhardtj in JBoss AOP - View the full discussion

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

Start a new discussion in JBoss AOP at Community