jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r157099 - incubator/jackrabbit/trunk/xdocs/firststeps.xml
Date Fri, 11 Mar 2005 16:21:45 GMT
Author: jukka
Date: Fri Mar 11 08:21:44 2005
New Revision: 157099

URL: http://svn.apache.org/viewcvs?view=rev&rev=157099
Log:
Updated the First Steps document with latest changes.

Modified:
    incubator/jackrabbit/trunk/xdocs/firststeps.xml

Modified: incubator/jackrabbit/trunk/xdocs/firststeps.xml
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/xdocs/firststeps.xml?view=diff&r1=157098&r2=157099
==============================================================================
--- incubator/jackrabbit/trunk/xdocs/firststeps.xml (original)
+++ incubator/jackrabbit/trunk/xdocs/firststeps.xml Fri Mar 11 08:21:44 2005
@@ -83,6 +83,9 @@
     <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
         <param name="path" value="${rep.home}/repository"/>
     </FileSystem>
+    <Security appName="Jackrabbit">
+        <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
+    </Security>
     <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />
     <Workspace name="${wsp.name}">
         <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
@@ -130,6 +133,18 @@
     </source>
    </p>
    <p>
+     In addition to the repository configuration file, you also need to
+     create a
+     <a href="http://java.sun.com/security/jaas/doc/api.html">JAAS configuration</a>
+     file used for Jackrabbit login settings. The contents of simple
+     configuration file named <code>jaas.config</code> is shown below:
+     <source>
+Jackrabbit {
+org.apache.jackrabbit.core.security.SimpleLoginModule required debug=false;
+};
+     </source>
+   </p>
+   <p>
     Make sure that all of the <a href="dependencies.html">dependencies</a> 
     are added to your classpath, as well as the Jackrabbit
     repository implementation (named something like 
@@ -137,7 +152,11 @@
     into the <code>target</code> directory of your checkout.
     By executing <code>maven copy-deps</code> all dependencies except
     the optional runtime <code>cqfs-*</code> libaries are
-    being copied to the <code>target/lib</code> directory.
+    being copied to the <code>target/lib</code> directory. I addition
+    to setting up the classpath, you need to include the JAAS configuration
+    option <code>-Djava.security.auth.login.config==jaas.config</code>
+    (note the double equal sign <code>==</code>) to the <code>java</code>
+    command when running the example code.
    </p>
    <p>
     Now you should be ready to compile the above <code>JCRTest</code>



Mime
View raw message