Forums Register Login

Exception when trying to invoke a EJB service on WAS 6.1: java.lang.ClassCastException:

+Pie Number of slices to send: Send
Hi,
We are implementing Adobe livecycle in our project. The adobe livecycle was installed on WAS 6.1. When i am trying to invoke EJB Generate PDF service through a stand-alone java client using SUN JRE i am getting the following exception.

I am using the following jars in classpath:

1) adobe-generatepdf-client.jar
2) adobe-livecycle-client.jar
3) adobe-usermanager-client.jar
4) adobe-utilities.jar
5) naming.jar
6) namingclient.jar
7) j2ee.jar
8) ws_runtime.jar
9) ibmorb.jar
10) ibmorbapi.jar
11) com.ibm.ws.webservices.thinclient_6.1.0.jar
12) com.ibm.ws.admin.client_6.1.0.jar

Its urgent, so anyone please help me.....

ALC-DSC-031-000: com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher.java:97)
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java:130)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(GeneratePdfServiceClient.java:172)
at ConvertWordDocument.main(ConvertWordDocument.java:69)
Caused by: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl cannot be cast to com.ibm.CORBA.iiop.ORB]
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:294)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:373)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher.java:88)
... 5 more
Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl cannot be cast to com.ibm.CORBA.iiop.ORB
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:285)Error OCCURRED: Remote EJBObject lookup failed for ejb/Invocation provider

... 11 more
+Pie Number of slices to send: Send
Of course this is way too late to be of use, but in my case the problem was solved by simply switching to IBM's version of the JFRE. Running the app with Sun's jdk produced the error above, but switching to IBM JRE 1.6 solved the problem. IBM obviously likes to keep things within the family
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3948 times.
Similar Threads
Help needed: Error occured when running standalone EJB client
Class cast exception error while calling lookup method
Standalone java client to lookup ejb in websphere
ClasCastExc eption looking up ConnectionFactory
Lookup problem for StandaloneApplication with Websphere 6.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:27:59.