Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Codebase Problem  RSS feed

 
saritha Burra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All my stub classes and Implementation classes are in this directory path
c:\RMI-Java1.10\projectname\classes\ com.companyname.projectname.server.classname
So i have set the codebase as
-Djava.rmi.server.codebase=file:/c:\RMI-Java1.10\projectname\classes\ com.companyname.projectname.server.classname
But iam getting classnot found exception ie it is unable to find the stub class
Also UnMarshal Exception
Should i make any changes in codebase
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the remote interface also in this directory?
In my experience, this error occurs because the stub is found by rmiregistry but not the interface the stub implements. rmiregistry's real problem is that it can't resolve the stub's class dependencies. That "unmarhsalling" error can be misleading as a result.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!