Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axOK0-00026Q-KS for pgsql-jdbc@arkaria.postgresql.org; Tue, 03 May 2016 00:36:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axOK0-0005Zt-70 for pgsql-jdbc@arkaria.postgresql.org; Tue, 03 May 2016 00:36:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axIzr-0007UM-94 for pgsql-jdbc@postgresql.org; Mon, 02 May 2016 18:55:07 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axIzo-0004oF-Np for pgsql-jdbc@postgresql.org; Mon, 02 May 2016 18:55:06 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id E163826A1851 for ; Mon, 2 May 2016 11:40:12 -0700 (PDT) Date: Mon, 2 May 2016 11:55:04 -0700 (MST) From: "peter.penzov" To: pgsql-jdbc@postgresql.org Message-ID: <1462215304379-5901537.post@n5.nabble.com> In-Reply-To: <769443163@web.de> References: <768569414@web.de> <769443163@web.de> Subject: Re: PGConnection (LargeObject) / JNDI Tomcat Issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc