Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rmi and stub class not found

Status
Not open for further replies.

Tarwn

Programmer
Mar 20, 2001
5,787
US
I am currently attempting to run a webpage that dynamically reads data files off of the Server. to this end i have implemented a server class and a client class, with the applet instantiating the client and than using the client methods to get information from the server class. unfortunatly, when i go to run the server class I get ClassdefnotFound errors on the _stub class. I have been through all of the posts here, as well as the ones at Sun for 1997 to present and still have not found the problem. i have set classpaths, used packaging, multiple registries, hardcoded batch files, tried several other computers, etc...
It seems the error is that it can't find the _stub class, which sets off a double nested exception, unmarchalling exception, and several other .rmi exceptions, if anyone has run into anything similar or has any ideas, please let me know,
-Tarwn
 
- can YOU find the sub class ?
- did the name server started properly ?
- is the context "correct " ?

the last 2 and setting the classpath got me rid of this error
 
Thats basically the problem, the class not found occurs when the server is starting to load, causing it to throw the other exceptions when it attempts to bind. The classpath is correct and the files are where they are supposed to be, i even double checked this by moving the entire set to a differant directory, when that didn't work I tried it on two seperate computers in packages, which shoud force it to see the stub class, but that did not work either
 
-> double check the context settings - does it asks to the correct port, the correct name server .... ?
i had this problem twice, the 1st was only because the stub class didn't compil properly, the second was because the name server was not listening on the correct port
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top