Hi,
I'm having trouble accessing a datasource from WSAD 5.0 in a stand-alone program. Please note that its a stand-alone program.
The code I use is as follows -
Hashtable Parms = new Hashtable();
Parms.put(Context.INITIAL_CONTEXT_FACTORY, AnalysisConstants.INITIAL_CONTEXT_FACTORY);
Parms.put(Context.PROVIDER_URL, "iiop://remotehost:2809");
InitialContext DBContext = new InitialContext(Parms);
DBSource = (DataSource) DBContext.lookup(strJNDIName);
....
But this is giving the following exception when I run it!
java.lang.IncompatibleClassChangeError: com.ibm.CORBA.iiop.ORB method createObjectURL(Ljava/lang/String
Lcom/ibm/CORBA/iiop/ObjectURL;
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseIiopUrl(WsnInitCtxFactory.java:1668)
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseBootstrapURL(WsnInitCtxFactory.java:1427)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:368)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
Please help.
Thnx,
Sam