We have classes for oracle, Microsoft, and db2 and each class is specific to 
the vendor. I have inherited the code. I also question why class name are 
different and why removing ojdbc6.jar from app\lib worked.

Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, February 23, 2011 6:15 PM
To: Tomcat Users List
Subject: Re: Issue with oralce drive under tomcat 7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 2/22/2011 9:24 PM, Caldarale, Charles R wrote:
>> From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
>> Subject: Issue with oralce drive under tomcat 7
> 
>> Caused by: java.lang.ClassCastException: 
>> oracle.jdbc.driver.OracleResultSetMetaData
>> cannot be cast to oracle.jdbc.OracleResultSetMetaData
> 
> This is frequently caused by having the JDBC driver jar in more than one 
> location.  If you're using Tomcat's DBCP capability, the jar must be in 
> Tomcat's lib directory - only.  If you're doing your own connection pooling 
> (or none at all), the jar should be in the webapp's WEB-INF/lib directory - 
> only.  Make sure the jar is not also in some other location, such as jre/lib, 
> or the endorsed directory.

Odd that the class names are different... and that your suggestion
worked. Copy/paste error?

Robert, may I ask why you were casting to an Oracle-specific interface
in the first place?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1llP8ACgkQ9CaO5/Lv0PAE0wCcCP0Bbq0GmdDJBeOG3Z6ksPoP
dHEAnj01yUcjYwrHqXYqo6RlZP3PQhwM
=vi8b
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


This mail was sent via Mail-SeCure System.

Reply via email to