Ive just been ... fighting with this stuff to... after some perserverence I
did get it all to work, but encountered a number of errors along the way. I
did keep notes about how to get a setup working on a Linux box- so may not
directly apply to win XP, but if you need more info...
Anyway, in short-
- clear the CLASSPATH
- start the RMI registry
- set the CLASSPATH eg
/home/whatever/src:/public_html_dir/classes/yourjar.jar
- start the rmi server ie cd /public_html_dir/classes then,
java -Djava.rmi.server.codebase=http://whatever/classes/ -Djava.rmi.server.h
ostname=whatever -Djava.security.policy=java.policy package.class
- start the client...
good luck
"Søren "Pengman" Pedersen" <
pengman@pengworld.zzn.com> wrote in message
news:borikb$gfb$1@sunsite.dk...
> Dear all
>
> My setup is this:
>
> A RMI server application running with the codebase property as follows:
> -Djava.rmi.server.codebase=http://localhost/Java/Rmiserver/
>
> this location contains the root of the package which containts the stubs
and
> other classes for the server. Those files is accesible with internet
> explorer.
>
> Then when I try to run my client program I get this message:
>
> "error unmarshalling return; nested exception is:
> java.lang.ClassNotFoundException:RMI.server.Chanse rv_Stub"
>
> How can that be??
> The file that it cannot find is availible in
> http://localhost/Java/RMIserver/RMI/...erv_Stub.class and if I
> place it with the client application everything is fine....
>
> I hope somebody can help me with this... Just´say if you need more
> information but I think it must be something stupid I've forgotten
>
> Thanks in advance
> Søren
>
>
===========================
health care jobs which pay more
Leesburg Vein Clinic