Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 49529 invoked from network); 4 Sep 2006 12:30:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 12:30:48 -0000 Received: (qmail 86383 invoked by uid 500); 4 Sep 2006 12:30:45 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 86350 invoked by uid 500); 4 Sep 2006 12:30:45 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 86341 invoked by uid 99); 4 Sep 2006 12:30:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 05:30:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.224.187] (HELO ns1.dixons.org) (69.55.224.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 05:30:44 -0700 Received: from westbury.dixons.org (82-32-46-174.cable.ubr06.azte.blueyonder.co.uk [82.32.46.174]) by ns1.dixons.org (8.12.8/8.12.8) with ESMTP id k84CUNug026816 for ; Mon, 4 Sep 2006 05:30:23 -0700 Received: from jdd (helo=localhost) by westbury.dixons.org with local-esmtp (Exim 4.50) id 1GKDap-0007dK-3j for user@forrest.apache.org; Mon, 04 Sep 2006 13:30:23 +0100 Date: Mon, 4 Sep 2006 13:30:23 +0100 (BST) From: Jim Dixon To: user@forrest.apache.org Subject: Re: xinclude In-Reply-To: <44FC117E.8030501@apache.org> Message-ID: References: <6212b1d00606290824p5557e258q7d878c14d62cd89f@mail.gmail.com> <1151595390.8177.39.camel@localhost.localdomain> <44FB3B5C.80808@apache.org> <44FBE573.2010609@apache.org> <44FBFDCA.3070902@apache.org> <44FC117E.8030501@apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, 4 Sep 2006, Ross Gardler wrote: > If you add your XInclude stuff back in you get a resource not found error. Not quite. There was a type in the xnlns:xi attribute: If I get the page with this setup, the page appears on the screen, but of course without the contents of foo.txt. If I put the colon in, I get a "Resource Not Found" error. > You say that the logs do not tell you exactly which file is missing > (which is very unusual by the way, are you sure there is no file not > found exception in the logs?) Well, there are three identical ComponentLocator exceptions and -------------------------------------------------------------------------- WARN (2006-09-04) 13:05.56:459 [access] (/eg/logMeIn.html) PoolThread-4/CocoonServlet: Resource not found. at - file:/home/j2ee/forrest/main/webapp/forrest.xmap:230:47 at - file:/home/j2ee/forrest/main/webapp/forrest.xmap:128:65 at - file:/home/j2ee/forrest/main/webapp/forrest.xmap:226:42 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:326:23 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:324:73 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:318:72 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:296:42 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:571:65 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:570:79 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:569:41 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:568:38 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:567:49 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:326:23 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:324:73 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:318:72 at - file:/home/j2ee/forrest/main/webapp/sitemap.xmap:296:42 -------------------------------------------------------------------------- > Since your original source is being found, it must be your included > source that is not being found. You can confirm this by requesting > eg/logMeIn.xml - you should see an XML document complete with your > unprocessed XI:Include statements. This works, returning the unprocessed What may be significant is that the xlns:xi attribute has been stripped from the element. [Well, perhaps not. Read on.] > So, check the location of your source document relative to your included > document and verify that the path in the source document is the same. They are. > Note: it is better to use the cocoon:// protocol to resolve files since > this will make your source files more portable. Portability is a luxury to those of us whose simple, non-portable files don't work. :-) However! If I change the element to it works. I will be experimenting with this further, but it appears that the cocoon:// protocol is not just a Good Thing but mandatory. For the record, there are 4 uses of xi:include below forrest/plugins. Three use the cocoon:// protocol and one uses href="{.}" > [1] > http://mail-archives.apache.org/mod_mbox/forrest-user/200609.mbox/browser -- Jim Dixon jdd@dixons.org tel +44 117 982 0786 mobile +44 797 373 7881