Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 36821 invoked from network); 12 Jan 2009 14:40:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 14:40:59 -0000 Received: (qmail 4471 invoked by uid 500); 12 Jan 2009 14:40:58 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 4454 invoked by uid 500); 12 Jan 2009 14:40:58 -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 4443 invoked by uid 99); 12 Jan 2009 14:40:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 06:40:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 12 Jan 2009 14:40:50 +0000 Received: from source ([209.85.198.237]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSWtWW+DMjDueQNH5F1cU9z2XZX7c1Oct@postini.com; Mon, 12 Jan 2009 14:40:29 UTC Received: by rv-out-0506.google.com with SMTP id g37so11791335rvb.23 for ; Mon, 12 Jan 2009 06:40:27 -0800 (PST) Received: by 10.140.163.12 with SMTP id l12mr14531954rve.41.1231771227180; Mon, 12 Jan 2009 06:40:27 -0800 (PST) Received: by 10.140.132.18 with HTTP; Mon, 12 Jan 2009 06:40:27 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 15:40:27 +0100 From: "Alexander Klimetschek" To: users@jackrabbit.apache.org Subject: Re: repository login fails using a Credentials implementation In-Reply-To: <496b2e26.3c5.1267.1403616034@webmaildh5.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496b2e26.3c5.1267.1403616034@webmaildh5.aruba.it> X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jan 12, 2009 at 12:48 PM, alessandro.cosenza@itkey.it wrote: > hi > i have a User class which implements Credentials. > > Repository repository = getRepository(); > User user = new User ("myname","otherattributes"); > Session s = repository.login(user,"aworkspace"); > > login fails as it throws a LoginException. Why? Do you have a workspace named "aworkspace"? By default, there will only be a workspace named "default". If you didn't create "aworkspace" yet, you have to create it via JackrabbitWorkspace.createWorkspace() [1] or manually by creating a new folder under "workspaces" in your repository home directory and adding a workspace.xml file (see the description at [2] for more info on that structure). [1] http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/api/JackrabbitWorkspace.html [2] http://wiki.apache.org/jackrabbit/ConfigurationOverview Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com