Home  >  Forum  >  Spring
Post New Query

Configuration problem: <property> element


joined on
March 19,2013
Asked on April 09,2013
Hi All, Please help me to solve the below error

Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: <property> element for property 'accountservice' is only allowed to contain either 'ref' attribute OR 'value' attribute OR sub-element
Offending resource: class path resource [application-config.xml]
Bean 'finance'
-> Property 'accountService'
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyValue(BeanDefinitionParserDelegate.java:996)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:913)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitcollegeionParserDelegate.java:778)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:563)
joined on
March 16,2013
Replied on April 09,2013

Elaborate what are you doing?
joined on
March 19,2013
Replied on April 09,2013

I am trying to use inner bean in my spring applicatiom
joined on
March 16,2013
Replied on April 09,2013

May be you are doing some syntax error. Refer a url.

Example of Inner beans in Spring


Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us