I fixed it but i get a new error
SQLException caught: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
I am using sql server 2008 under windows authentication and my connection
string is :
jdbc:sqlserver://localhost:1433;databaseName=sampledb;integratedSecurity=true