jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: repository login fails using a Credentials implementation
Date Mon, 12 Jan 2009 14:40:27 GMT
On Mon, Jan 12, 2009 at 12:48 PM, alessandro.cosenza@itkey.it
<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

Mime
View raw message