pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedRE: No suitable driver
30+ messages / 20 participants
[nested] [flat]
* RE: No suitable driver
@ 2001-06-15 21:24 Skidmore, Walt <walt.skidmore@medinex.com>
0 siblings, 0 replies; 30+ messages in thread
From: Skidmore, Walt @ 2001-06-15 21:24 UTC (permalink / raw)
To: 'Peter Mezzina' <pmezzina@processintelligence.com>; pgsql-jdbc
Try passing the driver in the command line, like this: java
-Djdbc.drivers=org.postgresql.Driver ...
-----Original Message-----
From: Peter Mezzina [mailto:pmezzina@processintelligence.com]
Sent: Friday, June 15, 2001 2:58 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] No suitable driver
I have Tomcat 3.2.1 and Postgres 7.0.3 running well in Solaris and I
have installed the JDBC driver, jdbc7.0-1.2.jar, in both the
<TOMCAT_HOME>/lib and a second directory off of the tomcat tree. With
the jar file in the classpath the driver works fine from an application
but produces the error "No suitable driver" when called from within a
servlet. Having combed through the jdbc mailing list I have tried
placing the jar file in the <TOMCAT_HOME>/lib (a restart of tomcat
references the existence of the jar file in its output) and I have set
the driver's path for wrapper.classpath in tomcat.properties for the
parameter wrapper.classpath and set the driver name for
wrapper.bin.parameters.
Is there anyone who might have some advise about whatelse needs to be
done for this?
-Peter Mezzina
pmezzina@processintelligence.com
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://www.postgresql.org/search.mpl
^ permalink raw reply [nested|flat] 30+ messages in thread
* No suitable driver
@ 2001-06-15 21:57 Peter Mezzina <pmezzina@processintelligence.com>
2001-06-20 14:37 ` Re: No suitable driver Mathew Hreljac <mhreljac@borderware.com>
0 siblings, 1 reply; 30+ messages in thread
From: Peter Mezzina @ 2001-06-15 21:57 UTC (permalink / raw)
To: pgsql-jdbc
I have Tomcat 3.2.1 and Postgres 7.0.3 running well in Solaris and I
have installed the JDBC driver, jdbc7.0-1.2.jar, in both the
<TOMCAT_HOME>/lib and a second directory off of the tomcat tree. With
the jar file in the classpath the driver works fine from an application
but produces the error "No suitable driver" when called from within a
servlet. Having combed through the jdbc mailing list I have tried
placing the jar file in the <TOMCAT_HOME>/lib (a restart of tomcat
references the existence of the jar file in its output) and I have set
the driver's path for wrapper.classpath in tomcat.properties for the
parameter wrapper.classpath and set the driver name for
wrapper.bin.parameters.
Is there anyone who might have some advise about whatelse needs to be
done for this?
-Peter Mezzina
pmezzina@processintelligence.com
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: No suitable driver
2001-06-15 21:57 No suitable driver Peter Mezzina <pmezzina@processintelligence.com>
@ 2001-06-20 14:37 ` Mathew Hreljac <mhreljac@borderware.com>
0 siblings, 0 replies; 30+ messages in thread
From: Mathew Hreljac @ 2001-06-20 14:37 UTC (permalink / raw)
To: Peter Mezzina <pmezzina@processintelligence.com>; +Cc: pgsql-jdbc
This error occurs in JDBC when you don't register the driver in the JVM
before trying to use it. You need this line before you can get a
connection from the database:
Class.forName( "org.postgresql.Driver" ); // Or substitute whatever driver
you are using...
Matty
Peter Mezzina wrote:
> I have Tomcat 3.2.1 and Postgres 7.0.3 running well in Solaris and I
> have installed the JDBC driver, jdbc7.0-1.2.jar, in both the
> <TOMCAT_HOME>/lib and a second directory off of the tomcat tree. With
> the jar file in the classpath the driver works fine from an application
> but produces the error "No suitable driver" when called from within a
> servlet. Having combed through the jdbc mailing list I have tried
> placing the jar file in the <TOMCAT_HOME>/lib (a restart of tomcat
> references the existence of the jar file in its output) and I have set
> the driver's path for wrapper.classpath in tomcat.properties for the
> parameter wrapper.classpath and set the driver name for
> wrapper.bin.parameters.
>
> Is there anyone who might have some advise about whatelse needs to be
> done for this?
>
> -Peter Mezzina
> pmezzina@processintelligence.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
^ permalink raw reply [nested|flat] 30+ messages in thread
* no suitable driver
@ 2001-08-03 09:38 Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
2001-08-03 10:22 ` RE: no suitable driver Dave Cramer <Dave@micro-automation.net>
2001-08-03 10:46 ` Re: no suitable driver Tony Grant <tony@animaproductions.com>
0 siblings, 2 replies; 30+ messages in thread
From: Matthieu Guyonnet-Duluc @ 2001-08-03 09:38 UTC (permalink / raw)
To: pgsql-jdbc
hi, i've this typical error, i've read some stuff about it but many concern applets, and my problem comes from a jsp page.
i've the jar of distribution load from TOMCAT in it lib directory.
before that i've the 'unable to load class...' Now that i pt the jar in tomcat/lib nad modify the script to generate a good classpath value i've the "no suitable driver"
My configuration is APACHE 1.3.20/WIN NT 4.0 SP 4/TOMCAt 3.2/POSTGRESQL 7.1.2
Thank for help !
Matthieu
^ permalink raw reply [nested|flat] 30+ messages in thread
* RE: no suitable driver
2001-08-03 09:38 no suitable driver Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
@ 2001-08-03 10:22 ` Dave Cramer <Dave@micro-automation.net>
1 sibling, 0 replies; 30+ messages in thread
From: Dave Cramer @ 2001-08-03 10:22 UTC (permalink / raw)
To: 'Matthieu Guyonnet-Duluc' <matthieugd@orange.fr>; pgsql-jdbc
Matthieu
Can you send us the code which causes the problem. It is very difficult
to diagnose with this much information
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Matthieu
Guyonnet-Duluc
Sent: August 3, 2001 5:38 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] no suitable driver
hi, i've this typical error, i've read some stuff about it but many
concern applets, and my problem comes from a jsp page.
i've the jar of distribution load from TOMCAT in it lib directory.
before that i've the 'unable to load class...' Now that i pt the jar in
tomcat/lib nad modify the script to generate a good classpath value i've
the "no suitable driver"
My configuration is APACHE 1.3.20/WIN NT 4.0 SP 4/TOMCAt 3.2/POSTGRESQL
7.1.2
Thank for help !
Matthieu
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2001-08-03 09:38 no suitable driver Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
@ 2001-08-03 10:46 ` Tony Grant <tony@animaproductions.com>
1 sibling, 0 replies; 30+ messages in thread
From: Tony Grant @ 2001-08-03 10:46 UTC (permalink / raw)
To: Matthieu Guyonnet-Duluc <matthieugd@orange.fr>; +Cc: pgsql-jdbc
On 03 Aug 2001 11:38:10 +0200, Matthieu Guyonnet-Duluc wrote:
> hi, i've this typical error, i've read some stuff about it but many concern applets, and my problem comes from a jsp page.
>
> i've the jar of distribution load from TOMCAT in it lib directory.
>
> before that i've the 'unable to load class...' Now that i pt the jar in tomcat/lib nad modify the script to generate a good classpath value i've the "no suitable driver"
>
> My configuration is APACHE 1.3.20/WIN NT 4.0 SP 4/TOMCAt 3.2/POSTGRESQL 7.1.2
The jar is in TOMCAT_HOME/lib and nowhere else?
What is the driver called? Did you rename it to postgresql.jar?
How are your calling it? Did you restart Tomcat and Apache?
Je peux repondre en français aussi.
Cheers
Tony Grant
--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re:RE: no suitable driver
@ 2001-08-03 11:34 Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
0 siblings, 0 replies; 30+ messages in thread
From: Matthieu Guyonnet-Duluc @ 2001-08-03 11:34 UTC (permalink / raw)
To: pgsql-jdbc
thanks to all for your help,
this a url problem, i thought that the driver problem deal with jar file and not the code in jsp... newbie in java and postgresql is hard !
Matthieu
------ Mail d'origine ------
Matthieu
Can you send us the code which causes the problem. It is very difficult
to diagnose with this much information
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Matthieu
Guyonnet-Duluc
Sent: August 3, 2001 5:38 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] no suitable driver
hi, i've this typical error, i've read some stuff about it but many
concern applets, and my problem comes from a jsp page.
i've the jar of distribution load from TOMCAT in it lib directory.
before that i've the 'unable to load class...' Now that i pt the jar in
tomcat/lib nad modify the script to generate a good classpath value i've
the "no suitable driver"
My configuration is APACHE 1.3.20/WIN NT 4.0 SP 4/TOMCAt 3.2/POSTGRESQL
7.1.2
Thank for help !
Matthieu
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 30+ messages in thread
* no suitable driver
@ 2001-09-11 11:50 Nick Fankhauser <nickf@ontko.com>
2001-09-11 11:57 ` Re: no suitable driver fiol@cirrus.w3ping.com
2001-09-11 11:59 ` Re: no suitable driver Michael Stephenson <mstephenson@tirin.openworld.co.uk>
0 siblings, 2 replies; 30+ messages in thread
From: Nick Fankhauser @ 2001-09-11 11:50 UTC (permalink / raw)
To: pgsql-jdbc
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/
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2001-09-11 11:50 no suitable driver Nick Fankhauser <nickf@ontko.com>
@ 2001-09-11 11:57 ` fiol@cirrus.w3ping.com
2001-09-11 12:38 ` Re: no suitable driver Nick Fankhauser <nickf@ontko.com>
1 sibling, 1 reply; 30+ messages in thread
From: fiol@cirrus.w3ping.com @ 2001-09-11 11:57 UTC (permalink / raw)
To: Nick Fankhauser <nickf@ontko.com>; +Cc: pgsql-jdbc
> private static final String dbUrl = "jdbc:postgresql:demo"; .
> private static final String dbUrl =
> "jdbc:postgresql//wetwang.ontko.com/demo";
AFAIK, "jdbc:postgresql://host/database", so there is a ":" missing.
Hope that helps.
Antonio
P.S. My e-mail addres may not be good: remove any "panam0." from it, if
present.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2001-09-11 11:50 no suitable driver Nick Fankhauser <nickf@ontko.com>
2001-09-11 11:57 ` Re: no suitable driver fiol@cirrus.w3ping.com
@ 2001-09-11 12:38 ` Nick Fankhauser <nickf@ontko.com>
0 siblings, 0 replies; 30+ messages in thread
From: Nick Fankhauser @ 2001-09-11 12:38 UTC (permalink / raw)
To: fiol@cirrus.w3ping.com; mstephenson@tirin.openworld.co.uk; +Cc: pgsql-jdbc
Thanks Michael & Antonio!
>your URL is missing a colon
Adding the missing colon took care of the problem & got my demo back on line
with just 15 minutes to spare before the "business day" begins... If I were
running a commercial database, I'd still be waiting for the tech support
folks to wander into their office so they could promise to return my call
later! The open source community is great!
-Nick
---------------------------------------------------------------------
Nick Fankhauser
Business:
nickf@doxpop.com Phone 1.765.965.7363 Fax 1.765.962.9788
doxpop - Court records at your fingertips - http://www.doxpop.com/
Personal:
nick@fankhausers.com http://www.fankhausers.com
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2001-09-11 11:50 no suitable driver Nick Fankhauser <nickf@ontko.com>
@ 2001-09-11 11:59 ` Michael Stephenson <mstephenson@tirin.openworld.co.uk>
1 sibling, 0 replies; 30+ messages in thread
From: Michael Stephenson @ 2001-09-11 11:59 UTC (permalink / raw)
To: pgsql-jdbc
> Then I changed the dbUrl string to:
>
> private static final String dbUrl =
> "jdbc:postgresql//wetwang.ontko.com/demo";
>
> Any thoughts about what I've done wrong here?
This might not be the only problem, but your URL is missing a colon,
should be:
jdbc:postgresql://wetwang.ontko.com/demo
Michael xxx
^ permalink raw reply [nested|flat] 30+ messages in thread
* "No Suitable Driver"
@ 2001-10-24 23:13 Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
0 siblings, 1 reply; 30+ messages in thread
From: Guy McArthur @ 2001-10-24 23:13 UTC (permalink / raw)
To: pgsql-jdbc
Hi, I'm trying to get a small test program going. I have built PostgreSQL
7.1.3 on RedHat 6.2 with --java, installed and created databases, verified
with psql. The postgresql.jar is on my classpath.
My pg_hba.conf has:
local all password
host all 127.0.0.1 255.255.255.255 password
Here is my code:
import java.sql.*;
public class PostgresTest {
public static void main(String[] args) {
try {
Connection db =
DriverManager.getConnection("jdbc.postgresql:test&user=test&password=test");
// I've also tried all the permutations of getConnection() and urls.
// db, user, and password names have been changed to protect the innocent
// I've also tried Class.forName("org.postgresql.Driver") and
// Class.forName("org.postgresql.Driver").newInstance() instead of the arg.
db.close();
} catch(Throwable t) {
t.printStackTrace(System.out);
}
}
}
--
Running it with:
java -Djdbc.drivers=org.postgresql.Driver PostgresTest
where the db has been started by user postgres with:
/usr/local/pgsql/bin/postmaster -i -D /data/pgsql >/data/pgsql/pgsql.log 2>&1 &
And the error is:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at PostgresTest.main(PostgresTest.java:6)
What is wrong?
--
Guy McArthur * email{guym@arizona.edu} http{guymcarthur.com}
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
@ 2001-10-25 01:11 ` Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
0 siblings, 1 reply; 30+ messages in thread
From: Dave Cramer @ 2001-10-25 01:11 UTC (permalink / raw)
To: 'Guy McArthur' <guym@guymcarthur.com>; pgsql-jdbc
You need to load the driver first and then get the connection, also the
url for the connection s/b
jdbc:postgresql://hostname/test&user=test&password=test"
Assuming your database name is test
So your code needs to execute
Class.forName("org.postgresql.Driver")
And then
Connection db =
DriverManager.getConnection("jdbc:postgresql://hostname/test"test",test"
);
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Guy McArthur
Sent: October 24, 2001 7:13 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] "No Suitable Driver"
Hi, I'm trying to get a small test program going. I have built
PostgreSQL 7.1.3 on RedHat 6.2 with --java, installed and created
databases, verified with psql. The postgresql.jar is on my classpath.
My pg_hba.conf has:
local all password
host all 127.0.0.1 255.255.255.255 password
Here is my code:
import java.sql.*;
public class PostgresTest {
public static void main(String[] args) {
try {
Connection db =
DriverManager.getConnection("jdbc.postgresql:test&user=test&password=tes
t");
// I've also tried all the permutations of getConnection() and urls. //
db, user, and password names have been changed to protect the innocent
// I've also tried Class.forName("org.postgresql.Driver") and //
Class.forName("org.postgresql.Driver").newInstance() instead of the arg.
db.close();
} catch(Throwable t) {
t.printStackTrace(System.out);
}
}
}
--
Running it with:
java -Djdbc.drivers=org.postgresql.Driver PostgresTest
where the db has been started by user postgres with:
/usr/local/pgsql/bin/postmaster -i -D /data/pgsql >/data/pgsql/pgsql.log
2>&1 &
And the error is:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at PostgresTest.main(PostgresTest.java:6)
What is wrong?
--
Guy McArthur * email{guym@arizona.edu} http{guymcarthur.com}
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
@ 2001-10-25 22:28 ` Guy McArthur <guym@arizona.edu>
2001-10-25 22:29 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-29 18:19 ` Re: "No Suitable Driver" Nick Fankhauser <nickf@ontko.com>
0 siblings, 2 replies; 30+ messages in thread
From: Guy McArthur @ 2001-10-25 22:28 UTC (permalink / raw)
To: Dave Cramer <Dave@micro-automation.net>; +Cc: pgsql-jdbc
Huh. Well I have set up Jive Forums 2.1.1 (jivesoftware.com) using
postgres jdbc and it seems to work fine. Also in the Resin java web-app
server I set up a DataSource pool of postgres connections, and that seems
to work fine, fetching a connection, doing a query and all that. I haven't
looked at the source to see how they are doing it. But it absolutely does
not work from my command-line test app no matter which way I've tried it.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
@ 2001-10-25 22:29 ` Dave Cramer <Dave@micro-automation.net>
1 sibling, 0 replies; 30+ messages in thread
From: Dave Cramer @ 2001-10-25 22:29 UTC (permalink / raw)
To: 'Guy McArthur' <guym@arizona.edu>; +Cc: pgsql-jdbc
Guy,
Send me the pertinent code where you are loading the driver
Dave
-----Original Message-----
From: Guy McArthur [mailto:guym@arizona.edu]
Sent: October 25, 2001 6:28 PM
To: Dave Cramer
Cc: pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] "No Suitable Driver"
Huh. Well I have set up Jive Forums 2.1.1 (jivesoftware.com) using
postgres jdbc and it seems to work fine. Also in the Resin java web-app
server I set up a DataSource pool of postgres connections, and that
seems to work fine, fetching a connection, doing a query and all that. I
haven't looked at the source to see how they are doing it. But it
absolutely does not work from my command-line test app no matter which
way I've tried it.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
@ 2001-10-29 18:19 ` Nick Fankhauser <nickf@ontko.com>
2001-10-29 18:23 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
2001-10-29 19:38 ` Re: "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
1 sibling, 2 replies; 30+ messages in thread
From: Nick Fankhauser @ 2001-10-29 18:19 UTC (permalink / raw)
To: Guy McArthur <guym@arizona.edu>; +Cc: pgsql-jdbc
Guy-
I just looked back at your original post-
Have you tried a getConnection call that looks like this:
DriverManager.getConnection("jdbc.postgresql:test,"test","test");
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
2001-10-29 18:19 ` Re: "No Suitable Driver" Nick Fankhauser <nickf@ontko.com>
@ 2001-10-29 18:23 ` Guy McArthur <guym@arizona.edu>
1 sibling, 0 replies; 30+ messages in thread
From: Guy McArthur @ 2001-10-29 18:23 UTC (permalink / raw)
To: Nick Fankhauser <nickf@ontko.com>; +Cc: pgsql-jdbc
>
> I just looked back at your original post-
>
> Have you tried a getConnection call that looks like this:
>
> DriverManager.getConnection("jdbc.postgresql:test,"test","test");
^
that was my mistake.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: "No Suitable Driver"
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
2001-10-29 18:19 ` Re: "No Suitable Driver" Nick Fankhauser <nickf@ontko.com>
@ 2001-10-29 19:38 ` Guy McArthur <guym@guymcarthur.com>
1 sibling, 0 replies; 30+ messages in thread
From: Guy McArthur @ 2001-10-29 19:38 UTC (permalink / raw)
To: Nick Fankhauser <nickf@ontko.com>; +Cc: pgsql-jdbc
> Have you tried a getConnection call that looks like this:
>
> DriverManager.getConnection("jdbc.postgresql:test,"test","test");
^^^
that was my mistake.
^ permalink raw reply [nested|flat] 30+ messages in thread
* no suitable driver
@ 2001-11-09 02:32 vivi oktavia <just_basma@yahoo.com>
2001-11-09 11:18 ` Re: no suitable driver Nick Fankhauser <nickf@ontko.com>
0 siblings, 1 reply; 30+ messages in thread
From: vivi oktavia @ 2001-11-09 02:32 UTC (permalink / raw)
To: pgsql-jdbc
hi all..
i'm a beginner at using postgresql, especially in
linux. First of all, i want to ask about the
configuration at the jsp server. I use apache and
jakarta-tomcat-3.2.3.
What should i do first to connect the database at
postgresql to my jsp script using jdbc7.1-1.2.
I already use
Class.forname(org.postgresql.Driver)
jdbc:postgresql:databasename
at my script.
We put the jdbc7.1-1.2.jar at
/usr/java/jdk1.3.1_01/jre/lib/ext/
and we set the classpath at /etc/profile
We put our jsp script at
/jakarta-tomcat-3.2.3/webapps/examples/jsp/
Is that right, i mean the place and the setting of the
file. Because we still have error when we call our
script ..http://127.0.0.1/examples/jsp/...
the msg errors are:
Internal Servlet Error :
javax.servlet.ServletException : No suitable driver
at org.apache.jasper.runtime.....
.....
Root Cause :
java.sql.SQLException : No suitable driver
at
java.sql.DriverManager.getConnection(DriverManager.java:537)....
......
That'all..perhaps anyone can help me to solve the
problem...
Thanks..
vivi
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2001-11-09 02:32 no suitable driver vivi oktavia <just_basma@yahoo.com>
@ 2001-11-09 11:18 ` Nick Fankhauser <nickf@ontko.com>
0 siblings, 0 replies; 30+ messages in thread
From: Nick Fankhauser @ 2001-11-09 11:18 UTC (permalink / raw)
To: vivi oktavia <just_basma@yahoo.com>; pgsql-jdbc
Vivi-
What does the URL that you are passing to Driver.getConnection look like?
This message almost always means that the URL has a problem.
see this link for a longer explanation:
http://www.fankhausers.com/postgresql/jdbc/#nosuitabledriver
regards,
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
> Root Cause :
> java.sql.SQLException : No suitable driver
> at
> java.sql.DriverManager.getConnection(DriverManager.java:537)....
> ......
^ permalink raw reply [nested|flat] 30+ messages in thread
* No Suitable driver
@ 2002-07-28 15:07 alesspr <alesspr@uol.com.br>
0 siblings, 0 replies; 30+ messages in thread
From: alesspr @ 2002-07-28 15:07 UTC (permalink / raw)
To: pgsql-jdbc
My problem is:
The postgresql no function in Internet Explorer, just in
Netscape. What is happing?
The error mensage is:
java.sql.SQLException: No suitable driver
java.lang.NullPointerException
Thank You for help me.
Alessandra.
---
UOL Eleições 2002 - Todos os lances da disputa política
http://eleicoes.uol.com.br/
^ permalink raw reply [nested|flat] 30+ messages in thread
* No suitable driver
@ 2003-09-05 07:48 Jean-Michel Zigna <jzigna@cls.fr>
2003-09-05 14:24 ` Re: No suitable driver Paul Thomas <paul@tmsl.demon.co.uk>
2003-09-05 17:07 ` Re: No suitable driver Fabio Mesquita Povoa <fabio_mp@eadtec.com.br>
0 siblings, 2 replies; 30+ messages in thread
From: Jean-Michel Zigna @ 2003-09-05 07:48 UTC (permalink / raw)
To: pgsql-jdbc
Hello,
I'm trying to connect to a 7.1.3 postgres instance on a redhat 7.3 server
from a web application deployed with Jbuilder (using Java 1.4). I have
downloaded pg73jdbc3.jar (compatible with Java 1.4) but I have still an
exception when connecting : no suitable driver.
What's wrong whith this configuration ?
Thanks for your help.
ZIGNA Jean-Michel
Responsable Développements Nouvelles Technologies
CLS
8,10 rue Hermès
Parc technologique du canal
31526 Ramonville Saint-Agne
tél : 05 61 39 37 80
mail : zigna@cls.fr
www : www.cls.fr
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: No suitable driver
2003-09-05 07:48 No suitable driver Jean-Michel Zigna <jzigna@cls.fr>
@ 2003-09-05 14:24 ` Paul Thomas <paul@tmsl.demon.co.uk>
1 sibling, 0 replies; 30+ messages in thread
From: Paul Thomas @ 2003-09-05 14:24 UTC (permalink / raw)
To: pgsql-jdbc
On 05/09/2003 08:48 Jean-Michel Zigna wrote:
> Hello,
>
> I'm trying to connect to a 7.1.3 postgres instance on a redhat 7.3
> server from a web application deployed with Jbuilder (using Java 1.4). I
> have downloaded pg73jdbc3.jar (compatible with Java 1.4) but I have
> still an exception when connecting : no suitable driver.
>
> What's wrong whith this configuration ?
You web container can't find the driver. I have absolutely no idea where
you would put it in Jbuilder (I downloaded a free copy but I've never
bothered to try it) but if you were using Tomcat I would suggest that you
place or symlink the driver in its common/lib directory.
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: No suitable driver
2003-09-05 07:48 No suitable driver Jean-Michel Zigna <jzigna@cls.fr>
@ 2003-09-05 17:07 ` Fabio Mesquita Povoa <fabio_mp@eadtec.com.br>
1 sibling, 0 replies; 30+ messages in thread
From: Fabio Mesquita Povoa @ 2003-09-05 17:07 UTC (permalink / raw)
To: Jean-Michel Zigna <jzigna@cls.fr>; +Cc: pgsql-jdbc
Well, if i were u i would check if the url u r using is correct. This
problem also happened to me.
String url = "jdbc:postgresql://<host>:5432/database";
5432 is the default door.
----- Original Message -----
From: "Jean-Michel Zigna" <jzigna@cls.fr>
To: <pgsql-jdbc@postgresql.org>
Sent: Friday, September 05, 2003 4:48 AM
Subject: [JDBC] No suitable driver
> Hello,
>
> I'm trying to connect to a 7.1.3 postgres instance on a redhat 7.3 server
> from a web application deployed with Jbuilder (using Java 1.4). I have
> downloaded pg73jdbc3.jar (compatible with Java 1.4) but I have still an
> exception when connecting : no suitable driver.
>
> What's wrong whith this configuration ?
>
> Thanks for your help.
>
> ZIGNA Jean-Michel
> Responsable Développements Nouvelles Technologies
> CLS
> 8,10 rue Hermès
> Parc technologique du canal
> 31526 Ramonville Saint-Agne
> tél : 05 61 39 37 80
> mail : zigna@cls.fr
> www : www.cls.fr
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
^ permalink raw reply [nested|flat] 30+ messages in thread
* No suitable driver
@ 2003-10-23 09:54 Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>
2003-10-24 21:30 ` Re: No suitable driver Nick Fankhauser <nickf@ontko.com>
2003-10-24 23:45 ` Re: No suitable driver Paul Thomas <paul@tmsl.demon.co.uk>
0 siblings, 2 replies; 30+ messages in thread
From: Mike Kenny - CPX Mngd Services @ 2003-10-23 09:54 UTC (permalink / raw)
To: pgsql-jdbc
My code is quite simple
try {
Class.forName("org.postgres.Driver");
} catch(ClassNotFoundException nfe) {
nfe.printStackTrace();
}
try {
db = DriverManager.getConnection("jdbc:databasename", "id", "password");
} catch(SQLException se) {
se.printStackTrace();
}
on execution I receive a SQLException stating that there is no suitable driver
This is my first time trying to connect to postgreSQL and I am stuck.
Any advice appreciated (career change is not an option :-)
Mike Kenny
Principal Consultant
Comparex Africa (Pty) Ltd
Managed Services
* e-mail: mike.kenny@comparex.co.za
* Tel(W): +27 (0)11 266-5703
* Cell: +27 (0)83 266-1437
NOTICE: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Dave Gilbert at Comparex Africa (Pty) Ltd immediately, telephone number +27 (0) 11 266 5204. Any unauthorised use, alteration or dissemination is prohibited. Comparex Africa (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: No suitable driver
2003-10-23 09:54 No suitable driver Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>
@ 2003-10-24 21:30 ` Nick Fankhauser <nickf@ontko.com>
1 sibling, 0 replies; 30+ messages in thread
From: Nick Fankhauser @ 2003-10-24 21:30 UTC (permalink / raw)
To: Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>; pgsql-jdbc
Mike-
It looks to me like your URL for the connection is malformed. It should be
one of the following:
jdbc:postgresql:databasename
jdbc:postgresql://host/databasename
jdbc:postgresql://host:port/databasename
Take a look at this FAQ for more (There is also a "helloworld" example that
may be useful in the FAQ):
http://www.fankhausers.com/postgresql/jdbc/#nosuitabledriver
-Nick
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Mike Kenny - CPX Mngd
Services
Sent: Thursday, October 23, 2003 4:55 AM
To: JDBC (E-mail)
Subject: [JDBC] No suitable driver
My code is quite simple
try {
Class.forName("org.postgres.Driver");
} catch(ClassNotFoundException nfe) {
nfe.printStackTrace();
}
try {
db = DriverManager.getConnection("jdbc:databasename", "id", "password");
} catch(SQLException se) {
se.printStackTrace();
}
on execution I receive a SQLException stating that there is no suitable
driver
This is my first time trying to connect to postgreSQL and I am stuck.
Any advice appreciated (career change is not an option :-)
Mike Kenny
Principal Consultant
Comparex Africa (Pty) Ltd
Managed Services
* e-mail: mike.kenny@comparex.co.za
( Tel(W): +27 (0)11 266-5703
È Cell: +27 (0)83 266-1437
NOTICE: This message and any attachments are confidential and intended
solely for the addressee. If you have received this message in error,
please notify Dave Gilbert at Comparex Africa (Pty) Ltd immediately,
telephone number +27 (0) 11 266 5204. Any unauthorised use, alteration or
dissemination is prohibited. Comparex Africa (Pty) Ltd accepts no liability
whatsoever for any loss whether it be direct, indirect or consequential,
arising from information made available and actions resulting there from.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: No suitable driver
2003-10-23 09:54 No suitable driver Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>
@ 2003-10-24 23:45 ` Paul Thomas <paul@tmsl.demon.co.uk>
1 sibling, 0 replies; 30+ messages in thread
From: Paul Thomas @ 2003-10-24 23:45 UTC (permalink / raw)
To: Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>; +Cc: pgsql-jdbc
On 23/10/2003 10:54 Mike Kenny - CPX Mngd Services wrote:
> My code is quite simple
>
> try {
> Class.forName("org.postgres.Driver");
It's org.postgresql.Driver
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
^ permalink raw reply [nested|flat] 30+ messages in thread
* no suitable driver
@ 2005-05-31 04:43 umakanth parsi <umaparsi@yahoo.com>
2005-05-31 08:05 ` Re: no suitable driver Roland Walter <rwa@mosaic-ag.com>
0 siblings, 1 reply; 30+ messages in thread
From: umakanth parsi @ 2005-05-31 04:43 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
I am using following JDBC driver for my application
C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but i am getting follwoing error
Beginning TPCW Database population.
Found Properties file C:\tpcw\populate\database.ini
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
at TPCW_Populate.main(TPCW_Populate.java:115)
Table Already Dropped ADDRESS
Table Already Dropped AUTHOR
Table Already Dropped CC_XACTS
Table Already Dropped COUNTRY
Table Already Dropped CUSTOMER
Table Already Dropped ITEM
Table Already Dropped ORDER_LINE
Table Already Dropped ORDERS
Table Already Dropped SHOPPING_CART
Table Already Dropped SHOPPING_CART_LINE
Table Already Dropped AUTHOR1
Table Already Dropped ADDRESS1
Table Already Dropped COUNTRY1
Table Already Dropped CC_XACTS1
Table Already Dropped ORDER_LINE1
Table Already Dropped ORDERS1
Table Already Dropped ITEM1
Unable to create table: COUNTRY
java.lang.NullPointerException
at TPCW_Populate.createTables(TPCW_Populate.java:1282)
at TPCW_Populate.main(TPCW_Populate.java:117)
thanx in advance , please help me out to fix the problem
Thanx and Regards
Umakanth Parsi
Software Engineer (ATG)
Cincom systems Pvt,Ltd.
K-1 Building,412 , Mehurali-Gurgaon Road
Sector-14, Gurgaon-122001
Ph : 91-124-5082568,69,70,71 x325
Mobile : 09213228839
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2005-05-31 04:43 no suitable driver umakanth parsi <umaparsi@yahoo.com>
@ 2005-05-31 08:05 ` Roland Walter <rwa@mosaic-ag.com>
2005-05-31 13:06 ` Re: no suitable driver Diego Gil <diego@adminsa.com>
0 siblings, 1 reply; 30+ messages in thread
From: Roland Walter @ 2005-05-31 08:05 UTC (permalink / raw)
To: umakanth parsi <umaparsi@yahoo.com>; +Cc: pgsql-jdbc
umakanth parsi schrieb:
> Hi,
>
> I am using following JDBC driver for my application
> C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but
> i am getting follwoing error
> Beginning TPCW Database population.
> Found Properties file C:\tpcw\populate\database.ini
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getConnection(Unknown Source)
> at java.sql.DriverManager.getConnection(Unknown Source)
> at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
> at TPCW_Populate.main(TPCW_Populate.java:115)
Looks as if the jdbc-driver is not in the classpath.
--
Roland Walter
MOSAIC SOFTWARE AG
Telefon: 02225/882-411 Fax: 02225/882-201
http://www.mosaic-ag.com
------- L E G A L D I S C L A I M E R ---------
Die Informationen in dieser Nachricht sind vertraulich
und ausschliesslich fuer den Adressaten bestimmt.
Kenntnisnahme durch Dritte ist unzulaessig. Die
Erstellung von Kopien oder das Weiterleiten an weitere,
nicht originaere und benannte Adressaten ist nicht
vorgesehen und kann ungesetzlich sein. Die Meinungen
in dieser Nachricht stellen lediglich die Meinungen
des Senders dar. Falls Sie vermuten, dass diese
Nachricht veraendert wurde, setzen Sie sich mit dem
Absender in Verbindung. Der Absender uebernimmt ohne
weitere Ueberpruefung keine Verantwortung fuer die
Richtigkeit und Vollstaendigkeit des Inhalts. Unbefugte
Empfaenger werden gebeten, die Vertraulichkeit der
Nachricht zu wahren und den Absender sofort ueber
einen Uebertragungsfehler zu informieren.
------------------------------------------------------
^ permalink raw reply [nested|flat] 30+ messages in thread
* Re: no suitable driver
2005-05-31 04:43 no suitable driver umakanth parsi <umaparsi@yahoo.com>
2005-05-31 08:05 ` Re: no suitable driver Roland Walter <rwa@mosaic-ag.com>
@ 2005-05-31 13:06 ` Diego Gil <diego@adminsa.com>
0 siblings, 0 replies; 30+ messages in thread
From: Diego Gil @ 2005-05-31 13:06 UTC (permalink / raw)
To: Roland Walter <rwa@mosaic-ag.com>; +Cc: umakanth parsi <umaparsi@yahoo.com>; pgsql-jdbc
It seems to be a malformed or wrong URL to me. It happened once to me,
when wrote jdbc:postgresq://locahost instead of
jdbc:postgresql://localhost.
Diego.
El mar, 31-05-2005 a las 10:05 +0200, Roland Walter escribió:
> umakanth parsi schrieb:
> > Hi,
> >
> > I am using following JDBC driver for my application
> > C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but
> > i am getting follwoing error
> > Beginning TPCW Database population.
> > Found Properties file C:\tpcw\populate\database.ini
> > java.sql.SQLException: No suitable driver
> > at java.sql.DriverManager.getConnection(Unknown Source)
> > at java.sql.DriverManager.getConnection(Unknown Source)
> > at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
> > at TPCW_Populate.main(TPCW_Populate.java:115)
>
> Looks as if the jdbc-driver is not in the classpath.
>
^ permalink raw reply [nested|flat] 30+ messages in thread
end of thread, other threads:[~2005-05-31 13:06 UTC | newest]
Thread overview: 30+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-15 21:24 RE: No suitable driver Skidmore, Walt <walt.skidmore@medinex.com>
2001-06-15 21:57 No suitable driver Peter Mezzina <pmezzina@processintelligence.com>
2001-06-20 14:37 ` Mathew Hreljac <mhreljac@borderware.com>
2001-08-03 09:38 no suitable driver Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
2001-08-03 10:22 ` RE: no suitable driver Dave Cramer <Dave@micro-automation.net>
2001-08-03 10:46 ` Re: no suitable driver Tony Grant <tony@animaproductions.com>
2001-08-03 11:34 Re:RE: no suitable driver Matthieu Guyonnet-Duluc <matthieugd@orange.fr>
2001-09-11 11:50 no suitable driver Nick Fankhauser <nickf@ontko.com>
2001-09-11 11:57 ` Re: no suitable driver fiol@cirrus.w3ping.com
2001-09-11 12:38 ` Re: no suitable driver Nick Fankhauser <nickf@ontko.com>
2001-09-11 11:59 ` Re: no suitable driver Michael Stephenson <mstephenson@tirin.openworld.co.uk>
2001-10-24 23:13 "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-10-25 01:11 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-25 22:28 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
2001-10-25 22:29 ` Re: "No Suitable Driver" Dave Cramer <Dave@micro-automation.net>
2001-10-29 18:19 ` Re: "No Suitable Driver" Nick Fankhauser <nickf@ontko.com>
2001-10-29 18:23 ` Re: "No Suitable Driver" Guy McArthur <guym@arizona.edu>
2001-10-29 19:38 ` Re: "No Suitable Driver" Guy McArthur <guym@guymcarthur.com>
2001-11-09 02:32 no suitable driver vivi oktavia <just_basma@yahoo.com>
2001-11-09 11:18 ` Re: no suitable driver Nick Fankhauser <nickf@ontko.com>
2002-07-28 15:07 No Suitable driver alesspr <alesspr@uol.com.br>
2003-09-05 07:48 No suitable driver Jean-Michel Zigna <jzigna@cls.fr>
2003-09-05 14:24 ` Paul Thomas <paul@tmsl.demon.co.uk>
2003-09-05 17:07 ` Fabio Mesquita Povoa <fabio_mp@eadtec.com.br>
2003-10-23 09:54 No suitable driver Mike Kenny - CPX Mngd Services <Mike.Kenny@Comparex.co.za>
2003-10-24 21:30 ` Nick Fankhauser <nickf@ontko.com>
2003-10-24 23:45 ` Paul Thomas <paul@tmsl.demon.co.uk>
2005-05-31 04:43 no suitable driver umakanth parsi <umaparsi@yahoo.com>
2005-05-31 08:05 ` Re: no suitable driver Roland Walter <rwa@mosaic-ag.com>
2005-05-31 13:06 ` Re: no suitable driver Diego Gil <diego@adminsa.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