forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Dixon <...@dixons.org>
Subject Re: xinclude
Date Mon, 04 Sep 2006 10:38:01 GMT
On Mon, 4 Sep 2006, Ross Gardler wrote:

> > Message: Resource Not Found
> > Description: The requested resource "/eg/logMeIn.html" could not be found.
> > Sender: org.apache.cocoon.servlet.CocoonServlet
> > Source: Cocoon Servlet
> >
> > and the logs contain
> > ---------------------------------------------------------------------------
> > WARN    (2006-09-04) 10:15.19:459   [access] (/eg/logMeIn.html) PoolThread-4/CocoonServlet:
Resource not found.
> > 	at <map:serialize type="xml-document"> - file:/home/j2ee/forrest/main/webapp/forrest.xmap:230:47
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/forrest.xmap:128:65
> > 	at <map:generate> - file:/home/j2ee/forrest/main/webapp/forrest.xmap:226:42
> > 	at <map:serialize> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:326:23
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:324:73
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:318:72
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:296:42
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:571:65
> > 	at <map:transform type="linkrewriter"> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:570:79
> > 	at <map:transform type="xinclude"> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:569:41
> > 	at <map:transform type="idgen"> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:568:38
> > 	at <map:generate> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:567:49
> > 	at <map:serialize> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:326:23
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:324:73
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:318:72
> > 	at <map:transform> - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:296:42
> > ---------------------------------------------------------------------------
> > Yes, this is a warning, but it does appear to be quite relevant.
> >
>
> ...
>
> >
> > The error occurs at line 230 in main/forrest.xmap, which is the
> > serialization stage in i18n of XML files.
>
> This pipeline should not be processed since you have a project sitemap with:
>
> <map:match pattern="eg/logMeIn.xml">
>          <map:generate src="eg/logMeIn.xml"/>
>          <map:transform type="xinclude"/>
>          <map:serialize type="xml"/>
> </map:match>

Following earlier advice, I removed that and rely upon the main Forrest
sitemap.  In my first email today I wrote: "OK, this file, created after
reading the advice above, has been dropped".

> This should be the pipeline that does the work in your project as
> project sitemaps override the Forrest sitemaps.

Is there a reason for using a project sitemap rather than relying on
the main one?

This appears to be a red herring.  If the main sitemap is handling this
correctly, it seems pointless to introduce a project sitemap with
exactly the same functionality.  If the main sitemap is not handling
XIncludes correctly, then we have a bug.

--
Jim Dixon  jdd@dixons.org   tel +44 117 982 0786  mobile +44 797 373 7881

Mime
View raw message