Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate.cfg.xml not found

 
Cherry Gupta
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I m new to hibernate.
I m trying to integrate hibernate with servlet using Tomcat but I m getting the exception org.hibernate.HibernateException: /hibernate.cfg.xml not found

Please tell me where to put "hibernate.cfg.xml" in my project. I m using eclipse.

Thanks
Cherry
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default you should deploy it to the top level of your classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic