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?
You need Java version 5 or higher to run the Jackrabbit standalone server. To start the server, double-click on the standalone jar file, or invoke it on the command line. Welcome to Apache Jackrabbit! Goodbye from Apache Jackrabbit!
The easiest way to access a Jackrabbit repository over RMI is to use the RMI endpoint that the Jackrabbit standalone jar exposes at http://localhost:8080/rmi.
To get started with Jackrabbit you should first become familiar with the JCR API. Download the JSR 170 specification, browse the API documentation, check our introduction to JCR levels, or read some of the JCR articles to understand the content repository model that Jackrabbit implements.
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.
Just modify the repository.xml. Replace the anonymousId's value to "username"(or any thing it used in populate.jsp).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With