From users-return-1575-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Dec 07 09:16:00 2006 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 77410 invoked from network); 7 Dec 2006 09:16:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 09:16:00 -0000 Received: (qmail 33591 invoked by uid 500); 7 Dec 2006 09:16:08 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 33382 invoked by uid 500); 7 Dec 2006 09:16:07 -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 33373 invoked by uid 99); 7 Dec 2006 09:16:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 01:16:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jukka.zitting@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 01:15:56 -0800 Received: by wx-out-0506.google.com with SMTP id i28so478966wxd for ; Thu, 07 Dec 2006 01:15:36 -0800 (PST) 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=IJO8txiRnP7Y+/NKE7mnZgt1R7IGG9yFRtRhA1sssGMBoRiTA/gGxEYAfX61DIt6XpT7R2nYC+W9PHdtowLMFJGBmGmb6+BpIzvohor5JwIwT5nXl4rp50wWn2c3Icx5tYaPxwmvGJwoq5ilFlcoPJTE941ILwodQPwjS/AsODM= Received: by 10.90.72.10 with SMTP id u10mr2077193aga.1165482936207; Thu, 07 Dec 2006 01:15:36 -0800 (PST) Received: by 10.90.27.7 with HTTP; Thu, 7 Dec 2006 01:15:36 -0800 (PST) Message-ID: <510143ac0612070115lab930b0wde0cc14b939386f0@mail.gmail.com> Date: Thu, 7 Dec 2006 11:15:36 +0200 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: Error in logging in to remote repository via JNDI (using Tomcat) In-Reply-To: <4576EFE7.9010101@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4576EFE7.9010101@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 12/6/06, Ruchi Goel wrote: > I get following error in last line , while I am able to login as anonymous. > [...] > java.net.MalformedURLException: no protocol: > Files/netbeans-5.0/enterprise2/jakarta-tomcat-5.5.9/common/classes/ This seems to be caused by an unencoded space in the codebase URL of a marshalled object that the *server* is trying to unmarshal. This is a quite tricky issue that is caused by the use of URLClassLoader based on File.toURL() rather than File.toURI().toURL() together with the following "will not be fixed" issue in Java: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532 You should be able to avoid this issue by adding the -Djava.rmi.server.useCodebaseOnly=true option to the RMI server. PS. You probably should make the "RemoteRegistry remote" variable a static class member to avoid it being garbage-collected while no clients are connected. BR, Jukka Zitting