Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] external concrete aspect using LTW with java 1.4

Hi all,

I have managed to successfully configure LTW using java 1.4.
Now I am facing a problem when trying to define a concrete aspect
using in external aop.xml file.

My abstract aspect is packed in a separate jar file(this jar already contains
several more aspects that are working OK).
When deployed on app server I am getting:
java.lang.ClassNotFoundException: com.foo.aspect.MyConreteAspect not found - unable to determine URL
Please note that all of my other aspects are working correctly.

sample code:
1. This is my abstract aspect:

public abstract aspect MyAbstractAspect
{
    public abstract pointcut testConcrete();
   
    before() : testConcrete(){
        System.err.println("Adviced ....");
    }
}

2. This is my external aop.xml file
<aspectj>
    <weaver options="-verbose -showWeaveInfo" ></weaver>
    <aspects>
        <aspect name="test.aspect.Aspect_1">
        . . . . . . . . . .
        <aspect name="test.aspect.Aspect_N">
   
       <concrete-aspect name="test.aspect.MyConreteAspect" extends="test.aspect.MyAbstractAspect">
             <pointcut name="testConcrete" _expression_="execution(* Test.testMethod(..))"/>
        </concrete-aspect>
   
    </aspects>
</aspectj>


Any help is appreciated.
Thanks in advance

Back to the top