[
http://jira.jboss.com/jira/browse/JBSEAM-2439?page=all ]
Fijai Cairo closed JBSEAM-2439.
-------------------------------
Resolution: Done
This wasn't actually a valid bug. After further investigation, I discovered that the
issue was as a result of the wrong path to a template.
Exception rules in pages.xml redirect to a 404 page if redirect
destination isn't in web root.
----------------------------------------------------------------------------------------------
Key: JBSEAM-2439
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2439
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.GA
Environment: JBoss 4.20 GA/ JBoss 4.22 GA, OSX 10.5.1, JRE 1.5.0_13
Reporter: Fijai Cairo
Assigned To: Pete Muir
Fix For: 2.0.1.GA
Exception redirections rules in pages.xml to error pages that reside anywhere besides the
web root always yield a 404 page.
This rule in pages.xml works. When the exception is raised, the user is redirected to the
correct error page
<exception class="com.myApp.exception.GatewayException">
<redirect view-id="/gatewayerror.xhtml">
<message>GatewayException.</message>
</redirect>
</exception>
This rule doesn't work. I have the error file in a directory named
"errors". When the exception is raised, the user is directed to a 404 page even
though the Url reflects the right path.
<exception class="com.myApp.exception.GatewayException">
<redirect view-id="/errors/gatewayerror.xhtml">
<message>GatewayException.</message>
</redirect>
</exception>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira