Home  >  Forum  >  Spring
Post New Query

Configuration problem: <property> element



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)



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



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


Replied on April 09, 2013
May be you are doing some syntax error. Refer a url.

Example of Inner beans in Spring




Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us