title: Bean creation exception
body: <p>My application context looks likt this,</p>
  
  <pre><code>&lt;bean id="caseTxBo" class="gov.case.rcp.bo.impl.caseTxBoImpl" &gt;
              &lt;property name="caseTxDao" ref="caseTxDao" /&gt;
      &lt;/bean&gt;
      &lt;bean id="caseTxDao" class="gov.case.rcp.dao.impl.caseTxDaoImpl" &gt;
              &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
  </code></pre>
  
  <p>Action class gets the context like this:</p>
  
  <pre><code>ServletContext context = request.getSession().getServletContext();
       BeanFactory factory = WebApplicationContextUtils.
             getRequiredWebApplicationContext(context);
       CaseTxBOImpl caseTxBo = (
  
               caseTxBoImpl) factory.getBean("caseTxBo");
  
       List&lt;caseTxPmt&gt; errorVarList =       
       caseTxBo.getcaseTxDao().findAllcaseTx();
  
      model.put("caseTxList", caseTxList);
  </code></pre>
  
  <p>BOImpl implements Dao and DAOImpl implements Dao:</p>
  
  <p>DaoImpl has the implementation and returns caseTxList.</p>
  
  <p>but I get a runTimeException as </p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'caseTxBo' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean 'caseTxDao' while setting bean property 'caseTxDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'caseTxDao' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [gov.case.rcp.pp.dao.impl.CaseTxDaoImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  follows:
  at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
  </code></pre>
  
  <p>Where did i go wrong?</p>