Trying to get datasource receive NoClassDefFound error
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