Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jackrabbit-standalone-2.4.0.jar Populate does not work

Tags:

jcr

jackrabbit

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?

like image 393
Bevo Avatar asked Apr 02 '12 15:04

Bevo


People also ask

How do you run Jackrabbit?

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!

How do I access Jackrabbit Repository?

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.

How do I use Apache Jackrabbit?

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.


2 Answers

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.

like image 150
lycono Avatar answered Sep 20 '22 14:09

lycono


Just modify the repository.xml. Replace the anonymousId's value to "username"(or any thing it used in populate.jsp).

like image 37
Kenny Avatar answered Sep 22 '22 14:09

Kenny