Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BECC6C95A for ; Fri, 17 Aug 2012 11:44:50 +0000 (UTC) Received: (qmail 87412 invoked by uid 500); 17 Aug 2012 11:44:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87136 invoked by uid 500); 17 Aug 2012 11:44:45 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 87087 invoked by uid 99); 17 Aug 2012 11:44:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 11:44:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 11:44:39 +0000 Received: by vbip1 with SMTP id p1so4088014vbi.18 for ; Fri, 17 Aug 2012 04:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PGBGpCLmbx+rN+AT4X0dZ4lrRbYrWJlTZsidCwQl8NM=; b=lYM9c27HtJadqkstzTZpSP4k2w6TJmWz+dX1DBHKliTZRnv/1Kw88GkdWqCQcp/JZz CFOh6OvEiBIYzt/0GUwhMulQ1EBBY3MMsoRQXfwlIQqXmxdmmsJgR9BlH53wvXUiWBJr 52eXqAO+b3LObRz+MPbuaCwgTna1jf3wG/GnD2dCl9HJrhXgXT0nIqUyjNWGU5Z9xTvP id7qafMPHUVrE5Uvq19Vp8gtNMRHxNjicqBgyGz77M2XllR4Yx0+Hyb4Rri3pLG3qpo8 lXxs58Y8Lgye2eSb4bX/+5+P0C2GzVkSsg6bYQmyzbeJHtpYcAeJJqAwDetK7GnknOBI gozQ== MIME-Version: 1.0 Received: by 10.220.141.202 with SMTP id n10mr2274072vcu.49.1345203858826; Fri, 17 Aug 2012 04:44:18 -0700 (PDT) Received: by 10.58.26.233 with HTTP; Fri, 17 Aug 2012 04:44:18 -0700 (PDT) In-Reply-To: <5019567329481D4B89004F8A89319897221BAD4D7D@AVMX1.at-work.local> References: <5019567329481D4B89004F8A89319897221BAD4A7A@AVMX1.at-work.local> <7215BA462D00D343B2837F9113F0131F01277DAEC4@POSTOFFICE02.polydyne.com> <5019567329481D4B89004F8A89319897221BAD4D7D@AVMX1.at-work.local> Date: Fri, 17 Aug 2012 15:44:18 +0400 Message-ID: Subject: Re: tomcat and DB oracle problem - only in higher versions From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2012/8/17 Busfy,Peter : > Hi again, > > so I try ojdbc6.jar (version 11.2.0.3.0) with tomcat 6.0.35 and the same problem. > With version 6.0.26 is everything fine. > 6.0.26 and 6.0.35 include different versions of Apache Commons DBCP library (http://commons.apache.org/dbcp/). You may look into the changelog or into build.properties in the source distributive to see the version number. Later DBCP versions implement wrapping of the underlying JDBC connection object differently. On this mailing list such issue has been discussed at least 3 times during the last 2 years. (I do not remember what the exact recipe was. I think that you have to do the following two operations: 1. set a property on the pool to allow unwrapping, 2. call a method to get the wrapped connection. See the archives and see the DBCP site). >From that Spring message -- I guess you have to look for "NativeJdbcExtractor" implementations and find one that works with DBCP. See OracleLobHandler.etNativeJdbcExtractor(..) http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/jdbc/support/lob/OracleLobHandler.html#setNativeJdbcExtractor%28org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor%29 There exists "CommonsDbcpNativeJdbcExtractor" class. Maybe it will work for you. If not, you may try debugging Tomcat (see "Developing" chapter in the Tomcat FAQ for tips). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org