Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 74096 invoked from network); 8 May 2009 17:23:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 May 2009 17:23:51 -0000 Received: (qmail 72800 invoked by uid 500); 8 May 2009 17:23:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 72771 invoked by uid 500); 8 May 2009 17:23:51 -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 72760 invoked by uid 99); 8 May 2009 17:23:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 17:23:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bgiles@coyotesong.com designates 209.85.198.229 as permitted sender) Received: from [209.85.198.229] (HELO rv-out-0506.google.com) (209.85.198.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 17:23:41 +0000 Received: by rv-out-0506.google.com with SMTP id k40so1259123rvb.31 for ; Fri, 08 May 2009 10:23:20 -0700 (PDT) Received: by 10.140.148.20 with SMTP id v20mr1607713rvd.141.1241803400275; Fri, 08 May 2009 10:23:20 -0700 (PDT) Received: from ?192.168.1.106? (c-67-166-53-34.hsd1.co.comcast.net [67.166.53.34]) by mx.google.com with ESMTPS id k37sm2677523rvb.8.2009.05.08.10.23.18 (version=SSLv3 cipher=RC4-MD5); Fri, 08 May 2009 10:23:19 -0700 (PDT) Message-ID: <4A046A85.8090808@coyotesong.com> Date: Fri, 08 May 2009 11:23:17 -0600 From: bgiles User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: stupid jndi question References: <4A0458F7.7020302@coyotesong.com> <200905081717.50298.stuart.binge@complinet.com> In-Reply-To: <200905081717.50298.stuart.binge@complinet.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org That was it, thanks! Stuart Bing� wrote: > On Friday 08 May 2009 17:08:23 bgiles wrote: > >> I have set up RMI on my dev server and know it's a good URL >> (http://10.10.6.12:8080/rmi) since I can connect with >> URLRemoteRepository from within my app. >> >> But when I try to connect using ClientRepositoryFactory via JNDI I get >> an Malformed URL exception (message: InvalidURLScheme). Ditto if I >> create the factory explicitly and use its getRepository(url) method. >> > > I'm not sure if this is the problem you're experiencing but we've recently had > something similar: > > It appears URLRemoteRepositoryFactory (and hence URLRemoteRepository) is used > when accessing Jackrabbit over HTTP-RMI (i.e. your URI above, > http://10.10.6.12:8080/rmi) whereas ClientRepositoryFactory (and hence > ClientRepository) is used when accessing Jackrabbit over standard JVM-RMI, > i.e. your URI would instead look something like rmi://10.10.6.12:1099/my_repo > > We've also been using URLRemoteRepositoryFactory and have recently switched to > ClientRepositoryFactory as an example; when we did so we had to enable > Jackrabbit's JVM-RMI interface in order to communicate with the server over > this protocol. > > >> I'm stumped since the fact that I can connect with URLRemoteRepository >> means that all of the necessary bits are in place. It's not a class >> loader issue since all of the jcr and jackrabbit libraries are in >> tomcat's 'common' directory, not the webapp's WEB-INF/lib directory. >> >> Ideas? >> >> Bear >> > > HTH, > -- > Stuart Bing� > > ______________________________________________________________________ > > �Complinet Ltd is registered in England. Registered office at Vintners Place, 68 Upper Thames Street, London EC4V 3BJ. Company number 3170722. VAT No. 749 324 021. > Complinet Inc is a corporation registered in Delaware, USA.� > > This email has been scanned by the MessageLabs Email Security System. >