This can occur when the home interface ConverterHome is found in your jar
file and also somewhere else in the classpath.
> -----Original Message-----
> From: kumaravel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 8:22 AM
> To: [EMAIL PROTECTED]
> Subject: cast Exception
>
> > hello,
> > Am getting the following error when i am lookingup an EJB from client.
> >
> > THE CLIENT CODE IS
> >
> >
> > Context initial = new InitialContext();
> > String jndiName = "sssw://kumaravel/RMI/myconverter";
> > Object objref = initial.lookup(jndiName);
> > ConverterHome home = (ConverterHome)
> > PortableRemoteObject.narrow(objref, ConverterHome.class);
> > Converter currencyConverter = home.create();
> >
> >
> >
> >
> > THE ERROR IS
> >
> > java.lang.ClassCastException
> > at
> > com.objectEra.jbroker.rmi.PortableRemoteObjectDelegate.narrow(Portabl
> > eRemoteObjectDelegate.java:233)
> > at
> > javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:119)
> > at ejb._jspService(ejb.java:64)
> > at
> com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:83)
> > at
> > com.sssw.srv.resources.AgJspJarResource.service(AgJspJarResource.java
> > :347)
> > at
> > com.sssw.srv.resources.AgJspURLResource.perform(AgJspURLResource.java
> > :47)
> > at com.sssw.srv.http.httpd.perform(httpd.java:3692)
> > at com.sssw.srv.http.Client.processRequest(Client.java:776)
> > at com.sssw.srv.http.Client.loop(Client.java:1106)
> > at com.sssw.srv.http.Client.runConnection(Client.java:1307)
> > at com.sssw.srv.http.Client.run(Client.java:1267)
> > at java.lang.Thread.run(Thread.java:479)
> >
> >
> >
> >
> > I am looking forward for your reply,
> >
> > Kumaravel
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".