replace org.hibernate.cfg.Configuration by org.hibernate.console.spi.HibernateConfiguration