Skip to content
Advertisement

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 12.2 (Not sure if that’s relevant).

project src

MainApp.java

JavaScript

HiberUtil.java

JavaScript

Error:

JavaScript

Thanks In-advance :)!

Advertisement

Answer

Clean installation of NetBeans fixed the issue!

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement