pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedNo suitable driver error trying to connect to postgresql from jdeveloper
3+ messages / 3 participants
[nested] [flat]
* No suitable driver error trying to connect to postgresql from jdeveloper
@ 2004-08-06 12:05 Robert Bowen <syg6@yahoo.com>
0 siblings, 2 replies; 3+ messages in thread
From: syg6@yahoo.com @ 2004-08-06 12:05 UTC (permalink / raw)
To: pgsql-jdbc
Anyone have this problem? Usually it is because of a classpath error
but I have copied my jar file(s) into the jdeveloper/jdbc/lib
directory (where the oracle jdbc drivers are ...) and tried the
following:
Connection Type : 3rd Party JDBC Driver
Username and password correct (verified using pgAdmin)
Driver class : org.postgresql.Driver
Classpath : I have tried all 4 drivers that come with postgresql 7.5
-- pg74.214.jdbc1.jar, jdbc2.jar, jdbc2ee.jar and jdbc3.jar.
url : localhost:5432 (this works in pgAdmin)
... no dice. Any clues? My connection to Oracle 9i from jdeveloper
works fine ... As does my pgAdmin connection to postgresql ...
Many thanks!
syg
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: No suitable driver error trying to connect to postgresql
@ 2004-08-06 16:09 Kris Jurka <books@ejurka.com>
parent: Robert Bowen <syg6@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Kris Jurka @ 2004-08-06 16:09 UTC (permalink / raw)
To: Robert Bowen <syg6@yahoo.com>; +Cc: pgsql-jdbc
On Fri, 6 Aug 2004, Robert Bowen wrote:
> Anyone have this problem? Usually it is because of a classpath error
> but I have copied my jar file(s) into the jdeveloper/jdbc/lib
> directory (where the oracle jdbc drivers are ...) and tried the
> following:
>
> url : localhost:5432 (this works in pgAdmin)
>
pgAdmin is not a java client, so there are a number of differences. I
imagine you want a url of the form
jdbc:postgresql://localhost:5432/mydatabase
also a JDBC connection requires tcpip sockets enabled on the server and
access allowed in pg_hba.conf which pgAdmin doesn't necessarily need.
Finally you haven't given any error messages so the above is just
speculation.
Kris Jurka
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: No suitable driver error trying to connect to
@ 2004-08-06 16:10 Dave Cramer <pg@fastcrypt.com>
parent: Robert Bowen <syg6@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Dave Cramer @ 2004-08-06 16:10 UTC (permalink / raw)
To: Robert Bowen <syg6@yahoo.com>; +Cc: pgsql-jdbc
the url is incorrect
it needs to be.
jdbc:postgresql://host:port/database
Dave
On Fri, 2004-08-06 at 08:05, Robert Bowen wrote:
> Anyone have this problem? Usually it is because of a classpath error
> but I have copied my jar file(s) into the jdeveloper/jdbc/lib
> directory (where the oracle jdbc drivers are ...) and tried the
> following:
>
> Connection Type : 3rd Party JDBC Driver
>
>
> Username and password correct (verified using pgAdmin)
>
> Driver class : org.postgresql.Driver
>
> Classpath : I have tried all 4 drivers that come with postgresql 7.5
> -- pg74.214.jdbc1.jar, jdbc2.jar, jdbc2ee.jar and jdbc3.jar.
>
> url : localhost:5432 (this works in pgAdmin)
>
> ... no dice. Any clues? My connection to Oracle 9i from jdeveloper
> works fine ... As does my pgAdmin connection to postgresql ...
>
> Many thanks!
> syg
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Dave Cramer
519 939 0336
ICQ # 14675561
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-08-06 16:10 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 12:05 No suitable driver error trying to connect to postgresql from jdeveloper Robert Bowen <syg6@yahoo.com>
2004-08-06 16:09 ` Re: No suitable driver error trying to connect to postgresql Kris Jurka <books@ejurka.com>
2004-08-06 16:10 ` Re: No suitable driver error trying to connect to Dave Cramer <pg@fastcrypt.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox