Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Cannot register non aspect


Mohan,

There are several possible reasons for this failure:
1. You mistyped the name in aop.xml
2. The aspect is not on the classpath
3. The aspect is not in the right place i.e. it was declared in a package but built in the wrong directory (AspectJ rather annoyingly still allows this)
4. The names class is not an aspect

I presume your aspect was written using code-style rather than @AspectJ style which is only supported under Java 5 I believe.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx

http://w3.hursley.ibm.com/~websterm/

Please respond to aspectj-users@xxxxxxxxxxx

Sent by:        aspectj-users-bounces@xxxxxxxxxxx

To:        <aspectj-users@xxxxxxxxxxx>
cc:        
Subject:        [aspectj-users] Cannot register non aspect


Hi,
        I was trying to enable LTW for JDK 1.4. So I am running the test that uses AspectWerkz and AspectJ to do this. I get this error. Has anybody tried this ?
I want to use LTW for WebLogic which uses JDK 1.4.
 
     [java] java.lang.RuntimeException: Cannot register non aspect: test.ltw13.S
ample$TestAspect , test.ltw13.Sample.TestAspect
    [java]     at org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeave
r.java:176)
    [java]     at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registe
rAspects(ClassLoaderWeavingAdaptor.java:313)
    [java]     at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registe
rDefinitions(ClassLoaderWeavingAdaptor.java:172)

 
Thanks,
Mohan

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited._______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top