Invoke process error in websphere

10-11  Source: Network gathering  Views:0 

Advertisement
Hi <br /><br />  I got the following error , while invoking the process in API.<br /><br />ALC-DSC-031-000: com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider<br />     at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:97)<br />     at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java :130)<br />     at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)<br />     at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)<br />     at InvokeProcess.invokeProcess(InvokeProcess.java:61)<br />     at InvokeProcess.main(InvokeProcess.java:107)<br />Caused by: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl]<br />     at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:318)<br />     at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java :400)<br />     at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)<br />     at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)<br />     at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)<br />     at javax.naming.InitialContext.lookup(Unknown Source)<br />     at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:88)<br />     ... 5 more<br />Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl<br />     at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)<br />     at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)<br />     at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)<br />     at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)<br />     at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)<br />     at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)<br />     ... 11 more<br /><br />Please any one help me to resolve the issue?
Use SOAP protocol instead of EJB as follows:
ConnectionProps.setProperty(ServiceClientFactoryProperties.
DSC_DEFAULT_SOAP_ENDPOINT, "http://localhost:8080"); ConnectionProps.setProperty(ServiceClientFactoryProperties.
DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
Related articles