jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alessandro.cosenza@itkey.it" <alessandro.cose...@itkey.it>
Subject Re: repository login fails using a Credentials implementation
Date Mon, 12 Jan 2009 14:53:37 GMT
yes i have that workspace.
also if workspace parameter is null it doesn't work.
Using SimpleCredentials works, what's the difference between
SimpleCredentials
and my own class User???

----- Original Message -----
Da : "Alexander Klimetschek" <aklimets@day.com>
A : users@jackrabbit.apache.org
Oggetto : Re: repository login fails using a Credentials
implementation
Data : Mon, 12 Jan 2009 15:40:27 +0100

> 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