Reputation: 879
we are using Aspectj compile time loading in Spring source tool suite..when we are trying to deploy this project on websphere server ,we are getting following exception .this project work fine on the tomcat server..is there is some problem with libraries as AspectJ compiler is are already there in Spring Source Tool.
Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions
(1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
Property 'exceptionProp' threw exception; nested exception is java.lang.NoSuchMethodError: org/aspectj/runtime/internal/AroundClosure.linkClosureAndJoinPoint(I)
Lorg/aspectj/lang/ProceedingJoinPoint
Upvotes: 4
Views: 5068
Reputation: 404
WebSphere ships with it's own version of AspectJ Runtime. It is installed in:
base_${version}/lib/aspectjrt.jar
Flipping the class loader order from 'parent first' to 'parent last' won't work -- you'll have to take a different route.
Instructions on how do to this can be found on IBM's website:
Upvotes: 6