Jim Dixon wrote:
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>
This should be the pipeline that does the work in your project as
project sitemaps override the Forrest sitemaps.
It looks to me like your sitempap is not being processed. This would
result in a resource not found error because you are storing your source
files in a non-standard location (at least according to the above
sitemap snippet you are).
Where have you put your project sitemap?
You can confirm your project sitemap is not being used by deliberately
creating an error in the XML (e.g. drop a closing bracket). You should
get an error telling you it is invalid XML, if you don't then Forrest is
not looking at your sitemap.
Ross