By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,778 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,778 IT Pros & Developers. It's quick & easy.

RMI codebase problem on windows XP

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <pe*****@pengworld.zzn.com> wrote in message
news:bo**********@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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.