/hibernate.cfg.xml not found
Problem: Many a times we get a problem in hibernate saying /hibernate.cfg.xml not found
Solution: As per Java Persistence with Hibernate book, you should keep the hibernate configuration file directly in the source directory of your project outside any package. In Rational Application Developer, I have solved this problem by placing it directly src folder.
Advertisement
Thanks..this response helped me a lot..
That helped… Thanks
it works for me.. thanks..
Thanks!!!!!!
Its really works
Thaaaannnnnkkkkksss!!!!
SOLVED!!!!
Thanks Man….This was a great Help!!!!
Great tip!!!
Thanks.
Another solution is to change the SessionFactory creation in HibernateUtil.java
pathToHibernateCfg = “hibernate/resources/hibernate.cfg.xml”;
return new Configuration().configure(pathToHibernateCfg).buildSessionFactory();
it’s really working