链接错误ork.security.config.method.InternalInterceptMethodsBeanDefinitionDecorator.createInterceptorDefinition

时间:2016-11-14 06:28:29

标签: java spring security jar linkage

我将弹簧版本从3.1.0更新为4.3.0

时出现此错误
 Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.springframework.security.config.method.InternalInterceptMethodsBeanDefinitionDecorator.createInterceptorDefinition(Lorg/w3c/dom/Node;)Lorg/springframework/beans/factory/config/BeanDefinition;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/springframework/security/config/method/InternalInterceptMethodsBeanDefinitionDecorator, and its superclass loader (instance of sun/misc/Launcher$AppClassLoader), have different Class objects for the type ork.security.config.method.InternalInterceptMethodsBeanDefinitionDecorator.createInterceptorDefinition(Lorg/w3c/dom/Node;)Lorg/springframework/beans/factory/config/BeanDefinition; used in the signature
        at org.springframework.security.config.method.InterceptMethodsBeanDefinitionDecorator.<init>(InterceptMethodsBeanDefinitionDecorator.java:45)
        at org.springframework.security.config.SecurityNamespaceHandler.<init>(SecurityNamespaceHandler.java:64)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
        ... 31 more

旧罐

  • 弹簧芯3.1.0.RELEASE.jar
  • 弹簧网络3.1.0.RELEASE.jar
  • 弹簧豆-3.1.0.RELEASE.jar
  • 弹簧表达-3.1.0.RELEASE.jar
  • 弹簧上下文3.1.0.RELEASE.jar
  • 弹簧上下文支持-3.1.0.RELEASE.jar
  • 弹簧安全核心4.1.3.RELEASE.jar
  • 弹簧安全核心2.0.5.RELEASE.jar
  • 弹簧安全芯虎2.0.5.jar

新罐子

  • 弹簧芯4.3.0.RELEASE.jar
  • 弹簧OXM-4.3.0.RELEASE.jar
  • 蓖麻-XML的1.4.1.jar
  • 弹簧网络4.3.0.RELEASE.jar
  • 弹簧豆-4.3.0.RELEASE.jar
  • 弹簧表达-4.3.0.RELEASE.jar
  • 弹簧上下文4.3.0.RELEASE.jar
  • 弹簧上下文支持-4.3.0.RELEASE.jar
  • 弹簧仪器Tomcat的4.3.0.RELEASE.jar
  • 弹簧网络4.3.0.RELEASE.jar
  • 弹簧安全核心2.0.8.jar
  • 弹簧安全芯虎2.0.8.jar

0 个答案:

没有答案