Oracle SODA JSON Datasource Connection Fails with java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection (Doc ID 2177547.1)

Last updated on AUGUST 31, 2016

Applies to:

JDBC - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms


Trying to use the Oracle SODA API for JSON support in Oracle 12C database from Websphere datasource using Oracle JDBC 12.1.0.1 (ojdbc7.jar) for Connection pool fails with error:

7/19/16 9:37:49:292 CDT] 0000007f webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[mvc-dispatcher]: java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection
at oracle.soda.rdbms.OracleRDBMSClient.getDatabase(OracleRDBMSClient.java:108)



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms