Remarks
In simple examples, the serialized stub will probably be obtained through an RMI registry running on the server (the same server where the remote object is running).
The two servers—the server where the remote object is running, and the Web Server publishing the class files—may, of course, be physically the same machine.