Setting up the Sample Site

by Andreas Hartmann

Using the Bonebreaker Site as a Subsite

(recommended for first steps)

  1. Just copy the bonebreaker directory in your webapps/cocoon directory.
  2. You have to redirect the bonebreaker requests in your main Cocoon sitemap (sitemap.xmap in your webapps/cocoon directory) to the Bonebreaker subsitemap. You have to add the following entry:
    <map:pipeline>
      <!-- match the Bonebreaker homepage -->
      <map:match pattern="bonebreaker">
        <map:mount uri-prefix="bonebreaker" check-reload="yes"
          reload-method="synchron" src="bonebreaker/"/>
      </map:match>
    
      <!-- match all other Bonebreaker pages -->
      <map:match pattern="bonebreaker/**">
        <map:mount uri-prefix="bonebreaker" check-reload="yes"
          reload-method="synchron" src="bonebreaker/"/>
      </map:match>
    </map:pipeline>
    Every URL starting with cocoon/bonebreaker (e.g., http://localhost:8080/cocoon/bonebreaker/xyz) is mapped to the Bonebreaker subsitemap.
  3. If your Cocoon context URL is not http://<your_host>/cocoon, you have to change the value of the base-url parameters in the Bonebreaker sitemap (sitemap.xmap in the bonebreaker directory) to your cocoon url: change /cocoon/bonebreaker to /<your_cocoon_context>/bonebreaker.
  4. You can access the Bonebreaker site at http://localhost:8080/cocoon/bonebreaker.

Using the Bonebreaker Site as the Main Site

  1. Put everything from inside the bonebreaker directory into your webapps/cocoon directory (backups are recommended :) )
  2. Change the value of the base-url parameters in the sitemap.xmap file from /cocoon/bonebreaker to /cocoon.
  3. You can access the site at http://localhost:8080/cocoon.