From users-return-12486-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Sep 04 16:56:15 2009 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 45376 invoked from network); 4 Sep 2009 16:56:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 16:56:15 -0000 Received: (qmail 50393 invoked by uid 500); 4 Sep 2009 16:56:14 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 50352 invoked by uid 500); 4 Sep 2009 16:56:14 -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 50341 invoked by uid 99); 4 Sep 2009 16:56:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 16:56:14 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 16:56:03 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n84GtXW0015274 for ; Fri, 4 Sep 2009 09:55:34 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KPG00500H9N2H00@fe-sfbay-10.sun.com> for users@jackrabbit.apache.org; Fri, 04 Sep 2009 09:55:33 -0700 (PDT) Received: from [192.18.122.99] (host-99-122-18-192.iplanet.com [192.18.122.99]) by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KPG0034UHOK9M30@fe-sfbay-10.sun.com> for users@jackrabbit.apache.org; Fri, 04 Sep 2009 09:55:33 -0700 (PDT) Date: Fri, 04 Sep 2009 09:50:36 -0700 From: Kenneth Yue Subject: Re: How to replace RMI with WebDAV? In-reply-to: <4A96C5B9.7090804@sun.com> Sender: Kenneth.Yue@Sun.COM To: users@jackrabbit.apache.org Message-id: <4AA1455C.2020104@sun.com> References: <4A96C5B9.7090804@sun.com> User-Agent: Thunderbird 2.0.0.9 (X11/20080119) X-Virus-Checked: Checked by ClamAV on apache.org Any ideas? I'm beginning to think this may be a bug. org.apache.jackrabbit.jcr2spi.RepositoryImpl.java expects a javax.naming.spi.ObjectFactory implementation, but I looked over the entire Jackrabbit workspace and found only the following classes implement javax.naming.spi.ObjectFactory: org.apache.jackrabbit.core.jndi.BindableRepositoryFactory org.apache.jackrabbit.jcr2spi.RepositoryImpl$Factory org.apache.jackrabbit.rmi.client.ClientRepositoryFactory BindableRepositoryFactory and ClientRepositoryFactory are unrelated to WebDAV. RepositoryImpl$Factory is, well, the code that's doing the checking, So is the code looking for itself??? How does the code expect users to use it? Does the code expect users to write their own ObjectFactory implementation and plug it in? Then how exactly is org.apache.jackrabbit.client.RepositoryFactoryImpl useful? What do you all think? Thanks. Ken Kenneth Yue wrote: > All, > > I'm trying to replace, in my META-INF/context.xml, > > auth="Container" > type="javax.jcr.Repository" > > factory="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory" > url="rmi://localhost:1099/jackrabbit.repository"/> > > by > > auth="Container" > type="org.apache.jackrabbit.jcr2spi.RepositoryImpl" > factory="org.apache.jackrabbit.jcr2spi.RepositoryImpl$Factory" > > org.apache.jackrabbit.jcr2spi.RepositoryImpl.factory="org.apache.jackrabbit.client.RepositoryFactoryImpl" > > > org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="org.apache.jackrabbit.client.spi2dav.RepositoryConfigImpl" > > > org.apache.jackrabbit.repository.spi2dav.uri="http://localhost:8080/jackrabbit/server"/> > > > but this doesn't work because > org.apache.jackrabbit.client.RepositoryFactoryImpl doesn't implement > javax.naming.spi.ObjectFactory, which lines 249-251 of > org.apache.jackrabbit.jcr2spi.RepositoryImpl.java is looking for. So > how do I replace RMI with WebDAV without "import > org.apache.jackrabbit..." in my code? Thanks in advance. > > Ken >