Re: JDBC connection issue

Lists: pgsql-jdbc
From: "Young Nam" <Ynam(at)sharedmarketing(dot)com>
To: "Kris Jurka" <books(at)ejurka(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JDBC connection issue
Date: 2004-07-13 18:05:09
Message-ID: 581C48EBC132FF459E62A6809D0D72AEF51A72@mail.sharedmarketing.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Thanks for speedy replies, Kris.

I've included both jar files in the CLASSPATH. Same error.

YJ

-----Original Message-----
From: Kris Jurka [mailto:books(at)ejurka(dot)com]
Sent: Tuesday, July 13, 2004 12:58 PM
To: Young Nam
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: RE: [JDBC] JDBC connection issue

On Tue, 13 Jul 2004, Young Nam wrote:

> Ok. I've changed the pg_hba.conf from 'local' to 'host' but still the
> same exception.

Right, this is unrelated to the problem you mentioned, but this would be
the next problem you would run into after solving your original problem.

> echo $CLASSPATH returns the correct value
> /usr/local/pgsql/share/java/postgresql.jar
>

This cannot be the classpath that you are actually using. If so it
couldn't find your test program. Are you providing a -cp or -classpath
argument on the java command line when running the test program? If so
this is overriding the environment variable. You need to get both the jar
file and the test program into the same classpath. It doesn't matter if
it's the environment or command line one, but it needs to be the same.

Kris Jurka


From: Kris Jurka <books(at)ejurka(dot)com>
To: Young Nam <Ynam(at)sharedmarketing(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC connection issue
Date: 2004-07-13 18:07:06
Message-ID: Pine.BSO.4.56.0407131306300.31321@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Tue, 13 Jul 2004, Young Nam wrote:

> Thanks for speedy replies, Kris.
>
> I've included both jar files in the CLASSPATH. Same error.
>

What exactly is the CLASSPATH and what exact command are you running java
with?

Kris Jurka


From: Jan de Visser <jdevisser(at)digitalfairway(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC connection issue
Date: 2004-07-13 18:17:05
Message-ID: 200407131417.06524.jdevisser@digitalfairway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On July 13, 2004 02:05 pm, Young Nam wrote:
> I've included both jar files in the CLASSPATH.  Same error.

But you still haven't shown us how you start your program...

JdV!!

--
--------------------------------------------------------------
Jan de Visser jdevisser(at)digitalfairway(dot)com

Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------