Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 33408 invoked from network); 13 Jul 2004 18:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jul 2004 18:33:00 -0000 Received: (qmail 24153 invoked by uid 500); 13 Jul 2004 18:32:51 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 24113 invoked by uid 500); 13 Jul 2004 18:32:51 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 24097 invoked by uid 99); 13 Jul 2004 18:32:51 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 13 Jul 2004 11:32:48 -0700 Received: (qmail 26053 invoked by uid 50); 13 Jul 2004 18:34:10 -0000 Date: 13 Jul 2004 18:34:10 -0000 Message-ID: <20040713183410.26052.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 30085] New: - ClassCastException using Oracle BLOB if Oracle JDBC jar is in both /common/lib and [webapp]/lib X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30085 ClassCastException using Oracle BLOB if Oracle JDBC jar is in both /common/lib and [webapp]/lib Summary: ClassCastException using Oracle BLOB if Oracle JDBC jar is in both /common/lib and [webapp]/lib Product: Tomcat 5 Version: 5.0.25 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: elilevine@gmail.com Reproduceble on both Windows 2000 and Solaris. Use either classes12.zip (rename to classes12.jar) or ojdbc.jar from Oracle. Place either of the jar files into both /common/lib and [webapp]/lib, configure webapp to use org.apache.commons.dbcp.BasicDataSourceFactory in the context XML file. Get blob from Oracle database via ResultSet.getBlob() and cast it to a oracle.sql.BLOB. --> ClassCastException occures even though the blob in the ResultSet is an oracle.sql.BLOB, as indicated by debugger. Solution: remove the Oracle JDBC jar from [webapps]/lib directory and everything works fine. Seems to be an issue with Catalina's classloader. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org