I have the hibernate.cfg.xml file in the project root folder.
If I run an application containing:
SessionFactory s
I was also facing the similar issue, and I noticed that my hibernate configuration file "hibernate.cfg.xml" was not on the required path. Hence I moved hibernate.cfg.xml into src folder and that resolved the issue.