-----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

Reply via email to