hi,
I got similar Exception. when I run my client and server on the same PC, either in local or remote mode, everything is fine. when I put my server on remote site (studsys.mscs.mu.edu). using Naming.list ("rmi://studsys.mscs.mu.edu/")
I got
rmi://studsys.mscs.mu.edu:1099/RemoteData.
when I try Remote data = (Remote)Naming.lookup ("rmi://studsys.mscs.mu.edu:1099/RemoteData"),I got the following:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: suncertify.server.RemoteDataImpl_Stu
java.lang.ClassNotFoundException: suncertify.server.RemoteDataImpl_Stub
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.inputObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at suncertify.client.DataClient.<init>(DataClient.java:38)
at suncertify.client.Client.<init>(suncertify/client/Client.java:44)
at suncertify.client.Client.main(suncertify/client/Client.java:82)
any thought is appreciated!
Allen: you said unset classpath, how can you set classpath for rmiregistry ( I don't mean inherit from the parent window)?
xiaolin wu