Netbeans 5.5.1 and RMI Programming

I have written some sample RMI code which compiles OK. The problem is that when I start rmiregistry manually (from a shell window), and I click "RUN" in netbeans, it complains with the following message:

Constructing server implementations...

Binding server implementations to registry...

javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.lang.ClassNotFoundException: productserver.Product]

How do we develop RMI applications with Netbeans. I have looked everywhere on Netbeans.org but it's impossible to find anything. A search on RMI, shows an RMI module that can be installed, but it's for an older version of netbeans, with the pre JDK-5 (1.5) methodology: rmic, etc.

[902 byte] By [emrecioa] at [2007-11-27 11:27:28]
# 1

That problem has nothing to do with NetBeans. The Registry needs access to the remote interface and anything it depends on in its classpath.

ejpa at 2007-7-29 16:16:22 > top of Java-index,Java Essentials,Java Programming...