This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
But if i am trying to do the same stuff for other session bean using JNDI name specified in WAS6.1 i am getting
Caught an unexpected exception!
java.lang.ClassCastException: Unable to load class: com.infy.display._DisplayHome_Stub
at DisplayClient.main(DisplayClient.java:41) The Code for this is :
After debugging for entire one day i have come to know that In ConverterClient(running program) when class coming as a result of "LOOKUP IS : com.infy.converter._ConverterHome_Stub" WHILE IN SECOND CASE IT IS:" org.omg.stub.java.rmi._Remote_Stub" BUT IT should be something like this com.infy.display._DisplayHome_Stub" and also the Classloader is null.Kindly let me know How can i resolve this issue.
I was able to resolve the classcast exception .
Following was the issue::
I was using eclipse and in the classpath of the WS i was referring to the jre of WAS on which my ear was deployed.
However after i moved back to the default jre provided by eclipse things started working as per the expectations.
Thanks a lot ...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Getting Class cast exception while Lookup EJB2.1 session bean using JNDI name in WAS6.1