when i m trying to connect with databse its giving error like can not open connection..
What is the exact error? Can you post the stack trace? Since this is Hibernate can you also post your configuration file? And if you could explain how you are configuring your data source that would be good too.