was8.5和aop的问题:JVMVRFY013 违反类装入约束(was8. 5 and AOP: jvmvrfy013 violates class loading constraints)

一、错误日志:

Error 500: javax.servlet.ServletException:
java.lang.VerifyError: JVMVRFY013 违反类装入约束
类=org/springframework/aop/aspectj/MethodInvocationProceedingJoinPoint,方法=getSourceLocation()Lorg/aspectj/lang/reflect/SourceLocation;,pc=0

二、问题描述:

这是由于was8.5和spring
aop存在冲突,貌似是was8.5的一个bug,网上找了各种方法,打补丁或者建共享库。建共享库尝试过,没成功,会提示命名空间的问题。打补丁太麻烦没有尝试,不知道可不可行(主要是不知道下哪个补丁,希望有经验的大神也可以分享下这个方法)。

三、解决方案:JVM参数中加入:-Xverify:none(忽略字节码的验证)。

————————

1、 Error log:

Error 500: javax.servlet.ServletException:
java.lang.VerifyError: JVMVRFY013 违反类装入约束
类=org/springframework/aop/aspectj/MethodInvocationProceedingJoinPoint,方法=getSourceLocation()Lorg/aspectj/lang/reflect/SourceLocation;,pc=0

2、 Problem Description:

This is due to was8 5 and spring
AOP conflicts, which seems to be was8 5. I found various methods on the Internet to patch or build a shared library. You have tried to build a shared library. If it fails, you will be prompted about the namespace. Patching is too troublesome. I didn’t try it. I don’t know if it is feasible (mainly because I don’t know which patch to patch. I hope experienced gods can share this method).

3、 Solution: add: – xverify: none to the JVM parameters (ignoring the verification of bytecode).