Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 -- - Mailing list pgsql-jdbc

From Tony Grant
Subject Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --
Date
Msg-id 1044999170.1597.51.camel@localhost
Whole thread Raw
In response to Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --  (GB Clark <postgres@vsservices.com>)
List pgsql-jdbc
On Tue, 2003-02-11 at 09:56, GB Clark wrote:

> > >The error I'm getting is
> > >java.sql.SQLException: Cannot load JDBC driver class 'null'

> > >And here is my code:
> > >Context ctx   = new InitialContext();

How about

Driver DriverName = (Driver)Class.forName("org.postgresql.Driver").newInstance();
Connection connection = ds.getConnection("jdbc:postgresql://x.x.x.x:5432/dbname);  <-- This is where it fails.

Cheers

Tony Grant
--
www.tgds.net Library management software toolkit,
redhat linux on Sony Vaio C1XD,
Dreamweaver MX with Tomcat and PostgreSQL


pgsql-jdbc by date:

Previous
From: Juan Francisco De Paz Santana
Date:
Subject: getTableName
Next
From: Daniel Serodio
Date:
Subject: Re: getTableName