cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Curran <daniel.cur...@dotech.com>
Subject Re: Problems handling errors (404s, 500s etc)
Date Fri, 14 Apr 2006 16:33:15 GMT
Have you defined your exceptions in your selectors section of components?

Duncan McLean wrote:
> Hi
>
> We have a root sitemap which (to me) seems to have a standard
> handle-errors section:
>
> <map:handle-errors>
> <map:select type="exception">
>
> <map:when test="not-found">
>   <map:generate type="notifying"/>
>   <map:transform src="stylesheets/system/exception2html.xslt"/>
>   <map:serialize/>
> </map:when>
>
> <map:when test="invalid-continuation">
>   <map:generate type="notifying"/>
>   <map:transform src="stylesheets/system/exception2html.xslt"/>
>   <map:serialize/>
> </map:when>
>
> <map:otherwise>
>   <map:generate type="notifying"/>
>   <map:transform src="stylesheets/system/exception2html.xslt"/>
>   <map:serialize/>
> </map:otherwise>
>
> </map:select>
> </map:handle-errors>
>
> However, when a 404 error (or 500) is encountered, instead of getting the
> nice "pretty-printed" exception page, we just get a scree of error stack
> trace on the screen.
>
> Why could this be happening? Is there something I'm missing, or has
> someone seen this before? (The xsl files seem to be reachable as it
> complains if I rename any of the files mentioned above).
>
> Thanks
>
> Duncan
>
>
>
>
> ---------------------------------------------------------------------
> 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