This discussion is archived
4 Replies Latest reply: Dec 26, 2005 11:53 PM by Avi Abrami RSS

The Network Adapter could not establish the connection

203499 Newbie
Currently Being Moderated
Hi,

I am trying to migrate my application from tomcat/windows to Tomcat/Linux, but I've got a problem with my JDBC connection.

I've got the same code and the same configuration of tomcat on my two machines, but while the JDBC connection is ok under Windows, i got this error message on linux:

java.sql.SQLException: Io exception: The Network Adapter could not establish the connection.

I can do a telnet on the database machine with the good port:
telnet 192.168.1.190 1521
it works on windows and on linux.

Iva tried two ways to write my jdbc url:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.190)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=FFB)))
and
jdbc:oracle:thin:@192.168.1.190:1521:FFB
but the two ways don't work...

please help,

thx

Vincent Morin