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).]