Hi MJ,
My Project is not J2EE based, its a core java project. Any ways thanks for help.
I Got the solution of my problem.
Problem was the location of hibernate.cfh.xml. By default Configration class take hibernate file location as /hibernate.cfg.xml which means the root of project. So knowing this we always put file in root of project.
But problem comes of our source and binary locations are different. so all configuration files should copy to binary locations (in war file or web-inf.classes) or actual binary location in case of core java based projects.
Any ways My problem got problem solved.
Thanks
Sonal
|