Thanks for reply.
As you suggested i added the dom4j and commans-logging which was required but still its giving me exception
-----------------
Output:
-----------------
You are in main method boss..
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.3
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Configuration configure
INFO: configuring from resource: conf/hibernate.cfg.xml
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: conf/hibernate.cfg.xml
Aug 8, 2008 5:44:42 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
WARNING: conf/hibernate.cfg.xml not found
net.sf.hibernate.HibernateException: conf/hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:849)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:873)
at hyber.GoodHyber.main(GoodHyber.java:38)
What may be the problem. How did Hibernate know where we keep the configuration file?
I wonder how can i do this in Eclipse?
I am using
Eclipse GANYMEDE.