Re: BUG #3544: SQLException from JDBC driver

From: Kris Jurka <books(at)ejurka(dot)com>
To: Scott Harper <scott(at)mycellularsessions(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3544: SQLException from JDBC driver
Date: 2007-08-17 19:03:22
Message-ID: Pine.BSO.4.64.0708171457360.431@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 16 Aug 2007, Scott Harper wrote:

> The following bug has been logged online:
>
> Bug reference: 3544
> PostgreSQL version: 8.1.9
> Operating system: Debian Linux (2.6.18-4-486)
> Description: SQLException from JDBC driver
> Details:
>
> I have installed PostgreSQL 8.1 via the Debian package manager (APT) --
> installed the package postgresql-8.1.
>
> We are running Sun Java 5, Apache 2, and Tomcat 5.5.
>
>> From the discussion at http://jdbc.postgresql.org/download.html, I have
> determined that I should be using the 8.1-410 JDBC 3 driver.
>
> I downloaded the driver, and it is bundled into my servlet's war file in
> WEB-INF/lib.
>
> When the servlet makes the DriverManager.getConnection() call, the following
> exception is thrown:
>
> org.postgresql.util.PSQLException: Something unusual has occured to cause
> the driver to fail. Please report this exception.
>

This exception is most likely caused by a permission denied error because
you are running the tomcat server with a security policy. The driver
should be placed in $CATALINA_HOME/common/lib instead of a war file.

Kris Jurka

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Otto Weichselbaum 2007-08-18 00:03:46 JDBC-Interface - Behaviour on Update, Insert or Delete returning ResultSets - Inconsistency to Console & ODBC
Previous Message Heikki Linnakangas 2007-08-17 17:17:45 Re: BUG #3504: Some listening sessions never return from writing, problems ensue