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]
