You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Jinks <mi...@gmail.com> on 2009/07/12 20:25:37 UTC

Re: "map match pattern" being ignored

Hi list.

I'm a sysadmin with no Cocoon experience who's been asked to deploy it
for a project.  One thing we need is to have a user-specific staging
area, analogous to Apache's ~user/public_html directory.

The requesting user was nice enough to provide me with an example to
cargo-cult from, so in the main sitemap.xmap I have:

     <map:match pattern="mjinks/**">
       <map:mount uri-prefix="mjinks/" check-reload="yes"
        src="file:///home/mjinks/cocoon-stage/" reload-method="synchron"/>
     </map:match>

But, when I try to browse to "cocoon/mjinks" on our server, I  get:

 Resource not found

 java.io.FileNotFoundException:
/var/lib/tomcat-5.5/webapps/cocoon/mjinks/sitemap.xmap (No such file
or directory)

So, apparently either my "match pattern" or my "mount uri-prefix" tag,
or both, are wrong.  Either that, or I've added that whole clause to
the wrong part of the sitemap.xmap file.  So, with apologies, I'm
attaching the whole file to this message since I'm not sure which
context matters.

Ugh.  Thanks in advance.