aspose file tools*
The moose likes Websphere and the fly likes ClassCastException in websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "ClassCastException in websphere" Watch "ClassCastException in websphere" New topic
Author

ClassCastException in websphere

Balu Datla
Greenhorn

Joined: May 15, 2001
Posts: 2
when The Client Invoke the Bean The following Error is
Occur.
java.lang.ClassCastException
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at java.lang.RuntimeException.<init>
(RuntimeException.java:39)
at java.lang.ClassCastException.<init>
(ClassCastException.java:38)
at javax.rmi.PortableRemoteObject.narrow
(PortableRemoteObject.java:324)
at
examples.ejb.basic.statelessSession.Client2.main
(Client2.java:47)
I deployed bean through jetace(remote Class is
Trader,Home Class is Trader Home and Bean Class is
TraderBean). At the time of depoyment time i given JNDI
Home "MyTrade" in Basic tab properties tab of jetace.
Deployment is successfully completed. I wrote a Client
program. client program is following
///////////////////////

At the Line 18 of above program gives ClassCastException.
I check the JNDI binding names. The Object is Stored
Different Value. The value is
examples.ejb.basic.statelessSession.EJSRemoteTraderHome.
Please Help me regarding this problem


Please use [ code] [ /code] tags to format your code. Check out the UBB Code link below for further details



[This message has been edited by Rahul Mahindrakar (edited May 15, 2001).]
 
jQuery in Action, 2nd edition
 
subject: ClassCastException in websphere