>From the exception "java.net.ConnectException: Connection refused" I can
tell that one of the following have happened:
1) Your DMBS is not listening on port 5000 for client connections
2) Firewall issue (ask your admin)
Slavikos
################################################################
Filippos Slavik
Part of the SIAMS's implementation development team. For more
information, please check http://www.siams.net
e-mail : [EMAIL PROTECTED]
################################################################
"The software said 'runs on Win95 or better,' so I installed
it on Linux..."
----- Original Message -----
From: Adarsh Jose <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 1999 11:06 AM
>
>
> I am getting the following error while trying to connect to MS-SQl
server. I am
> also enclosing the code. 151.209.33.3 represents the Database Server and
5000
> the port number. The Servlet has been installed in the servlets directory
of
> Java Web Server, and the HTML is in public_html directory of Java Web
Server. I
> am using a JDBC driver which works perfectly fine
>
> SQL Exception java.sql.SQLException: Can't open a socket on
151.209.33.3:5000.
> Check host and port number and make sure the security manager allows this
> connection.
> You can also try running the SocketApplet (java.net.ConnectException:
> Connection refused).
>
> (See attached file: NewMain.java)
>
> Kindly help me.
>
> Adarsh
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html