ConfigurationException: Could not locate cfg.xml resource [hibernate.cfg.xml] in project root folder

If you are using Maven to build your project, place the 'hibernate.cfg.xml' file under 'src/main/resources'


If you are using Maven as build tool then place hibernate.cfg.xml under resources folder.

Steps to make application refer Hibernate Configuration File.

Right click the resources folder and select Mark Directory As option and click on Resources Root.

These steps worked for me in InteliJ IDEA Ultimate 14.


The hibernate.cfg.xml file should be moved to src folder.