You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Colin Paul Adams <co...@colina.demon.co.uk> on 2004/06/24 16:58:09 UTC
Trying to use mount table
>>>>> "Colin" == Colin Paul Adams <co...@colina.demon.co.uk> writes:
Colin> I find that what I actually want is a file called
Colin> mount-table.xml. But that doesn't exist either (why isn't
Colin> there a default one with sample entries commented out?).
Colin> So I finally find my way to some java source, and find the
Colin> format of the file in java comments (made so much more
Colin> harder to read by <s).
Colin> Phew. Well, now I'll go and create one, and hope the java
Colin> comments are correct.
Well, I don't know - it seemed so easy:
1) I created a mount-table.xml in the cocoon distribution directory.
It looks like this:
<!-- copy this file to the cocoon distribution directory -->
<mount-table>
<mount uri-prefix="onevoice" src="file:///home/colin/onevoice/"/>
</mount-table>
2) In /home/colin/onevoice, I created a sitemap.xmap file. It looks
like this:
<?xml version="1.0" encoding="utf-8"?><!-- -*- mode: nxml; -*- -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt-saxon"/>
<map:readers default="resource"/>
<map:serializers default="xhtml11"/>
<map:matchers default="wildcard"/>
</map:components>
<map:pipelines>
<map:pipeline>
<!-- xml files -->
<map:match pattern="members/calendar.html">
<map:generate src="members/calendar.xml"/>
<map:transform src="members/calendar.xsl"/>
<map:serialize />
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Then I do a build clean, build, and cocoon servlet.
I try typing in the URL:
http://localhost:8888/cocoon/onevoice/members/calendar.html
I expected my pipeline to execute, but I got:
Resource not found.
org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException:
file:/home/colin/cocoon-2.1.5/build/webapp/cocoon/sitemap.xmap doesn't exist.
Which is certainly a lie (if I ignore the file:/ rather than
file:///)! But then, I seem to remember that this is almost
a catchall message in cocoon for sitemap problems.
How can I find the real error?
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org