1 Reply Latest reply on Jan 26, 2006 12:05 PM by alesj

    FactoryBean Interface is not recognized

    borisk

      JBoss_4_0_3_SP1 + jboss-spring deployer:
      The error is:


      [STDOUT] org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.orm.ibatis.SqlMapClientFactoryBean] to required type [com.ibatis.sqlmap.client.SqlMapClient] for property 'sqlMapClient'


      Don't pay attention to the concrete class - it is common problem for
      beans implemeted interface FactoryBean.

      It seems that in JBoss-spring deployer this spring feature doesn't work!
      Spingframework doesn't detect that bean implements FactoryBean interface.

      As standalone and even in JBoss without jboss-spring deployer it works fine.

      I've found some discussion at JIRA about the same exception(on another bean, however)

      http://opensource2.atlassian.com/projects/spring/browse/SPR-1235

      They suspects Class Loader problem, but give no solution.
      Or it is JBoss version problem..
      In JBoss4.0.2RC1, our spring app works well. After switching to JBoss4.0.2, there is an exception


      Please help