I have the hibernate.cfg.xml file in the project root folder.
If I run an application containing:
SessionFactory s
If you are using Maven to build your project, place the 'hibernate.cfg.xml' file under 'src/main/resources'