Skip site navigation (1) Skip section navigation (2)

Re: No suitable driver

From: Mathew Hreljac <mhreljac(at)borderware(dot)com>
To: Peter Mezzina <pmezzina(at)processintelligence(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: No suitable driver
Date: 2001-06-20 14:37:20
Message-ID: 3B30B520.A0110B57@borderware.com (view raw or flat)
Thread:
Lists: 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(at)processintelligence(dot)com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl


In response to

pgsql-jdbc by date

Next:From: Thalis A. KalfigopoulosDate: 2001-06-20 15:10:21
Subject: Re: Re: [PATCHES] [PATCH] Contrib C source for casting MONEY to INT[248] and FLOAT[48]
Previous:From: Martin AlgestenDate: 2001-06-20 14:23:21
Subject: Re: JAVA + JDBC + Postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group