SQLException java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
Posted on 2004-04-27
Yesterday. All the things were OK.But when I turned on the computer this morning and ran "java Testconnect"
I got the error: SQLException java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
By the way: yesterday when I used java Applet in eclipse, I could connect the server database. But the same applet class did not work in the webpages. SO, I copied "msutil.jar mssqlserver.jar msbase.jar" to C:\j2sdk1.4.2_04\jre\lib\ext and C:\Program Files\Java\j2re1.4.2_03\lib\ext ,C:\Program Files\Java\j2re1.4.2_04\lib\ext (the last two are installed by eclipse editor, I think).
I deleted all of them now and re-setup the JDBC driver. it does not work.
TOMCAT 5.0, winXP, j2sdk1.4, JDBC driver