jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Exporting repositories with RMI
Date Fri, 15 Sep 2006 11:14:34 GMT
Hi,

On 9/15/06, Mikolaj Rydzewski <miki@ceti.pl> wrote:
> Jukka Zitting wrote:
> > The RemoteRepository class already inherits UnicastRemoteObject, so
> > there's no need to export it. You should be able to directly use
> > registry.bind("rmi_repo", remoteRepository).
> Nope. The following exception is thrown:
>
> Exception in thread "main" java.rmi.UnexpectedException: undeclared
> checked exception; nested exception is:
>         java.lang.ClassNotFoundException: Could not find class
> (org.apache.jackrabbit.rmi.server.ServerRepository_Stub) at codebase ()

Have you set your codebase correctly? The RMI registry needs to be
able to load the stub class from the codebase.

BR,

Jukka Zitting

-- 
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development

Mime
View raw message