Hi Hari
Maybe your client code could not access the stubs generated by deploytool.
Problem might be solved if you indicate your client jar file in the
classpath.
For example if your application is called "MyApp"
then after deploy you have MyAppClient.jar file generated by deploytool
(don't forget to check "return client jar" in the deploytool during
deployment)
and then run your client with the following command:
java -classpath %CLASSPATH%;MyAppClient.jar Client
I assume that Cleint.class and MyAppClient.jar are placed together
good luck
Vano
-----Original Message-----
From: Hari Puthalapat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28. November 2000 21:01
To: [EMAIL PROTECTED]
Subject: java.lang.ClassCastException
Dear all,
I am new to EJB. I am trying the sample session bean in the getting started
section of the j2sdkee docs. I am getting the following error on running it
in j2sdkee1.2.1. I have followed the instructions given in the manual.
Caught an unexpected exception!
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 ConverterClient.main(ConverterClient.java:15)
Any help or advise is highly appreciated.
Thanks,
Hari.
===========================================================================
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".
Viruses are not found. Checked by AVP.
===========================================================================
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".