I am trying to configure hibernate orm mapping tool to my java class and using PostgreSQL as my database and configured the password as "password". When I tried to
I got the same error and changing the following
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
to this
SessionFactory sessionFactory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();
worked for me.