Originally posted by John Deal:
This seems such a brain-dead issue but I have spent several hours trying to figure this out. Please excuse me if this is not apporporate for this forum.
I have my RemoteData class that implements a remote interface that extends Remote (named RemoteDataInterface). All my DB classes are in the same package at suncertify.db in the code directory. I then cd to the code directory and type: "rmic suncertify.db.RemoteData" and this produces the file RemoteData_Stub.class in the suncertify.db directory.
When my program runs I do a UnicastRemoteObject.exportObject() to a instance of RemoteDataInterface called remoteDataStub. After obtaining the registry reference via LocalRegistry.getRegistry() and verifying it is there with a list() call, I do a rebind(Name, remoteDataStub) call. This results in a "java.lang.ClassNotFoundException: suncertify.db.RemoteData_Stub" exception even though there is a suncertify.db.RemoteData_Stub.class file.
Reading through Sun's rmic documentation, it states there should be a RemoteData_Skel.class file produced. It is my understanding that this is the server-side linkage to the remote interface. This file does not seem to be produced by my rmic command.
Any ideas? Thanks!