Re: connect linux-NT JDBC problem
Posted in 1999
Hagen Dont know if you are doing this alrady, but the 1536 in your jdbc url should correspond to the sqlexecinf line in your /etc/services. Frex: sqlexecinf 1536/tcp Since you are connecting from a NT box (as opposed to a direct connection on Linux), I would think it needs to be there on both sides. HTH Sujit dhagen1065@my-dejanews.com on 05/25/99 03:26:03 AM Please respond to dhagen1065@my-dejanews.com To: informix-list@iiug.org cc: (bcc: Sujit Pal) Subject: connect linux-NT JDBC problem Hi folks, I try to connect a java client program from NT4 (SP4) to Informix-SE (7.24.UC5) on Linux (SuSE 6.1) I downloaded the JDBC-20 driver from Informix my connect string is: jdbc:informix-sqli://b3pc230:1536//database/demo/s tores7:INFORMIXSERVER=demo_se;user=test;password=t est in sqlhosts on the linux pc: demo_se sesoctcp b3pc230 sqlexecinf there are entries in 'services' and 'hosts' on both machines, ping works, sqlexecd is running I get the following error: -------- java.sql.SQLException: Attempt to connect to database server (com.informix.asf.IfxASFException: [demo_se]Java socket exception encountered:java.net.ConnectException: Connection refused: no further information) failed. at java.lang.reflect.Constructor.newInstance(Native Method) at com.informix.jdbc.IfxDriver.connect(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at java.sql.DriverManager.getConnection(DriverManager .java:159) at Play.main(Play.java:63) Attempt to connect to database server (com.informix.asf.IfxASFException: [demo_se] Java socket exception encountered:java.net.ConnectException: Connection refused: no further information) failed. -------- and there is no logging information from sqlexecd :-( what's wrong? Thanks in advance from Hagen --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---