From: Nick Fankhauser <nickf@ontko.com>
To: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: no suitable driver
Date: Tue, 11 Sep 2001 06:50:33 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGAEGLDKAA.nickf@ontko.com> (raw)
Hi-
I am getting the error message "no suitable driver" from a Tomcat
application that used to work. The change that I made to cause this is that
I originally accessed my database on the same server, but decided to change
the URL to point my application at a database residing on another server.
(Because I killed the DB horribly on the local server... but that's another
story, which is told on the pgsql-admin list...)
Here's a snip of what my connection looked like when it worked:
<snip>
private static final String driver = "org.postgresql.Driver";
private static final String user= "www-data";
private static final String pass = "";
private static final String dbUrl = "jdbc:postgresql:demo"; .
.
.
try {
Class.forName(driver);
connection = DriverManager.getConnection(dbUrl, user, pass);
</snip>
Then I changed the dbUrl string to:
private static final String dbUrl =
"jdbc:postgresql//wetwang.ontko.com/demo";
After recompiling & restarting my tomcat app with *no other changes*, I
started getting the "no suitable driver" message.
Any thoughts about what I've done wrong here?
Thanks!
-Nick
---------------------------------------------------------------------
Nick Fankhauser
nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788
doxpop - Court records at your fingertips - http://www.doxpop.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: nickf@ontko.com
Subject: Re: no suitable driver
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGAEGLDKAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGAEGLDKAA.nickf@ontko.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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