Hi,
I have a classcast exception if I cast the object from getBean("studentDAO") to the impl class which is com.mycom.integration.dao.ejb3.StudentDAO. But I don't get the exception if I cast it to the interface com.mycom.integration.dao.ejb3.IUserDAO. I would appreciate if anyone can shed somelight what is going on. And how would I be able to cast it to the impl class? I am using the latest Spring 2.0 and JDK 1.5.0.8.
Thanks for your help,
Don
Bean named 'studentDAO' must be of type [com.mycom.integration.dao.ejb3.StudentDAO], but was actually of type [$Proxy27]
org.springframework.beans.factory.BeanNotOfRequire dTypeException: Bean named 'studentDAO' must be of type [com.mycom.integration.dao.ejb3.StudentDAO], but was actually of type [$Proxy27]
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:305)
info not weaving 'org/apache/tools/ant/util/DOMElementWriter'
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:646)
at com.mycom.integration.dao.ejb3.StudentDAOTest.setU p(StudentDAOTest.java:40)


Reply With Quote
