pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Manohar Bhattarai <manoharbhattarai@gmail.com>
Cc: philfrei@aol.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc works in java app, fails in servlet: "no suitable jdbc found"
Date: Thu, 03 Jun 2010 13:52:26 +0800
Message-ID: <4C07431A.9020506@postnewspapers.com.au> (raw)
In-Reply-To: <AANLkTinG_zY7VsxYk9ESo0OZ3iYTpVt6NfuZVQh3_8fZ@mail.gmail.com>
References: <8CCD02714A2791E-E2C-7A83@webmail-m042.sysops.aol.com>
	<4C05F409.7060805@postnewspapers.com.au>
	<8CCD0CAC9B7220C-D8C-4F1C@webmail-d098.sysops.aol.com>
	<AANLkTinG_zY7VsxYk9ESo0OZ3iYTpVt6NfuZVQh3_8fZ@mail.gmail.com>

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



view thread (14+ messages)  latest in thread

Message-ID: <4C07431A.9020506@postnewspapers.com.au>
Permalink:  ../4C07431A.9020506@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4C07431A.9020506@postnewspapers.com.au

 · 

reply

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: craig@postnewspapers.com.au, manoharbhattarai@gmail.com, philfrei@aol.com
  Subject: Re: jdbc works in java app, fails in servlet: "no suitable jdbc found"
  In-Reply-To: <4C07431A.9020506@postnewspapers.com.au>
  References: <8CCD02714A2791E-E2C-7A83@webmail-m042.sysops.aol.com> <4C05F409.7060805@postnewspapers.com.au> <8CCD0CAC9B7220C-D8C-4F1C@webmail-d098.sysops.aol.com> <AANLkTinG_zY7VsxYk9ESo0OZ3iYTpVt6NfuZVQh3_8fZ@mail.gmail.com> <4C07431A.9020506@postnewspapers.com.au>

* 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