Ok, I'm new to RMI and what I want to do should be too difficult.
I'm developing my app on a windows box using NetBeans 6.7
My target client is a pc, my target server is a linux box.
Code compiles.
In
testing, if I put the code on the server, it all runs.
(Went through all of the headaches of command line stuff, java.policy and making sure I set it up to use the correct IP Address as hostname.)
But the key is to get this to work in a distributed environment.
So when I test the client code in NetBeans, I can see the registry,
I can see the service, but when I try:
I get the dreaded:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: <My Class here>
message.
On the server, my codebase url is a
file:// and not an
http://
I don't want to run a web server.
I understand that I can include the server's class files locally and that if they are in my class path. I understand that rmi will check local classpath first and then try to get the file from the remote registry. So to keep it simple, I include the server source code in my client project and build everything. I even edited the
ant build.xml to run rmic on my *Impl* classes.
So what am I missing?
To avoid the java.policy issues, I grant permissions toAll. (yes I know its dangerous, but this is still in test and I wanted to remove any issues.)
I tried adding the codebase option on the client side pointing to a jar in c:\tmp as well.
TIA!
-G
javascript:emoticon('
');
javascript:emoticon('
');
javascript:emoticon('
');