Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5B1BE9FB86A for ; Thu, 7 Jun 2007 05:42:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 99530-02 for ; Thu, 7 Jun 2007 05:41:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id C81F49FB9C1 for ; Thu, 7 Jun 2007 05:42:01 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id u2so695986uge for ; Thu, 07 Jun 2007 01:42:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=t9nHFAMagagl7DTJfnmehdtlg5NGQriSbjBR4JUIT6szC5iKHKCvuYHY0bBsf3Gxlu8JepZfBnwKGSKyJUBhfXSSDC0IqEKmG7gQiYr7PSrbGmTyES07yZzTj1/TfLIEqK0JFwNRJuEsXnjxXLuvWmOr8HnhbeOgR7C9sMY4nBU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=dr8PMsKyUiqSivRa1Yy6lXApKKEPsqFPtSFXwxBIOuzBhc79FXxhNLjY/D6GGEKOCrtRb3P15myMmALXMJsdsR2H7R8rNZZVslrR48CWnesV4EXzpJO9G/a/LfzK5Xol56uYt+w0O7XxgMBSH1J3kEl4fRKhlZcoaGxgZCSwlyQ= Received: by 10.67.101.10 with SMTP id d10mr1883294ugm.1181205720168; Thu, 07 Jun 2007 01:42:00 -0700 (PDT) Received: from ?192.168.1.33? ( [82.3.233.102]) by mx.google.com with ESMTP id i57sm1042286uga.2007.06.07.01.41.57 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Jun 2007 01:41:58 -0700 (PDT) Message-ID: <4667C4BF.8080908@enterprisedb.com> Date: Thu, 07 Jun 2007 09:41:35 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Mamoon Rashid CC: pgsql-jdbc@postgresql.org Subject: Re: Failed to load jdbc driver References: <46984.59.160.112.41.1181204514.squirrel@imtech.res.in> In-Reply-To: <46984.59.160.112.41.1181204514.squirrel@imtech.res.in> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/21 X-Sequence-Number: 17083 Mamoon Rashid wrote: > Although i am able to execute this from terminal.The following are the > syntax to load the driver and connect to the database server in JDBC Looks like a classpath problem. Make sure the driver jar is in the classpath your servlet engine use. You might want to add a "e.printStackTrace()" to the catch-blocks as well to get a more detail error message. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com