org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file
[D:\workspaces\zzzy_erp\WebRoot\WEB-INF\applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
解决办法:
Struts2 的 Spring 插件用的Spring版本是2.5的,与Spring框架本身的 3.0 版本有冲突
在构建路径里去除Struts2 的Spring插件的Spring Jar包。只保留插件的Jar包 struts2-spring-plugin-2.1.8.1.jar