shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lily (JIRA)" <>
Subject [jira] Commented: (SHALE-250) Custom Error Page doesn't work when used with Clay
Date Wed, 16 Aug 2006 07:27:30 GMT
    [ ] 
lily commented on SHALE-250:

Thank you for your help, Gary. It works now.  I started with shale-clay-usecases-20060809(nightly
build) ,  My web.xml which doesn't work is like this:

<?xml version="1.0" encoding="UTF-8"?>

 Copyright 2004-2005 The Apache Software Foundation.
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 See the License for the specific language governing permissions and
 limitations under the License.

<web-app version="2.4" xmlns="" xmlns:xsi=""
xsi:schemaLocation="            ">

  <display-name>Shale Clay Usecases App</display-name>

  <!-- JSF RI verify objects at start -->

  <!-- Select JSF State Saving Mode -->

  <!-- Commons Chain Configuration Resources -->

   <!-- Clay Common Configuration Resources -->

  <!-- Shale Application Controller Filter -->

  <!-- Shale Application Controller Filter Mapping -->

  <!-- Commons Chain Configuration Listener -->

  <!-- JavaServer Faces Servlet Configuration -->

  <!-- JavaServer Faces Servlet Mapping -->

  <!-- JavaServer Faces Servlet Mapping for Clay HTML Full View --> 

  <!-- JavaServer Faces Servlet Mapping for Clay XML Full View --> 

  <!-- Welcome File List -->




I didn't set javax.faces.DEFAULT_SUFFIX. Now, I add the following to web.xml


Then it works.

> Custom Error Page doesn't work when used with Clay
> --------------------------------------------------
>                 Key: SHALE-250
>                 URL:
>             Project: Shale
>          Issue Type: Bug
>          Components: Clay
>    Affects Versions: 1.0.3-SNAPSHOT
>         Environment: jboss4.0.1sp1
>            Reporter: lily
> If the cutom error page defined in web.xml ends with suffixes that match clay template
suffixes, it can't display.
> Maybe it's because ClayViewHandlerCommand doesn't execute so that the request attribute
Globals.CLAY_FULL_VIEW_SUFFIX can't be set when web server redirects to  custom error page.
> If My custom error page is defined like this:
>  <servlet-mapping>
>     <servlet-name>faces</servlet-name>
>     <url-pattern>*.html</url-pattern>
>   </servlet-mapping>
>     <servlet-mapping>
>     <servlet-name>faces</servlet-name>
>     <url-pattern>*.xml</url-pattern>
>   </servlet-mapping>
>    <error-code>404</error-code>
>     <location>/error.jsp</location>
>   </error-page>
> The error page can display, but if I replace the error.jsp with "/error.html", it can't

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message