Does this fail during a test or when running your app? Have you removed any paths in your Spring configuration? applicationContext-dao.xml contains the sessionFactory bean's definition.
Matt On Tue, Sep 23, 2008 at 10:03 AM, rjhraman <[EMAIL PROTECTED]> wrote: > > All, > > My appcontext-dao.xml has the following entry:- > > <bean id="timeEntryDao" > > class="com.leadcapper.app.timeEntry.dao.hibernate.TimeEntryDaoImpl"> > <property name="sessionFactory" ref="sessionFactory"/> > </bean> > > However, the sessionFactory defined in the below hibernate.cfg.xml is not > being recognized and I get the following message. > > Cannot resolve reference to bean 'sessionFactory' while setting bean > property 'sessionFactory'; nested exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean > named 'sessionFactory' is defined > > Hibernate Config > ============ > > <hibernate-configuration> > <session-factory> > <mapping class="org.appfuse.model.User"/> > <mapping class="org.appfuse.model.Role"/> > <mapping class="com.leadcapper.app.timeEntry.model.TimeEntry"/> > </session-factory> > </hibernate-configuration> > > Appreciate the help in this. > -- > View this message in context: > http://www.nabble.com/Appfuse-Test-Case-execution-failure-tp19631039s2369p19631039.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
