Thanks for responding. I only have one RMI server running with a name of
AppServer,it implements RemoteAppServer. Some code would help me see what
you mean.
-----Original Message-----
From: David Olivares [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 15, 1999 7:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Session Bean accessing RMI Object
Hi there,
probably you are not casting properly...
check what kind of object class you are getting before casting it...
-----Original Message-----
From: Allen Brininstool [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 13, 1999 5:08 PM
To: [EMAIL PROTECTED]
Subject: Session Bean accessing RMI Object
I am attempting to access an RMI server object (AppServer) from a Session
bean. On the Naming.lookup statement, I get: ClassCastException on
AppServer_Stub.
The code snippet in the session bean: RemoteAppServer server =
(RemoteAppServer) Naming.lookup("AppServer");
I have checked my classpaths on both the J2EE server side and the client
test program side.
Any ideas?
===========================================================================
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".
===========================================================================
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".