pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedNo suitable driver
2+ messages / 2 participants
[nested] [flat]
* No suitable driver
@ 1999-07-08 15:38 C.J. Pena <cjp@professionalmedia.com>
0 siblings, 0 replies; 2+ messages in thread
From: C.J. Pena @ 1999-07-08 15:38 UTC (permalink / raw)
To: pgsql-interfaces
Hello,
I am using the Postgre v6.5-JDK11 driver (also tried the Postgre v6.4
driver) and
I receive "No suitable driver" error when I try to establish a
connection.
The registration -- Class.forname('postgresql.Driver') -- executes Ok.
This error leads me to believe the problem is in driver setup; if I
received something like
"connection refused" I would look first at security, say in pg_hba.conf,
right?
Thank you.
^ permalink raw reply [nested|flat] 2+ messages in thread
* No suitable driver
@ 2000-02-18 17:08 Floyd Shackelford <FloydS@4peakstech.com>
0 siblings, 0 replies; 2+ messages in thread
From: Floyd Shackelford @ 2000-02-18 17:08 UTC (permalink / raw)
To: pgsql-interfaces
I am trying to write a jdbc application for the first time and I can't seem
to connect to the database. I think my code is write. I suspect that my
problem is in my run script. PrintJob is the name of the class I am running
which wants to access the database. Anyone have any suggestions?
I am using the jdbc6.5-1.1.jar downloaded from the postgresql jdbc web site.
here is the error I'm receiving:
Exception: java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:111)
at java.sql.DriverManager.getConnection(DriverManager.java:134)
at PrintJob.ConnectDatabase(PrintJob.java:186)
at PrintJob.main(PrintJob.java:496)
here is my run script:
#! /bin/bash
# NOTE
# The environment variable JDKTOP must be set to point
# to the top of the jdk directory before running this
# script
CLASSPATH=.:$JDKTOP/lib:../jar/jdbc6.5-1.1.jar
# the host name must be followed by a slash
DBURL=jdbc:postgresql://*.*.*.*/
DBUSER=******
# since the password is stored in this script, you want to insure
permissions
# are adequate to keep prying eyes away
DBPASSWD=*******
# set VERBOSE to blank if you want to turn the PrintJob server's verbose
mode off
VERBOSE=-verbose
cd ./class
java -Djdbc.drivers=postgresql.Driver PrintJob -dburl $DBURL -dbuser
$DBUSER -dbpasswd $DBPASSWD $VERBOSE
cd ..
Regards,
Floyd Shackelford
4 Peaks Technology Group, Inc.
http://www.4peakstech.com/
office: +1.888.398.4405
fax: +1.916.404.7125
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-02-18 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-07-08 15:38 No suitable driver C.J. Pena <cjp@professionalmedia.com>
2000-02-18 17:08 No suitable driver Floyd Shackelford <FloydS@4peakstech.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