Weblogic.Jdbc.Common.Internal.Rmidatasource Cannot Be Cast To Oracle.Jdbc.Pool.Oracledatasource (Doc ID 1379032.1)

Last updated on JUNE 05, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.5 and later
Information in this document applies to any platform.
***Checked for relevance on 17-Tue-2013***


The following code is used to try to convert DataSource configured in WebLogic to OracleDataSource:

Context ic = new InitialContext();

OracleDataSource dataSource =(OracleDataSource) ic.lookup("JEMS/JDBC/JEMS_DB_POOL");


while doing so, the following error throws:

weblogic.jdbc.common.internal.RmiDataSource cannot be cast to oracle.jdbc.pool.OracleDataSource

Can the DataSource configured in WebLogic be cast to OracleDataSource?


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