Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EC6E8632BCA for ; Thu, 3 Jun 2010 02:52:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 20517-08 for ; Thu, 3 Jun 2010 05:52:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id E601B62F5D9 for ; Thu, 3 Jun 2010 02:52:36 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 082D27923D; Thu, 3 Jun 2010 13:52:26 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 95B26AF2EE; Thu, 3 Jun 2010 13:50:47 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UtXwxVZFxQtK; Thu, 3 Jun 2010 13:50:42 +0800 (WST) Received: from [10.1.1.7] (124-148-251-30.dyn.iinet.net.au [124.148.251.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 42C39AEFE2; Thu, 3 Jun 2010 13:50:42 +0800 (WST) Message-ID: <4C07431A.9020506@postnewspapers.com.au> Date: Thu, 03 Jun 2010 13:52:26 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Manohar Bhattarai CC: philfrei@aol.com, pgsql-jdbc@postgresql.org Subject: Re: jdbc works in java app, fails in servlet: "no suitable jdbc found" References: <8CCD02714A2791E-E2C-7A83@webmail-m042.sysops.aol.com> <4C05F409.7060805@postnewspapers.com.au> <8CCD0CAC9B7220C-D8C-4F1C@webmail-d098.sysops.aol.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-10 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/34 X-Sequence-Number: 20604 On 3/06/2010 12:15 PM, Manohar Bhattarai wrote: > I had the same problem of getting exception of class not found as you > are getting. I have solved the problem by simply putting the jar file in > CATALINA_HOME/lib/ directory. Then i restarted Eclipse. > And wow the driver was found. This was solved just yesterday. See if > this helps you. That's usually not the best way to do it (at least in Glassfish-land) though, because that jar is visible to all installed apps. It gets complicated if different servelets require different versions of some libraries. If you're using .war packaging, you should be able to get Eclipse to include the required jar in the package. In NetBeans it "just works" (especially with Maven war packaging) but perhaps Eclipse needs a bit more help. -- Craig Ringer