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" <[email protected]> A : [email protected] 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, > [email protected] <[email protected]> > > 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 > [email protected]
