Wednesday, February 17, 2010

java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException

If you get this error:
java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
The solution is:
Add the AspectJ library to the classpath.

If it's a web application, that means either:
  • Add the AspectJ Runtime (aspectjrt.jar) to WEB-INF/lib, or
  • In Eclipse, enable AspectJ on your project. Then open Project Properties, add the AspectJ Runtime library to Java EE Dependencies.

No comments:

Post a Comment