Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 17th, 2004, 11:45 AM
Timon79 Timon79 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Timon79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation RMI and loading the client stub from the server's codebase

Hi,

I have written a shared whiteboard. Everything works fine, but I can't load the client stub files from the server's codebase.

I'm starting the server with:
rmiregistry
java -Djava.rmi.server.codebase=file:///c:/whiteboard/server/ -Djava.security.policy=my.policy WhiteboardServerImpl

The client with:
java -Djava.security.policy=my.policy WhiteboardClientImpl

But I always get the error message:
Stub class not found: WhiteboardClientImpl_Stub; nested exception is:
java.lang.ClassNotFoundException: WhiteboardClientImpl_Stub
Stub class not found: WhiteboardClientImpl_Stub; nested exception is:
java.lang.ClassNotFoundException: WhiteboardClientImpl_Stub

Why can't the client find the stub files? Any ideas?

Thanx
Timon

Reply With Quote
  #2  
Old June 9th, 2004, 09:32 AM
Jijaji Jijaji is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 Jijaji User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ClassNotFoundException

Hi,
in case your problem hasn't been solved yet:
Did you start your rmiregistry process while your classpath was containing the location of your application ?

Cheers,
Chris

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > RMI and loading the client stub from the server's codebase


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT