From users-return-819-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Sep 15 11:15:16 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 48547 invoked from network); 15 Sep 2006 11:15:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 11:15:16 -0000 Received: (qmail 55605 invoked by uid 500); 15 Sep 2006 11:15:15 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 55595 invoked by uid 500); 15 Sep 2006 11:15:15 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 55586 invoked by uid 99); 15 Sep 2006 11:15:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 04:15:15 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jukka.zitting@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 04:15:01 -0700 Received: by wx-out-0506.google.com with SMTP id t13so3192908wxc for ; Fri, 15 Sep 2006 04:14:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y4QCBrrChLjY7P9JkH44xJns3rUec9HhFjdxkHnSfSQPfPI4S3d5kAtHsqGnrURzTiroyaAiTQHYGXAvkwRT+k9QokCjd6Vf8fMWIUtTKWRnTwnvB7CVsJlMSqM83NMlztITiU0mLmQEDyrBpPMW3Ib8QvzGeBS2Z3RHmIdCiak= Received: by 10.90.90.3 with SMTP id n3mr3625629agb; Fri, 15 Sep 2006 04:14:34 -0700 (PDT) Received: by 10.90.96.17 with HTTP; Fri, 15 Sep 2006 04:14:34 -0700 (PDT) Message-ID: <510143ac0609150414l2c758eefq6a766379deb708c2@mail.gmail.com> Date: Fri, 15 Sep 2006 14:14:34 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: Exporting repositories with RMI In-Reply-To: <450A897E.6010802@ceti.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <450A8333.7030004@ceti.pl> <510143ac0609150347h7bf64c7ao131d6be0bfe81ce8@mail.gmail.com> <450A897E.6010802@ceti.pl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 9/15/06, Mikolaj Rydzewski 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