Summary: | provide a custom error page | ||
---|---|---|---|
Product: | Lenya | Reporter: | Joachim Wolfgang Kaltz <jwkaltz> |
Component: | Miscellaneous | Assignee: | Lenya Developers <dev> |
Status: | NEEDINFO --- | ||
Severity: | enhancement | ||
Priority: | P2 | ||
Version: | Trunk | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Linux |
Description
Joachim Wolfgang Kaltz
2005-03-14 10:03:35 UTC
Note: Andreas Hartmann says: There should be a switch (debug/production) to enable/disable the Cocoon error screen (which is IMO very convenient). we now have only one general, fallback-enabled error handling pipeline on trunk (which makes customization a snap), and the error screens are I18N-enabled. now we only need to do the desired build-time substitutions (to be determined) It would also be important to provide a 404 in the layout of the default publication, including the navigation widgets. (In reply to comment #3) > It would also be important to provide a 404 in the layout of the default > publication, including the navigation widgets. Done in revision 589779. The error handling is now done in a separate sitemap which is overridden in the default publication. Is this sufficient to give an example? i came across a problem with the new error handling: i'm playing around with allowing servlet reloads in web.xml (you can then use the "cocoon-reload" request parameter to restart the servlet - i was hoping that this could speed up changes needing re-deployment or that it can be used to reset profiling information). now, when you try to do that, you end up with: Message: You cannot lookup components on a disposed ComponentLocator Description: org.apache.cocoon.sitemap.PatternException: Cannot get variable 'error.xmap' in expression '{fallback:error.xmap}' i.e. the sitemap stays in effect although the servlet has been killed. now this is certainly a corner case, but the question remains whether the error handler should depend on anything as high-level as the fallback protocol... but it's oh so convenient... |