Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by AndreasHartmann:
http://wiki.apache.org/lenya/JcrConfiguration

------------------------------------------------------------------------------
  
   1. Install Lenya as you would usually do.
  
-  1. Correct the node type configuration in Lenya's cocoon.xconf 
($LENYA_HOME/webapp/WEB-INF/cocoon.xconf):
- 
- {{{
- <component-instance class="org.apache.cocoon.jcr.source.JCRSourceFactory" 
name="jcr">
-   <folder-node new-file="nt:file" new-folder="nt:folder" type="rep:root"/>
-   <folder-node new-file="nt:file" new-folder="nt:unstructured" 
type="nt:unstructured"/>
-   <folder-node type="nt:folder" new-file="nt:file"/>
- 
-   <file-node content-path="jcr:content" content-type="nt:resource" 
type="nt:file"/>
-   <file-node content-ref="jcr:content" type="nt:linkedFile"/>
- 
-   <content-node type="nt:resource"
-     content-prop="jcr:data"
-     mimetype-prop="jcr:mimeType"
-     lastmodified-prop="jcr:lastModified"
-     validity-prop="jcr:lastModified"/>
- 
- </component-instance>
- }}}
- 
-  1. Call the "Import into JCR" usecase to migrate the content:
- 
- {{{
-     http://localhost:8888/index.html?lenya.usecase=jcr.import
- }}}
-     (select your publication and click OK)
- 
-  1. Stop Jetty.
- 
   1. Set the JCRNodeFactory as default node factory in
      java/org/apache/lenya/lenya.roles. You need to search for the existing
      entry and change it.
@@ -51, +22 @@

    default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/>
  }}}
  
+  1. Start Jetty.
+ 
+  1. Call the "Import into JCR" usecase to migrate the content:
+ 
+ {{{
+     http://localhost:8888/index.html?lenya.usecase=jcr.import
+ }}}
+     (select your publication and click OK)
+ 
   1. Delete the content directory of your publication 
($LENYA_HOME/lenya/pubs/<yourpub>/content). You don't need it anymore.
- 
-  1. Restart Jetty.
  
  You can log into Lenya again and you should be able to work with the 
application exactly as before. Just your content comes from and will be stored 
in the JCR repository.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to