Custom Error Pages (404 & 500) not invoked (JSF 1.2 & Websphere 6.0.1)

Hopefully this is very obvious to some of the experts here. I'm trying to have my custom error pages (404 & 500) displayed, but in stead I get the normal system output text (ugly). The web.xml has been configured to apply the FacesServlet to all pages ending with "jspx". What I now get is the following: Whenever a page ending with .jspx cannot be found, the custom 404 page is IGNORED, however, when I don't use .jspx, but .jsp for example, IT WORKS. Below is my web.xml. I have already tried to make the error pages plain html, and also moved them to the root directory, no luck.
Oh yes, running on RAD 6.0.1, Faces 1.2.
Please if someone could guide me here...
########## SNIP ##########
<servlet id="Servlet_1212573625706">
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>-1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JS Resource Servlet</servlet-name>
<url-pattern>/.ibmjsfres/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
<error-page>
<error-code>500</error-code>
<location>/includes/errorPages/error500.jspx</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/includes/errorPages/error404.jspx</location>
</error-page>
########## SNIP ##########

I recognize this as an appserver bug (yeah, it's Websphere).
Websphere (and the older versions of Apache Tomcat where it is actually based on) doesn't expect the error-page to be a dynamic servlet-served page, but as a static page. It roughly handles as follows: get the error-page location from web.xml, test its existence on the disk file system, if positive then go ahead, but if negative then display default error screen.
The file with .jspx extension does not physically exist on the disk file system. A workaround for which I remember it worked in WAS 5.x is to create physically that file (empty content is allowed) on the disk file system. So create a blank file with jspx extension at the same location.

Similar Messages

  • Custom error Page when Run time Occurs in SharePoint

    Hi Guys In my SharePoint application in case if any Run time error occurs in my code, It should not come Server error \ ..instead it needs to redirect to Custom error Page But its not working Can you plz help out? I made changes in web.Config file but its
    not working..Can you guys plz help me out how to redirect to custom error Page if any run time error occurs in Sharepoint??
       <customErrors mode="RemoteOnly" defaultRedirect="~/GeneralError.htm" redirectMode="ResponseRedirect"></customErrors>
     [[ Web.config file in Virtual Directory C:/inetpub/wwwroot/vd/port/web.config
    Is there any changes in addition to this web.config file??
    Reddy

    Hi Reddy,
    Here you go. pls follow the tutorials
    http://www.fixthisbug.com/post/creating-a-custom-error-page-for-sharepoint-2010-web-application
    http://blog.incworx.com/blog/sharepoint-tips-and-tricks/implementing-sharepoint-2010-custom-error-pages-v3
    http://www.spdeveloper.co.in/articles/pages/custom-error-pages-for-sharepoint2010-sites.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • IE7 Does Not Display Custom Error Pages

    Hi,
    I set up the "Handling Servlet Exceptions (http://www.oracle.com/technology/sample_code/tech/java/codesnippet/servlets/handlingservletexceptions/handlingservletexceptions.html#log) sample code in JDev 10.1.3 on a WindowsXP desktop.
    After modifying the web.xml to run the sample "Catch500Error" servlet I discovered IE7 will not display the custom error page but Mozilla Firefox will.
    The web.xml looks like this:
    <web-app>
    <description>web.xml file for HandlingServletExceptions Application</description>
    <servlet>
    <servlet-name>CatchError500</servlet-name>
    <servlet-class>oracle.otnsamples.servlets.CatchError500</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>CatchError500</servlet-name>
    <url-pattern>/catcherror500</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <error-page>
    <error-code>500</error-code>
    <location>/web/500error.html</location>
    </error-page>
    </web-app>
    Does anyone know how to get IE7 to display the custom error page?
    TIA,
    Jim

    The post documents a problem with 'dashboard designer' not 'sharepoint designer' as the post above mentions. I tried the solution that Jilu posts and that does not fix the problem for dashboard designer.
    I figured this out. In the master page gallery where my custom master page was deployed, I had to edit the details, change the content type to 'publishing master page'. After that change there was then UI versions for 3 and 4. I change the UI to 4, published
    the  master page document in the library then dashboard designer saw the custom master page. 
    Andy Fitch

  • How to configure custom error page in WebServer 6.1 if instance is down

    Hi ,
    I have deployed an application on port 82.
    If the instance is down, want to configure custom error page in Sun One Webserver 6.1 so that the it displays a customised message rather than browser displaying its custom DNS error page.
    In web.xml, configured the 404/500 error messages, but if the instance is down, my web application does not receive the request. So it should be defined at the root level.Where to configure the same?
    Thanks for the help in advance.

    You can use Error function "send-error" http://docs.sun.com/source/817-1834-10/crobjsaf.html#wp20007
    It has an example
    Error fn=send-error code=401 path=/sun/server61/docs/errors/401.html

  • Custom error page.........please help me

    Hi guys,
    i'm working on a jsf application and i've decided to use a custom error page.
    What i want is displaying the stacktrace of the application level' exceptions like nullpointer,mysql exceptions etc....in a custom error page.
    I've followed an example at the end of core java server faces book but it's doesn' work!!
    Please help me,these are my steps...
    i've defined in my web.xml
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
      <error-page>
      <error-code>500</error-code>
      <location>/errorDisplay.jsp</location>
    </error-page>i've errorDisplay.jsp
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <html>
    <f:subview id="dummy">
    <head>
      <title><h:outputText value="Problema nell'applicazione"/></title>
    </head>
    <body>
    <h:form>
    <p><h:outputText value="Un errore � stato riscontrato"/></p>
    <p><h:outputText value="Ecco lo stacktrace"/></p>
    <h:inputTextarea value="#{errorBean.stackTrace}"
    rows="40" cols="80" readonly="true"/>
    </h:form>
    </body>
    </f:subview>
    </html>and this is my managed bean ErrorBean.java
    package giu;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.sql.SQLException;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.servlet.ServletException;
    public class ErrorBean {
         public String getStackTrace() {
              FacesContext context = FacesContext.getCurrentInstance();
              Map request = context.getExternalContext().getRequestMap();
              Throwable ex = (Throwable) request.get("javax.servlet.error.exception");
              StringWriter sw = new StringWriter();
              PrintWriter pw = new PrintWriter(sw);
              fillStackTrace(ex, pw);
              return sw.toString();
         private static void fillStackTrace(Throwable t, PrintWriter w) {
              if (t == null)
                   return;
              t.printStackTrace(w);
              if (t instanceof ServletException) {
                   Throwable cause = ((ServletException) t).getRootCause();
                   if (cause != null) {
                        w.println("Root cause:");
                        fillStackTrace(cause, w);
              } else if (t instanceof SQLException) {
                   Throwable cause = ((SQLException) t).getNextException();
                   if (cause != null) {
                        w.println("Next exception:");
                        fillStackTrace(cause, w);
              } else {
                   Throwable cause = t.getCause();
                   if (cause != null) {
                        w.println("Cause:");
                        fillStackTrace(cause, w);
    }I cause mysql exceptions in my application,but i see the standard stack trace,not my jsp page with stack trace..
    i think my error is in web.xml in which 500 is only a type of error....i've to adding mysql exceptions????
    How can i do it?
    Please help me

    I have the above solution working in my environment. the only difference is that i have an additional declaration in the deployment descriptor...
    <error-page>
         <exception-type>java.lang.Exception</exception-type>
         <location>/faces/errorDisplay.jsp</location>
    </error-page>

  • Error: Page Metadata could not be obtained from the Portal database.

    Hi,
    Maybe some one can help me with this.
    After my installation (oas portal 10.1.4) I changed my URL in portal and sso.
    modplsql : http://<webserver>:<port>/pls/portal/htp.p?cbuf=test --> its working fine. I got test
    Parallel Page Engine (PPE) : http://<webserver>:<port>/portal/page --> its working fine. I got PPE is working.
    http://login.hostname:port/oiddas --> It`s working fine
    http://login.hostname:port/sso --> It`s working fine
    http://hostname:port/portal/page/portal/TOPLEVELSITE --> It's not working I got in firefox Error: Page Metadata could not be obtained from the Portal database. In explorer i got HTTP 500 error.
    I checked my application.log and I got this:
    **portal: id=45342345678,1 ContentFetcher Unexpected Exception Request Failed:oracle.webdb.dispatcher.DispatcherException: I/O Error dispatching request name=content-fetcher19 label=pageMeta url=http://<webserver>:port/portal/pls/portal/!PORTAL.wwpob_page.show/TOPLEVELSITE time=1ms timeout=60000ms process=Dispatching**
    Maybe some one can help me to solve this threat.
    Thank you.

    C@rlitos wrote:Edited by: C@rlitos on Sep 30, 2009 6:14 PM
    Hi!!
    To register the url in portal I used this doc 434795.1 - 558634.1 from metalink.
    http://download-west.oracle.com/docs/cd/B14099_17/core.1012/b13998/variants.htm#CBDBDJHD
    I verified and i got this:
    LSNR_TOKEN
    SITE_TOKEN
    SITE_ID
    LS_LOGIN_URL
    URLCOOKIE_VERSION
    ENCRYPTION_KEY
    ENCRYPTION_MASK_PRE
    ENCRYPTION_MASK_POST
    U
    oldurl.com:7781
    XY776FQWDCY4EFF
    8AC54EFF
    http://oldurl.com:7780/pls/orasso/orasso.wwsso_app_admin.ls_login
    v1.2
    2FWERFW768767866
    6B4DEERWF87W87897E89WRF897W3FC9
    F0FEC6AREW76786WEFWER76F8968695
    N
    newurl.com
    1RG8IYA4F9D2E30A
    F9D2E233A
    http://newurl.com/pls/orasso/orasso.wwsso_app_admin.ls_login
    v1.2
    B32852345661513F0
    1A5DTR546EYEYEHEHSVSGFB44C
    A33RTWERGERGERGREFWERF8
    N
    I havent create new token values.
    Edited by: C@rlitos on Sep 30, 2009 6:14 PMHave you configured your Infra with a new hostname on a different port ?
    Unless, you had installed your OAS with custom ports, and have not used the default ports for the components, your lsnr_token for the newurl has a problem. orasso and sso should be configured at 7777, and by default they configure at that port. That means that your newURL should be pointing to http://newurl.com:7777/pls/orasso/orasso.wwsso_app_admin.ls_login for the ls_login_url.
    This might have happened due to some error in registering your portal with the SSO. Have you used custom ports for your installations?
    Additionally, did you configure your newurl on port 80?

  • Error in configuring Custom Error Pages for Faces Portlets

    According to
    http://e-docs.bea.com/wls/docs92/schemaref/controls-netuix/http.www.bea.com.servers.netuix.xsd.controls.netuix.1.0.0/element/facescontent.html
    you can specify an errorUri attribute on the facesContent object for the error page.
    <netuix:facesContent contentUri="/testList.jsp" errorUri="/error.jsp"/>
    WebLogic Workshop even allows setting this in the tool.
    However, the errorUri never gets picked up and the following error shows up.
    <BEA-423266> <No setter for property :: errorUri.>
    Anyone faced this problem. Is there any other alternative to specify a custom error page for JSF portlets.
    Please note that the errorUri works fine for the jspContent tag used for JSP Portlets.

    Hi Sanjeev,
    You need to check if you have access to AXF_CONFIGS table. Check if you have ran GRANT_ACCESS.sql script which has below grant commands.
    grant execute any type to apps;
    grant create type to AXF;
    grant select on AXF.AXF_CONFIGS to apps;
    v_formId AXF_CONFIGS.FORMID%TYPE; means tableName.columnName%type;
    so looks like when you are running AXF_EBS_SOLUTION_DATA.sql you are not able to access AXF_CONFIGS table.
    Hope this helps.
    Regards,
    Amol Gavali.

  • Custom Error Pages in EP 6.0 SP2

    Hello,
    Can anyone tell me if there is a way to setup custom error pages in Ep 6.0 SP2.
    Thanks,
    Keith

    Hi Praveen,
    What are trying to see if there is a way to have custom error messages in the SAP Portal J2EE Engine.
    For example if you have an IIS or Apache server you can setup custom 500 or 404 error pages, is this possible within the SAP J2EE Engine?
    Thanks,
    Keith

  • Redirect to a custom error page when Forms Server shuts down

    Hi,
    I want the forms application to redirect to a custom error page whenever Forms Server goes down. (like network issues, unscheduled shutdown...) Whenever this happens, the user gets a pop up with FRM messages and user has to acknowledge the pop up. Since the application is used in the shop floor, there will not be any user always in front of the screen and will be a very big issue as there are at least 70-80 PC's on the floor which will be attended fewer times(only when there is issue with the machine) other wise the application displays important events of the machine,etc.,
    I am trying to develop a simple HTML error page(may be with applet) which will keep querying the forms server and once the forms server is up and running, the error page will revert back to the application which the user was working earlier to shutdown. Other option is the redirect to main menu of the application (this may be a PSP or a JSP or a Oracle Forms Menu ).
    Is there any event in forms to capture the loss of connection to forms server ??
    BTW, I am using Oracle Application Server 10g Forms and Reports on Windows 2000 Server...
    Any ideas...
    Thanks in advance
    Purush

    I don't think it will be easily possible in Forms for a couple of reasons.
    1. In Forms you do not have query rights, and as soon as you want to edit data, you have to log in. In Forms you log in once, and this sets your rights for the whole session. You will have to do some programming in Forms to achieve what you want. E.g. as soon as you hit the Save button you are asked for a username and password.
    2. A refresh cannot be done in Forms. Remember that Forms is a Java applet. The URL in the browser is just pointing to the startup page only. If you refresh your screen, you are taken back to the login screen of Forms again.
    Well, there will probably be ways around these problems. I'm thinking in the line of calling every form in a separate URL instead of starting a Forms application where one form is called from another form. The default 'query only' form can be called from a startup html page. This page can be refreshed. As soon as the user wants to update data, he clicks on a link or button and is taken to a login form.
    If the refresh is unsuccessful you are taken to a custom error page, like in your ASP application.
    A problem with an automatich refresh may be hanging sessions. Forms server does not always kill sessions.
    And also, how would you avoid a refresh if a user is currently using the form?

  • OWA_UTL.REDIRECT_UTL to show Custom Error Page

    Hi,
    I am attempting to use the following code to redirect to my Custom error page (Page 500) on various error conditions being raised, within PL/SQL blocks: -
    wwv_flow.g_unrecoverable_error := TRUE;
    HTMLDB_UTIL.SET_SESSION_STATE ('P500_ERRMSG', SQLERRM);
    OWA_UTIL.REDIRECT_URL
    ('f?p='
    || gc_app_id
    || ':ERRPAGE'
    || gc_session_id
    || '::::P500_GO_TO_SCREEN,P500_SOURCE_SCREEN:1,'
    || gc_page_id
    || '');
    I have this working in another environment, but now when this condition is met all I get is a blank page and the following text: -
    Location: f?p=123:ERRPAGE:4328468326428634::::P500_GO_TO_SCREEN,P500_SOURCE_SCREEN:1,119
    Has anyone seen this before?
    Thanks,
    Mike

    Mike - Any event that causes the http header to be closed, such as "htp.p(...)", or the explicit closing of the header as in cookie-setting code where the header is closed afterwards, necessitates the use of htp.init in order to open and stuff the header again (as is the case with a call to owa_util.redirect_url).
    Scott

  • Oracle Database Vault - Error Page 404

    Hi,<br>
    <br>
    On the page http://www.oracle.com/technology/software/products/database_vault/index.html - Oracle Database Vault Downloads - the link for Learn More - Oracle Database Vault doesn't work (error page 404), this is
    http://www.oracle.com/technology/deploy/security/db_security/database-vault/index.html
    instead of
    http://www.oracle.com/technology/deploy/security/database-security/database-vault/index.html<br>
    <br>
    Nicolas.
    Thread copy & paste to the Feedback Forum, sorry, that seems not appropriate here.
    Message was edited by:
    N. Gasparotto
    Solved.
    Message was edited by:
    N. Gasparotto

    Solved. Thanks.
    Nicolas.

  • Making a custom error page

    Hi could some please tell me the staps to setting up a
    customized error page on the server. My host has told me to go
    ahead and do it but im not really sure of the staps. I have made te
    page i want to use. Just not sure what to do next. Any help would
    be ,ost appreciated.
    Thanks Mark

    I would suggest to check Ray's great entry.
    http://www.coldfusionjedi.com/index.cfm/2007/12/5/The-Complete-Guide-to-Adding-Error-Handl ing-to-Your-ColdFusion-Application
    :)

  • Searches on tahiti - Error page 404

    Hi,
    The search function does no more works on the documentation website :
    http://tahiti.oracle.com
    We get an error page 404.
    Thanks in advance,
    Nicolas.
    Solved now.
    Message was edited by:
    N. Gasparotto

    There is a big difference between this;
    http://www.mydomain.com/blabla
    and this;
    http://www.mydomain.com/blah.jsp
    blabla - this is the name of the Web application. When you reference this Web application name Tomcat will check the welcom file descriptor and redirect for that web application.
    blah.jsp - is the name of a JSP page. When you reference this page the way you did above, you are not stating where the JSP page is located. It would be locatied in the "http://www.mydomain.com/blabla/blah.jsp" location.

  • Suppress exception messages in Standard ESS Appls - Custom error page

    Hi,
    I am just wondering if we could supress the error messages (null pointer exceptions, array out of bound index etc..) which are thrown by standard WDJ based ESS Applciations and instead instead take the user to a much more meaningful custom error page. Do we need to achieve this playing with the FPM ?
    Could you pelase share your experiences and views.
    Thanks
    Murali.

    Looks like it is not possible

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • Urgent: regarding vendor report(tables)

    Hi, I am making a report in which i have to display the status of a vendor payment is done or not. I know that there are 2 tables which are going to be used i.e. BSIK n BSAK (for open items n cleared items) . i want to know is there any necessity of

  • Very specfic and odd network issue

    Connected via my wireless network, this site: http://wiki.contextgarden.net will not load via any browser (Firefox, IE, Safari, wget). Connected via ethernet, it loads fine. All virtual machines (windows) on the MBP also fail to load the page over wi

  • Audio Channel Mapping in Premiere Pro CS6

    I am using Premiere Pro CS6 6.0.5. Double clicking on an imported 5.1 ac3 file in my bin brings up the 6 channels in waveform in Source panel. The channels are mapped L,R,Ls,Rs,C,LFE. This does not conform to Dolby Digital standard L,R,C,LFE,LS,RS. I

  • HI CRM Specialists

    Hello, I am working on SAP CRM-IC-EMS and I am stuck at a point, so hope some could help me out. The problem is,"ERMS has been setup to receive inbound emails. The incoming emails should get converted into work item through a workflow. The setup is w

  • Slow Mac/OSX10.8.2?

    Since I upgraded to OSX 10.8.2 my Desktop is very slow and programs regularly crash. I did a reboot with P,R,Alt and Command, that improved things a bit. It seems as if the computer does not want to multi-task any more. When I have a few windows open