Re: PGConnection (LargeObject) / JNDI Tomcat Issue - Mailing list pgsql-jdbc

From peter.penzov
Subject Re: PGConnection (LargeObject) / JNDI Tomcat Issue
Date
Msg-id 1462215304379-5901537.post@n5.nabble.com
Whole thread Raw
In response to Re: PGConnection (LargeObject) / JNDI Tomcat Issue  (Marc SCHNEIDER <marco_2025@web.de>)
Responses Re: PGConnection (LargeObject) / JNDI Tomcat Issue
List pgsql-jdbc
I have the same issue. I tried to use PGConnection pgCon
=(PGConnection)((DelegatingConnection)conn).getInnermostDelegate();

But I get

Caused by: java.lang.ClassCastException:
org.apache.tomcat.dbcp.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper
cannot be cast to org.apache.commons.dbcp.DelegatingConnection

I use 9.2-1002.jdbc4 and Tomcat 8.

Can you propose some solution?



--
View this message in context:
http://postgresql.nabble.com/PGConnection-LargeObject-JNDI-Tomcat-Issue-tp2169889p5901537.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


pgsql-jdbc by date:

Previous
From: "peter.penzov"
Date:
Subject: Cast java.sql.Connection to PGConnection
Next
From: "peter.penzov"
Date:
Subject: Re: pgsql jdbc db connection weird behaviour