Search code examples
springaopaspectjload-time-weaving

I got ClassNotFoundException when i tried to switch spring to use load time weaving


I've added a <context:load-time-weaver/> in my application context. And i've added necessary libraries and javaagent to my pom.xml

Then i got following error

2014-05-23T17:48:11.549+0600  SEVERE  Unable to find class 'com.myproject.dao.impl.BlobDataDaoTest$' in repository
java.lang.ClassNotFoundException: com.myproject.dao.impl.BlobDataDaoTest$ not found - unable to determine URL
    at org.aspectj.apache.bcel.util.ClassLoaderRepository.loadClass(ClassLoaderRepository.java:292)
    at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:402)
    at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:376)
    at org.aspectj.weaver.ltw.LTWWorld.resolveDelegate(LTWWorld.java:107)
    at org.aspectj.weaver.World.resolveToReferenceType(World.java:485)
    at org.aspectj.weaver.World.resolve(World.java:326)

How can i resolve it?


Solution

  • It was resolved when i've updated aspectj version from 1.6.12 to 1.8