Hi,

I was using hibernate tutorial from Appfuse site:
http://www.appfuse.org/display/APF/Using+Hibernate and where it says: 

Create an applicationContext.xml file in src/main/webapp/WEB-INF (or
core/src/main/resources for a modular archetype) and add the following XML
to it

This actually did not work for me. I had to add the spring bean reference: 

[code]
    <bean id="alimentoDao"
class="br.com.ansi.controlepeso.dao.hibernate.AlimentoDaoHibernate"> 
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
[/code]

to applictionContext-dao.xml instead of applicationContext.xml doing this
solved the spring reference problem stated on surefire file as mentioned on
tutorial.

:confused:


-- 
View this message in context: 
http://www.nabble.com/Hibernate-persistence-tutorial-error--tp15604237s2369p15604237.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]

Reply via email to