cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Coboos" <cromo...@gmx.net>
Subject Re: Using <map:handle-errors>
Date Mon, 17 Nov 2003 07:20:43 GMT

----- Original Message ----- 
From: "David Rogers" <dave@excira.com>
To: <users@cocoon.apache.org>
Sent: Monday, November 17, 2003 12:04 AM
Subject: RE: Using <map:handle-errors>


>
> Hmm..thanks. still having trouble..
>
> I am using a sub site map.
> I see the main site map has the selector declaration already....
>
>  <map:selector logger="sitemap.selector.exception" name="exception"
> src="org.apache.cocoon.selection.ExceptionSelector">
>      <exception class="org.apache.cocoon.ResourceNotFoundException"
> name="not-found"/>
>      <exception
> class="org.apache.cocoon.components.flow.InvalidContinuationException"
> name="invalid-continuation"/>
>      <!-- The statement below tells the selector to unroll as much
> exceptions as possible -->
>      <exception class="java.lang.Throwable" unroll="true"/>
>    </map:selector>
>
>
> But when i try to refrence it using:
>
>  <map:handle-errors>
>       <map:select type="exception">
>          <map:when test="not-found">
>             <map:generate src="{1}/{2}/welcome.xml"/>
>              <!--map:generate src="{1}/xhtml/filenotfound.xhtml"/-->
>              <map:serialize type="xml"/>
>           </map:when>
>        </map:select>
>  </map:handle-errors>
>
> I still get the main erorr page with this...
>
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Failed
to
> execute pipeline.: java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.RuntimeException: java.lang.RuntimeException:
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException:
>
file:/C:/eclipse/workspace/MetaWorks/sites/doingatkins.com/repository/cautio
> nn.xml doesn't exist.
>
>
> almost there...
> Thanks,
> Dave
>
>
>

>From where do you get the sitemap variables {1} and {2}?


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


Mime
View raw message