在 Websphere 上使用 Aspectj
我们正在 Spring 源工具套件中使用 Aspectj 编译时加载。当我们尝试在 websphere 服务器上部署这个项目时,我们收到以下异常。这个项目在 tomcat 服务器上工作正常。库是否存在一些问题,如AspectJ 编译器已经存在于 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
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebSphere 附带了它自己的 AspectJ Runtime 版本。它安装在:
base_${version}/lib/aspectjrt.jar
将类加载器顺序从“父级优先”翻转到“父级最后”将不起作用 - 您必须采取不同的路线。
有关如何执行此操作的说明可以在 IBM 网站上找到:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_sharedlib.html
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:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_sharedlib.html