Re: ClassNotFound problem
Niclas Hedhman <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Private |
| Message-ID | <[email protected]> |
On Wednesday 08 December 2004 13:06, you wrote: > Hi, > > I am sending a subclass object(PaCooperativeOperationParam) in a base class > reference(PaOperationParam) to the client through RMI. > The > derived class is not used at the client at all. Can someone explain this > and also provide solution as I dont want to package the server classes with > client tar. Excuse me but your statement above is contradictory. If you pass the class to the client it is 'used' by the client from RMI's perspective. You want to do? 1. You want a remote reference to be used at the client --> remember to export the instance. 2. You want dynamic classloading to work --> enable the security manager and establish the codebase for the Jar containing the class(es). 3. Or, Make the classes available in the client's Jars. Cheers Niclas -- +------//-------------------+ / http://www.dpml.net / / http://niclas.hedhman.org / +------//-------------------+ =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html