Last updated on JUNE 09, 2016
Applies to:Oracle WebLogic Server - Version 184.108.40.206 and later
Information in this document applies to any platform.
When trying to access a Weblogic configured datasource from a stand alone Java client, if only wlthin3tclient.jar is included in the CLASSPATH, the following exception is thrown:
weblogic.jdbc.common.internal.RmiDataSource_1211_WLStub cannot be cast to javax.sql.DataSource
As example, the following code shows how a datasource is obtained using JNDI lookup API :
What are the minimum WebLogic jars needed to lookup a datasource and connection from a stand alone java client ?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms