Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --

From: Tony Grant <tgrant(at)tgds(dot)net>
To: GB Clark <postgres(at)vsservices(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --
Date: 2003-02-11 21:32:51
Message-ID: 1044999170.1597.51.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message GB Clark 2003-02-12 03:12:19 Re: Datasource and tomcat, Postgresql 7.4, jkd1.4.1 --
Previous Message Barry Lind 2003-02-11 17:48:36 Re: create BLOB question