From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | <ahmettemiz88(at)gmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |
Date: | 2008-12-23 08:12:12 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C202E27D5B@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
ahmettemiz88 wrote:
> I am trying to Retrieve image ( Large Object) from pooled PostgreSQL /
> tomcat 6:
>
> I am having some exceptions from following
>
> ds = (DataSource) ctx.lookup("java:comp/env/jdbc/bzk2");
> Connection conn = ds.getConnection();
> PGConnection pgCon = (PGConnection) ((DelegatingConnection)conn) //
> ****exception
> .getInnermostDelegate();
>
> lobj = ((org.postgresql.PGConnection)pgCon).getLargeObjectAPI();
>
[...]
> org.apache.tomcat.dbcp.dbcp.PoolingDataSource
> $PoolGuardConnectionWrapper cannot be cast to
> org.apache.commons.dbcp.DelegatingConnection
>
>
> how can I solve the problem ?
I don't thing that this has anything to do with PostgreSQL.
Neither an org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
nor an org.apache.commons.dbcp.DelegatingConnection are part of the PostgreSQL
JDBC driver.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2008-12-23 11:58:40 | Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |
Previous Message | ahmettemiz88 | 2008-12-22 09:42:13 | problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |