Received: from carpincho.elit.com.ar (carpincho.elit.com.ar [200.26.48.173]) by hub.org (8.9.1/8.9.1) with ESMTP id JAA14709 for ; Wed, 28 Oct 1998 09:04:41 -0500 (EST) (envelope-from acamero@carpincho.elit.com.ar) Received: from osopc (osolin.elit.com.ar [192.168.2.3]) by carpincho.elit.com.ar (8.8.7/8.8.7) with SMTP id LAA28189 for ; Wed, 28 Oct 1998 11:11:43 -0300 Message-ID: <003a01be027b$92c0e2a0$0302a8c0@osopc> From: "Adrian Camero" To: Subject: RV: [ADMIN] postgresql JDBC driver question Date: Wed, 28 Oct 1998 11:02:17 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Hy Murad: the variable "con" will be Connection type Class.forName("postgresql.Driver"); >>>>>>>>> Connection con = DriverManager.getConnection(url, usr, pwd); stmt = con.createStatement(); -----Mensaje original----- De: Murad Nayal Para: pgsql-interfaces@postgreSQL.org ; pgsql-admin@postgreSQL.org Fecha: Martes 27 de Octubre de 1998 00:43 Asunto: [ADMIN] postgresql JDBC driver question > > >I am baffled: > >I wrote a small java program to test postgresql jdbc driver. the applet >runs fine locally using applet viewer. indicating that the driver is >recognizing the url and responding to it correctly. however I get the >message "NO suitable Driver" when the applet is run from a remote >browser. the Class.forName("postgresql.Driver"); does not produce an >exception leading me to believe that the Driver is found but it is not >accepting the url (same one that worked locally)? > >code > > String url = >"jdbc:postgresql://godel.bioc.columbia.edu:1212/stockprices"; > String usr = "murad"; > String pwd = "*******"; > > try { > > Class.forName("postgresql.Driver"); > con = DriverManager.getConnection(url, usr, pwd); // <- this >generates the problem > stmt = con.createStatement(); > > } catch (Exception e) { > >part of the html file: > > >Enter one of the following company symbols: >SGI, CCI, CMB. A bit of a small database I know. > >height=300> > > >Thanks for the help > >-- >Murad Nayal M.D. Ph.D. >Department of Biochemistry and Molecular Biophysics >College of Physicians and Surgeons of Columbia University >630 West 168th Street. New York, NY 10032 >Tel: 212-305-6884 Fax: 212-305-6926 > > >