Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.10.1) with SMTP id e9E4nMr53181 for ; Sat, 14 Oct 2000 00:49:22 -0400 (EDT) Received: from c004.sfo.cp.net (c004-h004.c004.sfo.cp.net [209.228.14.75]) by hub.org (8.10.1/8.10.1) with SMTP id e9DJ8Ar28911 for ; Fri, 13 Oct 2000 15:08:47 -0400 (EDT) Received: (cpmta 25285 invoked from network); 13 Oct 2000 12:07:01 -0700 Date: 13 Oct 2000 12:07:01 -0700 Message-ID: <20001013190701.25284.cpmta@c004.sfo.cp.net> X-Sent: 13 Oct 2000 19:07:01 GMT Received: from [202.56.219.85] by mail.namezero.com with HTTP; 13 Oct 2000 12:07:01 PDT Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: pgsql-admin@postgresql.org From: Anuj@mannindia.com X-Mailer: Web Mail 3.7.1.4 X-Sent-From: mannindia.com@namezero.com Subject: Connecting through JdbcOdbcDriver from Servlets X-Archive-Number: 200010/62 X-Sequence-Number: 856 Hello, I have written a servlet to connectto a PostgreSQL database on Linux 6.2. I am using JdbcOdbcDriver. When I am running the servlet from JSWDK on Windows NT , it works fine . But when I try to run it from JSWDK on Linux , it gives an exception "No Suitable Driver". My code is like this: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") DriverManager.getConnection("jdbc:odbc:cards","anuj","") the .odbc.ini file is kept in "/" directory and it is: [ODBC Data Sources] cards = PostgreSQL [cards] Driver = /usr/local/pgsql/lib/libpgsqlodbc.so.1 Database = cards UID = anuj Host = localhost Port = 5432 The error is coming in when I try to do getConnection. If anybody could help me in this, please. I believe there must be something wrong in Configuration,as the same code works from JWSDK on NT. TIA, Anuj. Anuj Paul _______________________________________ Click here to get your free domain name and personal portal from NAMEzero(TM): http://www.namezero.com