title: Spring property reference is not working
body: <pre><code>&lt;bean name="readerService" class="com.mayank.example1.ReaderService"/&gt;
     &lt;property name="reader" ref="fileReader" /&gt;
  &lt;/bean&gt;
  &lt;bean name="fileReader" class="com.mayank.example1.FileReader"&gt;
     &lt;constructor-arg value="resources/myfile.txt" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Reder service take reader as argument in its constructor
  Reader is Interface.
  FileReader is class that implement Reader</p>
  
  <p>In spring It is not taking property reader and throwing exception:</p>
  
  <p>Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15 in XML document from class path resource [reader-beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected</p>