Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jsp

Status
Not open for further replies.

loneill

Programmer
Mar 4, 2002
12
IE
Hi, I am using interbase database and java server pages. I understand that you can access Interbase over a mapped drive if you have interbase installed also on that drive. I am trying to connect using the following lines of code:

Class.forName("interbase.interclient.Driver");
Connection con=DriverManager.getConnection("jdbc:interbase://Diarmuid/E:/Wdesign.gdb","SYSDBA","masterkey");

Yet I have the following error:

javax.servlet.ServletException: [interclient] Communication error: A socket exception occurred while trying to establish a socket connection to server Diarmuid.
The message of the SocketException is "Connection refused: connect".
 
Is the drive mapped already? Do you have the correct permissions?
 
The drive is mapped and all permissions are set correctly
 
Ok, so I can think of a couple of things. One is, if you have the drive to Diarmuid mapped on your localdrive, just use that path.

Otherwise, when a drive is shared on a windows network, it is not shared as a drive letter but as a name (e.g. mydata or d$). While the drive on Diaramuid may be d: it is not shared that way. This is most likely your issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top