Boa tarde,
tenho um bean “testeDAO” declarado no applicationContext mas a spring parece não enxergar.
O fato é que ele é atributo de um outro bean (referencia) e é exibida a segunte mensagem:
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘modelService’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Can’t resolve reference to bean ‘testeDAO’ while setting property ‘testeDAO’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘testeDAO’ is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘testeDAO’ is defined
<bean id="modelService"
class="br.com.service.business.model.impl.ModelServiceImpl">
<property name="testeDAO"><ref bean="testeoDAO"/></property>
</bean>
porque testeoDAO não está definido se também declarei ele, so que no applicationContext-hibernate?
<bean id="testeDAO"
class="br.com.service.data.dao.impl.hibernate.TesteDAOHibernateImpl" >
</bean>
obrigado.