I'm writing a
Java server application, which I have decided to make use an extra fancy distributed model using Remote Method Invocation so the different parts can talk to each other. I read a tutorial on it, wrote an application, and compiled it. Everything worked up until I ran the part of the server that contained the RMI server code.
It seemed to be starting up properly, then died in a glorious puff of stack trace:
I was confused as heck when I first saw this. I could see the class file it said didn't exist, but I could see it in my code directory, plain as day. That's when I discovered that it didn't compile my remote interface into stub and skeleton files. In the past, you had to use the RMI compiler to manually generate these files, but it's supposedly automatic now. So why didn't it do it?! Is it having trouble identifying my interface as a remote interface?
That's got to be it as far as I can tell. Here's the code for the interface which was supposed to generate stub and skeleton files: