• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
saikrishna vuddagiri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Carl-Erik Kopseng
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!