If I remove the line <map:part src="cocoon:/noticies.xsrc"/> the page don't give me an error, only don't display the information.
The error message reported is: can't access to the url "http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCI&p_ub
i_codalf=SCIIncidencies".
Nicola Ken Barozzi wrote:
From: "Bartomeu Adrover" <[EMAIL PROTECTED]>> Hello, I use cocoon 2.01 with apache tomcat 4.01 in windows nt. I
> construct an page with varius xml source with <ma:part> tag:
> <map:match pattern="index.xml">
> <map:aggregate element="root">
> <map:part src="cocoon:/noticies.xsrc"/>
> <map:part src="personalsci.xml"/>
> <map:part src="index.xml"/>
> </map:aggregate>
> <map:act type="request">
> <map:transform src="xsl/principal.xsl">
> <map:parameter name="use-request-parameters" value="true"/>
> <map:parameter name="homePath" value="{context}/sci"/>
> </map:transform>
> </map:act>
> <map:serialize type="html-iso"/>
> </map:match>
> The problem is the part <map:part src="cocoon:/noticies.xsrc"/>. This
> part get the informatio from other server and sometimes this service is
> unaviable. If I consult the url direcly "http://www.uib.es....." when is
> unavible all the pipeline return an error.
> I thing a solution: use an pipeline that request this url and if an
> error happens then process the xml error code and return an usefull xml
> for my first pipeline:
> <map:pipeline>
> <map:match pattern="noticies.xsrc">
> <map:generate
>
src="http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCI&p_ub
i_codalf=SCIIncidencies"/>
>
> <map:serialize type="xml-iso"/>
> </map:match>
>
> <map:handle-errors>
> <map:transform src="xsl/noticies_error.xsl"/>
> <map:serialize type="xml-iso" status-code="200"/>
> </map:handle-errors>
> </map:pipeline>
> When I request the second pipeline I recive the correct xml, but in the
> first pipeline continue return an error (url unaviable).
> Have one any idea?.Sorry for the very simple question, but are you sure that all the other
files in the first pipeline are really available?
Without <map:part src="cocoon:/noticies.xsrc"/> in the first pipeline do
you still get an error?
Are you sure you're not getting cached stuff?--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
------------------------------------------------------------------------------------------------------------------------------------------
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]>
begin:vcard n:Adrover;Bartomeu x-mozilla-html:FALSE org:UIB;Servei de Cālcul i Informatizaciķ version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya fn:Baromeu Adrover end:vcard
--------------------------------------------------------------------- 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]>