WebLogic JARs Needed To Access A Weblogic Datasource From An External Java Client

(Doc ID 2005891.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 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

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