Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

where to place hibernate cfg xml

where to place hibernate cfg xml  using -'hibernate,hibernate.cfg.xml'

My project is like this:


can someone tell me where to put the hibernate.cfg.xml?

because I'm getting this error:

Initial SessionFactory creation hibernate.cfg.xml not found
Exception in thread "main" java.lang.ExceptionInInitializerError
    at thegamers.HibernateUtil.buildSessionFactory(
    at thegamers.HibernateUtil.<clinit>(
    at thegamers.App.main(
Caused by: org.hibernate.HibernateException: hibernate.cfg.xml not found
    at org.hibernate.util.ConfigHelper.getResourceAsStream(
    at org.hibernate.cfg.Configuration.getConfigurationInputStream(
    at org.hibernate.cfg.Configuration.configure(
    at thegamers.HibernateUtil.buildSessionFactory(
    ... 2 more


asked Oct 7, 2015 by deven.bendale
0 votes

Related Hot Questions

Government Jobs Opening