Received: from mgateway.borderware.com (mgateway.borderware.com [207.236.65.231]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5KEWTa27733 for ; Wed, 20 Jun 2001 10:32:30 -0400 (EDT) (envelope-from mhreljac@borderware.com) Message-ID: <3B30B520.A0110B57@borderware.com> Date: Wed, 20 Jun 2001 10:37:20 -0400 From: Mathew Hreljac X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Mezzina Cc: pgsql-jdbc@postgresql.org Subject: Re: No suitable driver References: <3B2A84DA.2030607@processintelligence.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/65 X-Sequence-Number: 806 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 > /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 /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