i have the problem of connection while i m using hibernate to connect to mssql server and i have installed sp4 of sql server.

before i had sql server sp3 and there was no such problem at all.

i recieved the following exception..


SQL Error: 0, SQLState: 08S01
- The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
org.hibernate.exception.JDBCConnectionException: Cannot open connection
at com.clearcube.util.DMLLayer.runSelectQuery(DMLLaye r.java:236)
at com.clearcube.permission.GetSecurityGroup.getSecur ityGroupId(GetSecurityGroup.java:106)
at com.clearcube.common.GetDiscoveredNodeGroup.getDis coveredNodesGroup(GetDiscoveredNodeGroup.java:67)
at com.clearcube.dashboard.DashboardService.getData(D ashboardService.java:65)
at com.clearcube.dashboard.DashboardRefreshService$1. run(DashboardRefreshService.java:55)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
Caused by: java.sql.SQLException: Cannot open connection
at com.clearcube.util.DMLLayer.runSelectQuery(DMLLaye r.java:237)
... 6 more
[DEBUG - Dashboard] Connections Exception : null
[DEBUG - Dashboard] Average Processor Utilization Exception : null
[DEBUG - Dashboard] Average Memory Utilization Exception : null
[DEBUG - Dashboard] Average Network Utilization Exception : null
[DEBUG - Dashboard] Exception : null