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]