Posted on 2006-06-12
Hi I am trying a simple Hibernate example. But I am getting a NoClassDefFoundError. initially i did not have dom4j etc in my /lib folder but at that time it used to indicate which class is not found but this time it just says class not found and hence i am lost as to which class its not able to find.
also where am i suppose to place the hibernate.cfg.xml file and how does the app know where to pick it from.
this is how I am calling hibernate.
Session session = HibernateUtil.getSessionFactory().getCurrentSession();