Configuration configuration = new Configuration();
configuration.configure("src/hibernate.cfg.xml");
Configuration.configure() looks into the classpath, so need of src/hibernate.cfg.xml. Just go for
You can also do this : (with hibernate.cfg.xml, removing properties file)