Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate.cfg.xml not found  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!