In your code
Configuration config = new Configuration();
It does not prepare your hibernate.cfg.xml file.
Use following code to create configuration object.
// This step will read hibernate.cfg.xml and prepare hibernate for use
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
session = sessionFactory.openSession();