org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • A user project with following context XML <beans xmlns="http://www.springframework.org/schema/beans" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!--bean post-processor for JPA annotations--> <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"> </bean> <!--Exception translation bean post processor--> <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"> </bean> <!--Transaction manager for a single JPA EntityManager (alternative to JTA)--> <bean class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" id="entityManagerFactory"> <property name="persistenceUnitName" value="WebRainier"/> </bean> <bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> <!-- enable the configuration of transactional behavior based on annotations --> <tx:annotation-driven transaction-manager="transactionManager"/> </beans> After upgrading from Spring IDE2.2.6 into 2.3.0, an exception was thrown by SpringIDE while parsing the XML: !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2010-01-07 17:51:20.125 !MESSAGE Internal Error !STACK 0 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:/Rainier/GA/eclipse/workspace/Spring2.5/WebContent/WEB-INF/applicationConte xt.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/la ng/Object;)Lorg/springframework/beans/MutablePropertyValues; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefini tions(XmlBeanDefinitionReader.java:394) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefiniti ons(XmlBeanDefinitionReader.java:316) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBe anDefinitions(BeansConfig.java:338) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefiniti ons(XmlBeanDefinitionReader.java:284) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(B eansConfig.java:380) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(B eansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/la ng/Object;)Lorg/springframework/beans/MutablePropertyValues; at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.re gisterTransactionManager(AnnotationDrivenBeanDefinitionParser.java:95) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.ac cess$0(AnnotationDrivenBeanDefinitionParser.java:94) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$Ao pAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionP arser.java:121) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.pa rse(AnnotationDrivenBeanDefinitionParser.java:79) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceH andlerSupport.java:72) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustom Element(BeanDefinitionParserDelegate.java:1327) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustom Element(BeanDefinitionParserDelegate.java:1317) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.pars eBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.regi sterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefi nitions(XmlBeanDefinitionReader.java:475) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.regist erBeanDefinitions(BeansConfig.java:351) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefini tions(XmlBeanDefinitionReader.java:372) ... 13 more The problem is caused by the AnnotationDrivenBeanDefinitionParser while parsing tx:annotation-driven element. Root cause was that the version of org.springframework.beans.MutablePropertyValues loaded by the IDE does not have add() method
    via by Danny Ju,
  • A user project with following context XML <beans xmlns="http://www.springframework.org/schema/beans" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!--bean post-processor for JPA annotations--> <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"> </bean> <!--Exception translation bean post processor--> <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"> </bean> <!--Transaction manager for a single JPA EntityManager (alternative to JTA)--> <bean class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" id="entityManagerFactory"> <property name="persistenceUnitName" value="WebRainier"/> </bean> <bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> <!-- enable the configuration of transactional behavior based on annotations --> <tx:annotation-driven transaction-manager="transactionManager"/> </beans> After upgrading from Spring IDE2.2.6 into 2.3.0, an exception was thrown by SpringIDE while parsing the XML: !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2010-01-07 17:51:20.125 !MESSAGE Internal Error !STACK 0 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:/Rainier/GA/eclipse/workspace/Spring2.5/WebContent/WEB-INF/applicationConte xt.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/la ng/Object;)Lorg/springframework/beans/MutablePropertyValues; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefini tions(XmlBeanDefinitionReader.java:394) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefiniti ons(XmlBeanDefinitionReader.java:316) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBe anDefinitions(BeansConfig.java:338) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefiniti ons(XmlBeanDefinitionReader.java:284) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(B eansConfig.java:380) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(B eansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/la ng/Object;)Lorg/springframework/beans/MutablePropertyValues; at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.re gisterTransactionManager(AnnotationDrivenBeanDefinitionParser.java:95) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.ac cess$0(AnnotationDrivenBeanDefinitionParser.java:94) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$Ao pAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionP arser.java:121) at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.pa rse(AnnotationDrivenBeanDefinitionParser.java:79) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceH andlerSupport.java:72) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustom Element(BeanDefinitionParserDelegate.java:1327) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustom Element(BeanDefinitionParserDelegate.java:1317) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.pars eBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.regi sterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefi nitions(XmlBeanDefinitionReader.java:475) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.regist erBeanDefinitions(BeansConfig.java:351) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefini tions(XmlBeanDefinitionReader.java:372) ... 13 more The problem is caused by the AnnotationDrivenBeanDefinitionParser while parsing tx:annotation-driven element. Root cause was that the version of org.springframework.beans.MutablePropertyValues loaded by the IDE does not have add() method
    via by Danny Ju,
  • Unable to load spring application Context
    via Stack Overflow by tintin
    ,
  • Grails deployment to Glassfish and slf4j
    via Stack Overflow by tsure
    ,
  • Loading application-context.xml
    via Stack Overflow by theJava
    ,
    • org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:/Rainier/GA/eclipse/workspace/Spring2.5/WebContent/WEB-INF/applicationConte xt.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/la ng/Object;)Lorg/springframework/beans/MutablePropertyValues; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:394) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:316) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:338) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:284) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:380) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    27 more bugmates