[EMAIL PROTECTED] wrote:
Mike,

thank you for your patience and effort trying to resolve this issue.
I just changed the essential parts to reproduce the error.
Here's the setter in CasesJdbcDAO:

public void setDataSource(JDBCDataSource dataSource) {
  if (log.isDebugEnabled()) log.debug("setting dataSource in casesDAO");
  this.ds = dataSource;
  //the dataSource has to be updated after the bean has been injected
  this.setDataSource(this.ds.getDs());
}

and the correlating snipplet of the faces-config.xml configuration file:
<managed-bean>
  <description>this one retrieves the cases</description>
  <managed-bean-name>casesDAOBean</managed-bean-name>
<managed-bean-class>com.edegger.dao.springJDBC.CasesJdbcDAO</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
  <managed-property>
    <property-name>dataSource</property-name>
    <value>#{jdbcDataSourceBean}</value>
</managed-property> </managed-bean>

Since the field ds is only used within the class CasesJdbcDAO, I don't need an
getter for this property.
And finally the signature of the class is:

public class CasesJdbcDAO extends JdbcDaoSupport implements CasesDAO {


Just as a guess, you don't have any methods on the base classes that have similar names or signatures do you? eg:

class JdbcDaoSupport {
  public void setDataSource(...);
}


Regards,

Simon

Reply via email to