简体   繁体   中英

java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)

I am getting the below error when I try to configure a spring-hibernate application:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;

I have org.springframework.beans-3.0.0.M3.jar in the build path.

Please help.

Thanks in advance!

See java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add

Why you are using 3.0.0.M3 ?

Try to upgrade your spring version to 3.0.0.RELEASE.

add method was added in

Changes in version 3.0.0.RC3 (2009-12-01)

  • added chaining-capable "add" method to MutablePropertyValues

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM