El jue, 13-04-2006 a las 13:37 +0200, Maurice Gittens escribió: > Hi, > > Today I decided to attempt pulling an xdoc from a remote source using HTTP > with Forrest SVN HEAD. > > So I added the following fragment to my the locationmap > (at src/documentation/content/) of my dispatcher > enabled project. > > <match pattern="remote/**.xml"> > <location src="http://localhost:80/index.xml"/> > </match> > > Then I added the following to my site map: > > <remote label="Test remote stuff" href="remote/" tab="welcome"> > <item label="Ot content..." href="index.html" /> > </remote> > > After restarting forrest and clicking on the "Test remote stuff" > link I get: > > <forrest-output> > Internal Server Error > Message: null > Description: No details available. > Sender: org.apache.cocoon.servlet.CocoonServlet > Source: Cocoon Servlet > Request URI > remote/index.html > cause > ...../src/documentation/content/xdocs/remote/index.xml (No such file or > directory) > request-uri > /remote/index.html > </forrest-output> > > While I expected Forrest to attempt to retrieve index.xml from the remote > source, because the document does not exist in my project directory. > > Is there some step I missed in the docs while setting this up?
Yes, you need to match in your project sitemap as well since the locationmap is not used by default for resolving. Add <map:match pattern="remote/**.xml"> <map:generate src="lm://remote/**.xml"/> <map:serialize type="xml"/> </map:match> HTH salu2 > > Thanks, > Maurice > > PS: Please CC me as I am not on the list. -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)
