jackrabbitjcr

jackrabbit-standalone-2.4.0.jar Populate does not work


I just downloaded and started Jackrabbit using:

java -jar jackrabbit-standalone-2.4.0.jar 

When I call the populate.jsp, I get this error:

Error while accessing the repository: LoginModule ignored Credentials 
Check the configuration or use the easy setup wizard. 

When I click easy setup wizard link, I get this:

HTTP ERROR 404 
Problem accessing /admin/. Reason: 
NOT_FOUND 

Is there something wrong with this Jackrabbit build?


Solution

  • It appears that the implementation has changed but the documentation hasn't been updated. I got this same error using the "stand alone" server like you.

    If you look into the repository.xml file stored in the repository root (jackrabbit by default) you'll see two users defined. One is "anonymous" which I'm guessing is read only and one is "admin".

    Just replace new SimpleCredentials("username", "password".toCharArray())) with new SimpleCredentials("admin", "admin".toCharArray())) and it should work.

    If you're just working your way through their tutorials (like I am), this should get you moving again.

    Also, as a side note, you should supply these same credentials when the web interface asks you to log in.