hi!
if u used the deploytool for deploying your bean, it would have created a
client jar file in J2EE_HOME/repository/your_comp_name/applications/
you must include this client jar file in your classpath when u run the
client program
the error occurs becoz the stubs and interface classes cant be found for the
narrowing..
regards,
kishor
----- Original Message -----
From: Sanjay Verma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 5:58 PM
Subject: Cannot Run the Client Program on J2EE server
> I had installed J2EE server for running, testing and learning EJB. As per
the documentation and the tutorial provided I had coded the programs and
using the 'deploytool' provided in the 'j2eesdk1.2.1' had deployed the EJB.
But, after trying for a long time could not run the Client program. The
following is the description of error or exception I am getting on my PC :
>
> Note : I am using my PC as both Server & Client. The J2EE server is also
installed successfully and is running...
>
> The following is the exception received after running the Client program :
>
> ---------- Java ----------
> java.lang.ClassCastException
> at
com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo
teObject.java:296)
> at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
> at HelloClient.main(HelloClient.java:25)
> Normal Termination
> Output completed (10 sec consumed).
>
>
> Kindly provide me a suitable guidance for solving this problem.
>
> Thanking you and expecting a prompt reply,
>
> Sincerely,
>
> Sanjay Verma.
>
>
===========================================================================
> 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".
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
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".