Oracle Weblogic Server (MOSC)

MOSC Banner

Trying to get datasource receive NoClassDefFound error

edited Oct 21, 2009 2:50AM in Oracle Weblogic Server (MOSC) 1 commentAnswered
 Hello everyone,

We are trying to get a datasource using the following code:

            Connection cConnection = null;


            Hashtable ht = new Hashtable();
            ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            ht.put(Context.PROVIDER_URL, t3://10.1.15.22:80);  
            Context ctx = new InitialContext(ht);
            javax.sql.DataSource cDataSource = (javax.sql.DataSource) ctx.
                lookup(sDataSourceName);
            cConnection = cDataSource.getConnection();

When we do the call to getConnection we get the following exception:

java.lang.NoClassDefFoundError: weblogic/rmi/internal/Stub

Is anyone else experiencing the same problem?

Thank you in advance for any help.

Greg

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center