I try to run hibernate 5.6.0 in java 16 and I am programming with intellij 2021.2 for apple sillicon. When I run it I get this error: My hibernate.cfg.xml is in source root:source tree Answer Always include the resource files in the separate resources directory. As by default, Maven (and so IDE as well) will not copy the resource files
Tag: hibernate.cfg.xml
config.ConfigurationException: Could not locate cfg.xml resource [hibernate.cfg.xml]
I am building a hibernate application that creates, modify, and query tables from a database. The project was running perfectly fine without having this error, when I try to run it now I got this error out of nowhere. The ‘hibernate.cfg.xml’ is placed in the ‘src’ folder as can be seen below. I am running it on Netbeans Apache IDE