Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 1.8RC2
-
Fix Version/s: 1.8.2
-
Component/s: Tool Integrations
-
Labels:None
-
Environment:Netbeans 6.5.1
Description
Here is the description of the problem. I have a simple project that throw an exception upon the pressure of a button. I would expect to be able to intercept the exception with the error page directive and decide on what page to land. Instead the browser goes to a standard http500 page.
Reading the forums (http://www.icefaces.org/JForum/posts/list/5057.page,http://www.icefaces.org/JForum/posts/list/7986.page,http://www.icefaces.org/JForum/posts/list/7986.page) it seems that the JSF stack specification itself has some problem with the error-page directive given the JSF lifecycle. I admit I haven't understood exactly what is the problem. I've found example projects with icefaces but without netbeans. These projects need a redirect JSP page I'm not sure this technique is possible using netbeans. Anyway notice that with the woodstock faces stack this behaviour works.
I'm attaching a non working project made with icefaces and a working one with woodstock.
-
Hide
- iceNotWorking.zip
- 34 kB
- Raffaele Spazzoli
-
- WebApplication1/build.xml 3 kB
- WebApplication1/web/Page1.jsp 1 kB
- WebApplication1/web/index.html 0.5 kB
- WebApplication1/web/errorPage.jsp 1.0 kB
- WebApplication1/.../genfiles.properties 0.4 kB
- WebApplication1/nbproject/build-impl.xml 44 kB
- WebApplication1/.../project.properties 2 kB
- WebApplication1/nbproject/ant-deploy.xml 3 kB
- WebApplication1/nbproject/project.xml 2 kB
- WebApplication1/web/.../stylesheet.css 52 kB
- WebApplication1/web/.../faces-config.xml 2 kB
- WebApplication1/web/WEB-INF/sun-web.xml 0.5 kB
- WebApplication1/web/WEB-INF/web.xml 4 kB
- WebApplication1/src/conf/MANIFEST.MF 0.0 kB
- WebApplication1/.../private.properties 3 kB
- WebApplication1/src/.../errorPage.java 5 kB
- WebApplication1/src/.../Page1.java 4 kB
- WebApplication1/src/.../RequestBean1.java 3 kB
- WebApplication1/src/.../SessionBean1.java 4 kB
- WebApplication1/.../ApplicationBean1.java 4 kB
-
Hide
- WebApplication1.war
- 5.87 MB
- Ted Goddard
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- Page1.jsp 1 kB
- WEB-INF/classes/.../ApplicationBean1.class 1 kB
- WEB-INF/classes/.../Page1.class 1 kB
- WEB-INF/classes/.../RequestBean1.class 0.9 kB
- WEB-INF/classes/.../SessionBean1.class 1 kB
- WEB-INF/classes/.../errorPage.class 2 kB
- WEB-INF/faces-config.xml 2 kB
- WEB-INF/lib/backport-util-concurrent.jar 343 kB
- WEB-INF/lib/commons-beanutils.jar 113 kB
- WEB-INF/lib/commons-collections.jar 162 kB
- WEB-INF/lib/commons-digester.jar 104 kB
- WEB-INF/lib/commons-fileupload.jar 87 kB
- WEB-INF/lib/commons-logging.jar 30 kB
- WEB-INF/lib/dataprovider.jar 237 kB
- WEB-INF/lib/errorhandler.jar 29 kB
- WEB-INF/lib/icefaces-bm.jar 65 kB
- WEB-INF/lib/icefaces-comps.jar 1.93 MB
- WEB-INF/lib/icefaces.jar 1.06 MB
- WEB-INF/lib/jsf-api.jar 353 kB
- WEB-INF/lib/jsf-impl.jar 813 kB
- WEB-INF/lib/jsfcl.jar 203 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/sqlx.jar 169 kB
- WEB-INF/lib/wyswyg-appbase.jar 22 kB
- WEB-INF/sun-web.xml 0.5 kB
- WEB-INF/web.xml 4 kB
- errorPage.jsp 1.0 kB
- index.html 0.5 kB
-
Hide
- WebApplication1.zip
- 34 kB
- Ted Goddard
-
- WebApplication1/build.xml 3 kB
- WebApplication1/nbproject/ant-deploy.xml 2 kB
- WebApplication1/nbproject/build-impl.xml 45 kB
- WebApplication1/.../faces-config.NavData 0.4 kB
- WebApplication1/.../genfiles.properties 0.4 kB
- WebApplication1/.../private.properties 1.0 kB
- WebApplication1/.../project.properties 2 kB
- WebApplication1/nbproject/project.xml 2 kB
- WebApplication1/src/conf/MANIFEST.MF 0.0 kB
- WebApplication1/.../ApplicationBean1.java 4 kB
- WebApplication1/src/.../errorPage.java 5 kB
- WebApplication1/src/.../Page1.java 4 kB
- WebApplication1/src/.../RequestBean1.java 3 kB
- WebApplication1/src/.../SessionBean1.java 4 kB
- WebApplication1/web/errorPage.jsp 1.0 kB
- WebApplication1/web/index.html 0.5 kB
- WebApplication1/web/META-INF/context.xml 0.1 kB
- WebApplication1/web/Page1.jsp 1 kB
- WebApplication1/web/.../stylesheet.css 52 kB
- WebApplication1/web/.../faces-config.xml 2 kB
- WebApplication1/web/WEB-INF/sun-web.xml 0.5 kB
- WebApplication1/web/WEB-INF/web.xml 4 kB
-
Hide
- woodstockWorking.zip
- 24 kB
- Raffaele Spazzoli
-
- WebApplication2/build.xml 3 kB
- WebApplication2/web/Page1.jsp 1 kB
- WebApplication2/.../genfiles.properties 0.4 kB
- WebApplication2/nbproject/build-impl.xml 43 kB
- WebApplication2/.../project.properties 2 kB
- WebApplication2/nbproject/ant-deploy.xml 3 kB
- WebApplication2/nbproject/project.xml 2 kB
- WebApplication2/web/.../stylesheet.css 0.8 kB
- WebApplication2/web/.../faces-config.xml 1 kB
- WebApplication2/web/WEB-INF/sun-web.xml 0.5 kB
- WebApplication2/web/WEB-INF/web.xml 4 kB
- WebApplication2/src/conf/MANIFEST.MF 0.0 kB
- WebApplication2/.../private.properties 3 kB
- WebApplication2/src/.../Page1.java 5 kB
- WebApplication2/src/.../Bundle.properties 0.1 kB
- WebApplication2/src/.../RequestBean1.java 4 kB
- WebApplication2/src/.../SessionBean1.java 4 kB
- WebApplication2/.../ApplicationBean1.java 4 kB
Issue Links
- depends on
-
ICE-4862 error-page redirection not working in Glassfish v2 when directing to a JSP error page
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Created plain ICEfaces project and Sun RI project on eclipse targeted to GF 2.1 with JSF v1.2_13.
On SUN RI project, there is no problem with
<error-page><error-code>500</error-code><location>/faces/errorPage.jsp</location>
<!-- here errorPage.jsp is jsf page -->
But on ICEfaces project,
<error-page><error-code>500</error-code><location>/errorPage.iface</location>
doesn't work
Even though it doesn't work, I don't think it is a major issue as it is recommended to use static html page for error page (jsf error page may introduce its error as well)
Load project WebApplication1 from attachemenet #3 WebApplication1.zip
Once project is loaded noticed broken library references:
1. Broken reference wyswyg-appbase.jar
2. missing library:jsf-1-2_09
Remove these references by Project Properties -> Library
Add Add Library -> JSF 1.2_12 RI_Run-Time (required on Tomcat)
The error page is properly handled w/o problem.
On GlassFish v2. it doesn't work. I thought it is related to Netbeans' rave viewhandler and lifecycleListener.
I created same project without design time. I still can replicate this problem. I think this is an issue related to core on GlassFish v2.1
Liming, please review and test Ted's suggested fix and determine if this is a plugin config. bug.
Please test on Tomcat 6 and report on your results.
The issue is caused by using older JSF 1.2 runtime libs on Glassfish 2.1 server. Upgrading the JSF version to 1.2_12+ should resolve.