On Thu, 25 Apr 2002, Conrad F. D'Cruz wrote:

> Greetings all,
>
> I am trying to solve all the mysteries of the universe ... but I first
> wanted to conquer
> sub sitemaps!!! and I could use some collective wisdom of this list on
> this ....
>
> the directory structure is cocoon --> c2 --> vcard
>
> The main sitemap in /cocoon (pipeline only shown below) now looks like
> this:
>    <map:pipeline>
>
>      <map:match pattern="vcard/**">
>
>         <map:mount uri-prefix="vcard"
>                  check-reload="yes"
>                  reload-method="synchron"
>                  src="c2/vcard/sitemap.xmap"/>
>
>         <map:mount uri-prefix="vcard/**"
>                  check-reload="yes"
>                  reload-method="synchron"
>                  src="c2/vcard/sitemap.xmap"/>
>      </map:match>
>    </map:pipeline>
>
Try with one map:mount element under map:match, i.e. comment out or remove
the second one.

> Note:  I have also tried ... src="c2/vcard/"
> without the sitemap.xmap explicityly specified
>
> *************************************
> the sub sitemap in vcard is shown below
>   <map:pipelines>
>     <map:pipeline>
>       <map:match pattern="">
>         <map:generate src="documents/vcard.xml"/>
>         <map:transform src="stylesheets/vcard_one.xsl"/>
>         <map:serialize type="html"/>
>       </map:match>
>    </map:pipeline>
>  </map:pipelines>
>
> This worked perfectly when the pipeline was in the main sitemap
> *************************************
>
Have you also specified the following in the subsitemap:

<map:components>
  <map:generators default="file"/>
  <map:transformers default="xslt"/>
  <map:serializers default="html"/>
  <map:selectors default="browser"/>
  <map:matchers default="wildcard"/>
  <map:readers default="resource"/>
</map:components>

This is the minimal of components you should specify in every subsitemap.

> Now in the browser I am getting the following fatal error
>
<snip/>
>
> In the Tomcat shell window I am getting the following exception
>
<snip/>

What do the logs say?
They are located in $TOMCAT_HOME/webapps/cocoon/WEB-INF/logs/



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to