This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I think its relevant in this forum, David. The usual cause for this sort of behaviour is a misconfigured SessionFactory. Praveen, can you post any error s you see in your log files - ideally as David asks in a new topic (for clarity's sake)?