hem kumar wrote:The problem has been solved sometimes ago. So instead of keeping the hibernate.cfg.xml in any folder, we should keep it in the source folder which can be found if right clicked on the project name in eclipse. Below is a screen shot for clarification. By that eclipse will automatically load it into classpath and the errors like class not found and InitializerExceptions wont occur. Thank you all.