reset password
Author Message
Pallavi0205
Posts: 30
Posted 00:01 May 11, 2010 |

PageDao is my interface. In the servlet mapping when I declare

<property name="pageDao" ref="pageDao" /> it's giving me no such bean definition.

I am not getting where my error. can anyone please help me.

hsankav
Posts: 18
Posted 00:05 May 11, 2010 |

did u define the bean in spring-data.xml

for example

<bean id="forumDao" parent="abstractTxnDefinition">
        <property name="target">
            <bean class="csns.model.forum.dao.hibernate.ForumDaoImpl">
                <property name="sessionFactory" ref="sessionFactory" />
            </bean>
        </property>
    </bean>

trivedidr
Posts: 54
Posted 00:09 May 11, 2010 |

check the name in spring data.xml

the beans id/name must b same.

and also

check yr controller.....

may be you forget to set that  pageDao.

so if u did not set it then set it .

if still not solve then attach yr log file.

Pallavi0205
Posts: 30
Posted 00:54 May 11, 2010 |

Thanks my problem is solved. I had given wrong bean id name.