cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <coc...@lojjic.net>
Subject Re: problems in executing <map:aggregate> pipeline
Date Fri, 03 Mar 2006 13:29:21 GMT
The sitemap runs matchers in order of appearance, and internal cocoon:/
calls run all pipelines, not just internal-only ones.  So with the
sitemap you pasted below, each of your <map:part/>s is first matched by
the pattern="*/*".  This forms an infinite loop.

You should move your internal-only pipeline above the other so it is
tried first.


rahul.manavi@tcs.com wrote:
> Hi,
> 
>  I'm using cocoon 2.1.8 with JDK 1.4.2.
> 
> Problem Description:
> 
> I'm trying to execute a pipeline using <map:aggregate> & <map:part>,
which
> I'm describing below.
> While executing I'm getting " HTTP ERROR 500: INTERNAL SERVER ERROR"
> alongwith "java.lang.stackOverflow Error" in jetty server.
> 
> can anybody point out where I'm going wrong? or what might be the cause of
> above error?
> Or in the following case can I use saperate stylesheets (in the internal
> pipelines) and then arrange the content using master_stylesheet.xsl ?
> 
> any inputs are appreciated.
> 
> Thanks in advance,
> 
> Rahul
> 
> ------------------pipeline-----------------
> 
> <map:pipeline>
>  <map:match pattern="">
>        <map:redirect-to uri="cocoon:/home/index.html"/>
>  </map:match>
> 
>  <map:match pattern="*/*" >
>    <map:aggregate element="page">
>       <map:part src="cocoon:/content/header.xml" element="header" />
>       <map:part src="cocoon:/content/subheader.xml" element="subheader" />
>       <map:part src="cocoon:/menu/menu.xml" element="topmenu"/>
>       <map:part src="cocoon:/content/rightmenu.xml" element="rightmenu"/>
>       <map:part src="cocoon:/content/content.xml" element="content"/>
> 
>       <map:part src="cocoon:/content/footer.xml" element="footer"/>
>    </map:aggregate>
>    <map:transform  src="stylesheets/master_stylesheet.xsl"/>
>    <map:serialize type="html"/>
> </map:match>
> 
> 
> </map:pipeline>
> 
> <map:pipeline internal-only="true">
> 
>  <map:match pattern="content/*.xml">
>       <map:generate src="content/{1}.xml"/>
>       <map:serialize type="xml"/>
>  </map:match>
> 
>  <map:match pattern="menu/menu.xml">
>       <map:generate src="menu/menu.xml" />
>         <map:serialize type="xml"/>
>  </map:match>
> 
> </map:pipeline>
> ---------------------------------------------
> 
> 
> Notice: The information contained in this e-mail message and/or attachments to it may
contain confidential or privileged information. If you are not the intended recipient, any
dissemination, use, review, distribution, printing or copying of the information contained
in this e-mail message and/or attachments to it are strictly prohibited. If you have received
this communication in error, please notify us by reply e-mail or telephone and immediately
and permanently delete the message and any attachments. Thank you
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message