Hibernate and Eclipse..

S

sickness

Hello
It's my first time with Hibernate. I'm using Eclipse with hibernate
tool and Tomcat 5.5.
When I try to build the session Factory I obtain this error:

Initial SessionFactory creation
failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found

Hibernate Tools works well, all the xml file are right configured.
hibernate can't find the hibernate.cfg.xml.
I've put this under the folder 'hibernate_xml' , .. with the others xml
for mapping.
In the Java Build Path I try to add this folder (it's right?) but I've
not resolved my problem :(

I try to change also the instruction like this
sessionFactory = new
Configuration().configure("hibernate_xml/hibernate.cfg.xml").buildSessionFactory();

so I don't know why my application can't find this xml
(on the Hibernate_test\build\classes there're all the xml!)

thx for your response
bye
sickness
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,733
Latest member
LonaMonzon

Latest Threads

Top