Showing posts with label Apache Jackrabbit. Show all posts
Showing posts with label Apache Jackrabbit. Show all posts

Saturday, July 7, 2012

Plugging an external Jackrabbit repository to Apache Sling Launchpad : Complete

After number of trials I could plug an external Jackrabbit repository to Apache Sling Launchpad. Here are the steps I followed.

Step 1:

Go to external Jackrabbit repository directory. Modify its repository.xml by replacing its configuration element by following.

<Security appName="Jackrabbit">
     <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
     </SecurityManager>
     <AccessManager class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager">
     </AccessManager>
     <LoginModule class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule">
          <param name="anonymousId" value="anonymous"/>
          <param name="adminId" value="admin"/>
     </LoginModule>
</Security>


Step 2: 


Follow steps in this post.

That's all. Everything works smoothly.

Tuesday, June 26, 2012

Plugging an external Jackrabbit repository to Apache Sling Launchpad : Attempt 1

Apache Sling Launchpad has its own Jackrabbit repository embedded in it. But since Airavata has its own Jackrabbit repository, Sling Launchpad's embedded repository should be replaced by that of Airavata. According to a thread in Sling user mailinglist, I configured Launchpad.  


I did this twice with 2 versions of Sling Launchpad.

1) Sling Launchpad 6
2) Sling Launchpad 7


How to configure?

  1. Start Launchpad as mentioned in this tutorial
  2. Now go to http://localhost:8080/system/console/configMgr 
    • Give admin:admin as username:password if asked.
  3. Go to row Apache Sling Embedded JCR Repository
  4. Click on org.apache.sling.jcr.jackrabbit.server.SlingServerRepository.########
  5. Configure Configuration File, Repository Home and Repository Name as follows.
    • Configuration File: Jackrabbit Repository.xml path 
      • Eg. /home/.../jackrabbit/repository.xml
    • Repository Home: Jackrabbit home path
      • Eg. /home/.../jackrabbit/
    • Embedded JCR Repository Name: 'jackrabbit'
  6. Restart Launchpad