473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

RMI codebase problem on windows XP

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
1 4922
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Juan Manuel Alegría B. | last post by:
Hi, all. I have a problem with the data access. I need to get information from a CodeBase database but I don't have codebase engine. I`ve been trying with the Fox Pro driver, but I only see...
0
by: Dinesh Upare | last post by:
Hi, I want to deploy my private shared assembly using codebase keeping some of the assemblies in common folder. I am using following tag in web.config <runtime> <assemblyBinding...
2
by: BentleyInc | last post by:
I wrote a DownloadRequestHandler to be used in http://server/DownloadDir and I've made the correct IIS settings for DownloadDir. Currently I'm having problem loading up some dependent assemblies....
0
by: dbuchanan | last post by:
Hello, Why am I getting this error? I don't know how to isolate it. It occurs intermittently. Has anyone seen this before? Here is the full text \\ System.IO.FileLoadException was...
2
by: Tim | last post by:
I have placed my assemblies in different folders (as per project req.). I am using config file with <codebase> option and registry with codebase option (COM Interop) to enable the runtime to locate...
2
by: xamman | last post by:
hi there, i am trying to use a .NET assembly from a Cscript.exe .vbs (i.e. from COM) and could not get my .vbs to use my .net dll (gives a 'file not found error') unless i used the /codebase...
1
by: Jamey McElveen | last post by:
Sorry I keep posting around tha subject but I cannot get seem what I need out of clickonce. another thing that would hele me would be the ability to change the codebase tag on the server in code...
0
by: Gauls | last post by:
Hi, I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version...
2
by: Richard Maher | last post by:
Hi, Can someone please tell me the strategy(ies) used by Java (the Security Manager or whatever) to determine if a given IP address conforms to the definition of the codebase from which an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.