To disable the persistent store

Note: This article apply for Cocoon versions 2.1.4 and below

(1) Stop your servlet container (Jetty, Tomcat, etc.)

(2) Remove or comment out the following lines from cocoon.xconf:

<persistent-store logger="core.store.persistent">
  <parameter name="use-cache-directory" value="true"/>
  <parameter name="order" value="2701"/>
</persistent-store>

3) make sure your transient store has the use-persistent-cache set to false:

 <transient-store logger="core.store.transient">
   <parameter name="maxobjects" value="1000"/>
   <parameter name="use-persistent-cache" value="false"/>
 </transient-store>

(4) Delete the servlet container's work directory (be careful). For Tomcat with Lenya default settings this directory is: tomcat/work/Catalina/localhost/lenya

(5) Restart your servlet container.

Why i need to remove it?

With persistent store enabled you may experience some really weird intermittent problems like:

  • SAX exceptions for pages which worked before;
  • lose navigation bar in the default publication;
  • lose breadcrum in default publication;
  • see navigation items replied more than once in default publication;
  • see two pages of default publication in the same page (one after the other);
  • the publication can be viewable with a browser but not with another (IE vs Mozilla, for example);
  • No labels