cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: Default handlers of errors in 2.2?
Date Wed, 13 Aug 2008 11:42:08 GMT
On Wed, 2008-08-13 at 12:12 +0200, Grzegorz Kossakowski wrote:
> Hi,
> In 2.1 every sitemap was mounted by root sitemap and thus mounted sitemap inherited various
> like components configuration or map:handle-errors declarations.
> By contrast, in 2.2 every sitemap is independent and self-contained so it does not inherit
any kind 
> of default declaration of error handlers. This is somehow problematic, because now if
> throws SourceNotFound exception there is no handler for this exception and Cocoon always
returns 500 
> (Internal Server Error) response status code. This is obviously wrong and the only way
to fix it is 
> to declare map:handle-errors section in every sitemap which is rather inconvenient.
> I started to think about some kind of default minimalistic handler for basic exceptions
that would 
> be hard-coded into SitemapServlet.

Hmm, hard-coded does not sounds swell. Couldn't we set up an
error-handler sitemap and then import it to the sitemap that need to use
the handlers. This way it is still possible to implement your own.

Just thought.


> What do you think about such idea? Do you have any better one?
Thorsten Scherler                       
Open Source Java                      consulting, training and solutions

View raw message