tag:blogger.com,1999:blog-6133363959081933104.post3634484753359011674..comments2023-04-26T16:26:30.439+02:00Comments on Big Al's Blog: Creating a generic error page for JSFAllan Lykke Christensenhttp://www.blogger.com/profile/00646797647221121520noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-6133363959081933104.post-78067583989217807742009-05-29T09:25:49.058+02:002009-05-29T09:25:49.058+02:00Thanks! The extra greater than (<) has been rem...Thanks! The extra greater than (<) has been removed.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-21851552002091290712009-05-28T23:13:20.163+02:002009-05-28T23:13:20.163+02:00Another comment.
You asked to be notified about u...Another comment.<br /><br />You asked to be notified about using java.lang.Throwable...<br /><br />I supplied the following in my web.xml and it worked perfectly...<br /><br />I hope the html special characters show up...<br /><br /><error-page><br /> <exception-type>java.lang.Throwable</exception-type><br /> <location>/errorPage.html</location><br /></error-page><br /><br /><br />Notice using the 'exception-type' instead of 'error-code'<br /><br />thanks again,<br />clayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-3546797612962965332009-05-28T23:06:34.253+02:002009-05-28T23:06:34.253+02:00Nice example...
There is a typo in the web.xml fil...Nice example...<br />There is a typo in the web.xml file...<br />It should NOT be '500<', you have one too many '<' characters.<br />thanks,<br />clayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-35924756492821063932009-03-16T00:07:00.000+01:002009-03-16T00:07:00.000+01:00Please see my comment of 2. March. I think this ca...Please see my comment of 2. March. I think this can be solved by explicitly specifying the Exception instead of the error codes. Let me know if it works out.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-23738464845243686392009-03-11T21:19:00.000+01:002009-03-11T21:19:00.000+01:00When there is exception in the backing bean, a bla...When there is exception in the backing bean, a blank page is displayed. I was expecting response with status code 500. When I debug the http response the status code is 200. I have configured the webapp to display error page on status code 500. Since it is not returning status code 500, this page is not displayed.<BR/><BR/><BR/>I am using Sun RI Implementation of JSF on weblogic 10.3Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-64514506952238151652009-03-02T00:17:00.000+01:002009-03-02T00:17:00.000+01:00Instead of specifying 500 as the error code you co...Instead of specifying 500 as the error code you could specify the full class name of the Exception you which to catch and re-direct. So, if you specified java.lang.Throwable you should (theoretically) be able to catch all uncaught exceptions. I haven't actually tried this myself, but I believe it should work. Let me know if it works.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-2869254751755948902009-02-26T21:45:00.000+01:002009-02-26T21:45:00.000+01:00Hi,Very nice article.Where are you registering / E...Hi,<BR/>Very nice article.<BR/><BR/>Where are you registering / Error bean so that it catches all runtime exceptions and then redirects to error jsf file.<BR/><BR/>appreciate if you can tell the steps to set up this stuff.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-61509986927062144192009-01-05T13:45:00.000+01:002009-01-05T13:45:00.000+01:00Hi Allen,I tried out the steps in your article but...Hi Allen,<BR/>I tried out the steps in your article but I'm unable to get the error page instead I'm getting server defined error page(500). Could you please give me some advice, here is my environment that I'm working on(JSF 1.2 , NetBeans 6.0.1, Server 6.0.14).<BR/>Thanks in advance.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-30589405433754435562008-11-06T19:17:00.000+01:002008-11-06T19:17:00.000+01:00thank you for your article. But i still have 500 e...thank you for your article. But i still have 500 error. i hate this. i have looked everywhere but still gets 500 error. Please help me. <BR/>You said that enter web.xml this this what ever. there is two web.xml. one is in tomcat/conf the other is in \WEB-INF. Which should i edit? And i create jsp file not visual web jsf file. Is that right? And i create java class file. But in the IE, i still get http status 500. Also i add jsp file, isErrorPage="true". I use netbeans 6.1 and apache tomcat 6.0.16. Please help me. Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-91563916610470799612008-07-30T01:16:00.000+02:002008-07-30T01:16:00.000+02:00Actually, the error file should be the view-id of ...Actually, the error file should be the view-id of the JSF file. So say, FacesServlet is matching *.jsf, then your error directive should point to /Error.jsf.<BR/><BR/>Hope that makes sense.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-26005861848325445982008-07-29T11:01:00.000+02:002008-07-29T11:01:00.000+02:00Hi Allan,Nice article. Would you mind sharing the ...Hi Allan,<BR/>Nice article. Would you mind sharing the filter pattern for error.jsp. <BR/><BR/>does that go to the faces servlet?Anshumanhttps://www.blogger.com/profile/00143831125933113164noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-10010006251367334562008-05-06T20:09:00.000+02:002008-05-06T20:09:00.000+02:00As far as I know, the solution should work with an...As far as I know, the solution should work with an Servlet version supporting JSF.Allan Lykke Christensenhttps://www.blogger.com/profile/00646797647221121520noreply@blogger.comtag:blogger.com,1999:blog-6133363959081933104.post-21285138940061697292008-04-29T19:38:00.000+02:002008-04-29T19:38:00.000+02:00Hi there!Nice article.Do you know if this solution...Hi there!<BR/>Nice article.<BR/><BR/>Do you know if this solution only works within Servler 2.5 or it should also works with Servlet 2.4?<BR/><BR/>Thanks in advance!<BR/>LeoAnonymousnoreply@blogger.com