aspose file tools*
The moose likes Websphere and the fly likes Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service " Watch "Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service " New topic
Author

Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using WebSphere lauchClient program.

I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.

Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.

faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.lang.ClassCastException: Unable to load class: com.ram.test.interfaces._DemoHome_Stub
at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:386)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:156)
at org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.java:168)
at org.apache.axis.providers.java.EJBProvider.makeNewServiceObject(EJBProvider.java:147)
at org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider.java:258)
at org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.java:138)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:310)




Can anyone please tell me why is error occurring and how to solve it ?





Thanks & Regards,


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service
 
Similar Threads
Unable to consume a AXIS-EJB-WEBSPHERE 5.0 Web Service
Unable to understand EJB exception
Unable to understand EJB exception
Problem may be with saaj.jar and AXIS,WAS,WSAD
Problem may be with saaj.jar and AXIS,WAS,WSAD