Define global error page on global-web.xml

Dear fellows:
We want to create a common 404 web error page for all our J2EE applications. We have added these error pages to the global-web.xml through the Visual Administrator:
  on several  system local folders such as:
usrsap<SID><j2ee-instance>j2eecluster
usrsap<SID><j2ee-instance>j2eecluster<server-inst>
usrsap<SID><j2ee-instance>j2eecluster<server-inst>apps
usrsap<SID><j2ee-instance>j2eecluster<server-inst>sap.com
However, everytime we provoke the server error in order to retreive this Global Error Web Page, the system does not seem to find our custom error page, giving the following message:
The request can’t be processed.
Details: Requested resource ( /testerrorpage.html ) not found.
We have discovered that the application was not trying to look up for our web Error page, but for another one located inside the application. However, we don't want to add a specific application web page but a global one common for all of them.
Since there is not any common folder, such as global/root folder, we don’t know where the custom error page should be placed. Do we need to do something else?
We are currently using WAS: 6.40 SP 11 PatchLevel 89291.313.
Does anyone know how to configure this global error page? It is possible to do it?
Thank you
Gonzalo
Message was edited by: Gonzalo Pérez-Prim

Hello,
Yes, Uvaylo is right, the only way to edit the content of the global-web.xml is through the visual administrator --> Configuration Adapter.
I have the same problem as Gonzalo, I have modified the global-web.xml and added custom errors pages for each HTTP error and exceptions. The big deal is when I try to specify in the <b>location</b> field of <b>error-page</b> item: I dont know where I should place my custom error page. I have tried the same paths as Gonzalo did with the same result, when the error event is raised the error page is not found. In the log appears the following entry:
Processing an http request by the error page [/testerrorpage.html] finished with errors.
Probably the exception [com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException:
Requested resource ( /custom_error.html ) not found.]
thrown by the requested servlet [/testerrorpage.html] cannot be processed.
The error is: com.sap.engine.services.servlets_jsp.server.exc
Please help! Where can I place my custom error pages, to make them available for all the applications of the server?
Thanks in advance for your help!

Similar Messages

  • Getting referrer in error page setup in web.xml

              Hello,
              Is it possible to get the referrer in a JSP when that JSP is
              set up as the error-page element in web.xml when a 404 (or
              any other http error) occurs?
              For example when I type www.me.com/page1.jsp and page1.jsp does
              not exist WLS sends me to my error page. However I want to know
              what page (in this case page1.jsp) it was trying to access.
              Wouldn't this typically be the referrer? When I itirate through
              the headers in my error page the referrer is not one of them.
              regards,
              [email protected]
              

              This works beautifully. Thank you!
              [email protected]
              Dimitri Rakitine <[email protected]> wrote:
              >It was added in Servlet spec 2.3 - see [9.9.1]:
              >
              >If the location of the error handler is a servlet or a JSP page, the
              >request
              >attributes in Table SRV.9-1 must be set.
              >
              >These attributes allow the servlet to generate specialized content depending
              >on the status code, the exception type, the error message, the exception
              >object
              >propagated, and the URI of the request processed by the servlet in which
              >the error
              >occurred (as determined by the getRequestURI call), and the logical name
              >of the
              >servlet in which the error occurred.
              >
              >Table SRV.9-1 Request Attributes and their types
              >Request Attributes Type
              >javax.servlet.error.status_code java.lang.Integer
              >javax.servlet.error.exception_type java.lang.Class
              >javax.servlet.error.message java.lang.String
              >javax.servlet.error.exception java.lang.Throwable
              >javax.servlet.error.request_uri java.lang.String
              >javax.servlet.error.servlet_name java.lang.String
              >
              >so it will work in 6.1 :
              >
              ><web-app>
              > ...
              > <error-page>
              > <error-code>
              > 404
              > </error-code>
              > <location>my404page.jsp</location>
              > </error-page>
              > ...
              ></web-app>
              >
              >and my404page.jsp :
              >
              ><%@ page isErrorPage="true" %>
              ><%
              > System.out.println("Error: " + request.getAttribute("javax.servlet.error.request_uri")
              >+ " is not here");
              >%>
              >
              >bea_user <[email protected]> wrote:
              >
              >> Hello,
              >
              >> Is it possible to get the referrer in a JSP when that JSP is
              >> set up as the error-page element in web.xml when a 404 (or
              >> any other http error) occurs?
              >
              >> For example when I type www.me.com/page1.jsp and page1.jsp does
              >> not exist WLS sends me to my error page. However I want to know
              >> what page (in this case page1.jsp) it was trying to access.
              >
              >> Wouldn't this typically be the referrer? When I itirate through
              >> the headers in my error page the referrer is not one of them.
              >
              >> regards,
              >> [email protected]
              >
              >--
              >Dimitri
              

  • ADF/Webcenter Portal Error Page configuration in web.xml

    Hi All,
    I am using jdeveloper version 11.1.1.6.0.
    I set two error pages in my application by following web.xml entries.
      <error-page>
        <error-code>404</error-code>
        <location>/oracle/webcenter/portalapp/pages/AfError.html</location>
      </error-page>
      <error-page>
        <error-code>503</error-code>
        <location>/oracle/webcenter/portalapp/pages/SiteMaintenance.html</location>
      </error-page>but it does not divert to the AfError.html page but shows 404 error.
    How to solve this.
    Is it possible to set .jspx page in location attribute also.
    Any help is appreciated.
    Require as early as possible

    Hi,
    this should be asked on the WebCenter forum. However, how likely is it that your error page also causes a 404 error? The message in you web.xml file are for site not found and site not available. So unless you redirect to something that is accessible you wont be able to tell whether it works or not
    Frank

  • 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

  • Error trying to update web.xml

    I'm trying to update  web.xml via these instructions:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eb8120-b66c-2910-5795-894f384fc054
    The upload fails, and I see this excetpion in the log:
    Caused by: java.rmi.RemoteException: Error occurred during single file update of
           application sap.com/irj. Reason: Updating the security information in the
           deployment descriptors is not allowed in this operation.; nested exception is:
         com.sap.engine.services.servlets_jsp.server.exceptions.WebDeploymentException:
           Updating the security information in the deployment descriptors is not
           allowed in this operation.
    Ideas?  I'm signing in as Administrator, so why would the operation not be allowed?
    This is a 7.0 system, and the instructions are for a nw2004 system.  We've successfully uploaded the web.xml file before, so I'm thinking that something has changed in 7.0 that's preventing the upload.

    This page of the documentation indicates that the technique is the correct case:
    http://help.sap.com/saphelp_nw70/helpdata/en/6e/8590f1d6d349c9adc34c6a8085189b/frameset.htm
    So, one of two things has happened:
    1. The documentation is in error, or
    2. A bug has been introduced.
    I'm hoping it's #2....

  • Error while deploying in web.xml with web-app_2_5.xsd

    Weblogic version 10.3.5 and java is 1.6.0_31
    context root is - "/" (slash)
    Web.xml - old
    has following declaration and works fine
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    i am trying to change web.xml's web-app definition as below
    Web.xml - new
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
    and to accommodate above change i enclosed all "tag libs" inside <jsp-config> tag which is as per 2.5
    when i try to deploy with above changes, i am getting following error but with old definition i am not getting any error.
    <Error> <Deployer> <clbblr-4423> <StoreFront> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1358234763292> <BEA-149205> <Failed to initialize the application 'shopstr' due to error weblogic.application.ModuleException: Failed to load webapp: '/'.
    weblogic.application.ModuleException: Failed to load webapp: '/'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
    Caused By: java.lang.ClassNotFoundException: atg.web.tagsupport.CollectionTagSupport
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.defineClass1(Native Method)
    Would appreciate suggestions. Thanks

    added JAR file pwsTaglib2_0.jar and now problems are resolved. will open this thread if i see any other error

  • Setting web pages resource in web.xml

    Hi all
    I want to set the location of my jsps in a different folder of my web app root.
    I mean i have a subfolder of web app root and i want to set this subfolder as web pages location.
    Any idea ? setting anything with the web.xml?

    you need not set a different path.. u can just type in folder name in the browser
    http://localhost ..../folder/index.jsp
    (immediately after the port number)

  • Define a context parameter not using web.xml

    Dears,
    With a web.xml file, it is possible to define a context parameter available in the web app via de ServetContext.getInitParameters method.
    Is it possible to define a context parameter not using the web.xml file ? Can I, in a java Class, init a custom context parameter ? (for exampel, init as a context param a key/value pair read from a property file).
    PS: the need is that the value (hmac key) currently define in the web.xml needs to be updated monthly. Apparently, under WebSphere (the app server we are using) changing the web.xml of the deployed app it not enought for it to be taken into account.
    Sincerely,
    Beno�t Bertrand

    Is it possible to define a context parameter not
    using the web.xml file ? Can I, in a java Class, init
    a custom context parameter ? (for exampel, init as a
    context param a key/value pair read from a property
    file).Does it necessarily have to be a value retrieved through the context param ? AFAIK, there's no way you could programatically 'set' an init param, which going by the name, 'init param' is quite understandable.
    You could define this value in a property file and read it in, in the init method. You should provide a mechanism to reload the new value after 'x' days. One approach is a Timer that does the job, do have a look at SteveJLuke's recommendations on the same in this thread
    http://forum.java.sun.com/thread.jspa?threadID=637355&tstart=0cheers,
    ram.

  • My firefox keeps giving me the error page on every web site but my internet exploer is working just fine

    i have googled why fire fox keeps giving the error can not establish a connection and nothing i have found works i have unistalled it and added it back i have checked the proxy i have check the fire wall and nothing works but internet explorer works fine please help or i will have to delete it for good

    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * http://kb.mozillazine.org/Error_loading_websites

  • Error-page tag not valid in global-web-application.xml ?

    Hi!
    From what I understand about the global-web-application.xml file in Oracle's documentation, the content of the web-app tag should be inherited to all web application as a web.xml content.
    One of the web.xml tags is error-page, which contains the page url for the standard return codes (404, 500, and so on).
    If I put the error-page on the web.xml inside a web application, it works as expected.
    But if I don't put this tag inside the web applicaction, but in the global-web-applicacion.xml (web-app) tag, it doesn't work.
    We are testing the 404 error page, but I don't know if it is because the application server can't find the error page or because the global-web-application.xml isn't being inherited correctly.
    Where is this file supposed to be looked for? Or the only way to do this is by writing the configuration on all web applications?
    We are using 9.0.3
    Franco Catrin L.
    TUXPAN

    Just refreshing... Does anyone have any idea?
    Daniel.

  • Problem displaying error page of web.xml when using JSF, Ajax4jsf

    Hi,
    My application is using MyFaces, RichFaces and Ajax4jsf. When i try to display error page configured in web.xml, i am getting exception "Error while processing error page".
    my web.xml contents are as follows:
    <?xml version="1.0"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <filter>
    <display-name>RichFaces Filter</display-name>
    <filter-name>richfaces</filter-name>
    <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>richfaces</filter-name>
    <servlet-name>faces</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>
    org.apache.myfaces.webapp.filter.ExtensionsFilter
    </filter-class>
    <init-param>
    <description>
    set the size limit for uploaded files. Format: 10 - 10 bytes 10k
    - 10 KB 10m - 10 MB 1g - 1 GB
    </description>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    </init-param>
    <init-param>
    <description>
    Set the threshold size - files below this limit are stored in
    memory, files above this limit are stored on disk.
    Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
    </description>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>Seam Redirect Filter</filter-name>
    <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
    </filter>
    <filter>
    <filter-name>KTServletFilter</filter-name>
    <filter-class>com.kenexa.core.system.KTServletFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Seam Redirect Filter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>KTServletFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <!-- seam Listeners -->
    <listener>
    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
    </listener>
    <listener>
    <listener-class>com.kenexa.kr.web.KRServletListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/rc/systemError.jsf</location>
    </error-page>
    </web-app>
    As per the configuration, when exception is thrown out of the application, container tries to display systemError.jsp page. If we want to include the JSF tags in systemError.jsp page, the request should pass through FacesServlet, so in the <error-page> <location> tag systemError page is specified with the extention systemError.jsf though it's actual extention is .jsp
    When exception is thrown from the application container invoke the error page but, while rendering systemError.jsf page exception is thrown saying "Exception processing error page "systemError.jsp" "
    To solve this problem i've gone through several forums, materials.
    In one forum a guy said, JSF1.1 spec has some problem in displaying error pages. To solve this don't write <f:view> tags in the error page, use <f:subview> intstead. By reading this, i again changed the contents of systemError.jsp page replacing <f:view> by <f:subview>. But the error is still repeating.
    Finally what i found is, when we use Ajax4jsf in the application, its AjaxViewRender class is throwing exception while rendering error pages configured through web.xml.
    So what i did is i changed error page extention from .jsf to .jsp in the <location> tag. Now jsf won't come in the picture and remove JSF related tags from the systemError.jsp page.
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/rc/systemError.jsp</location>
    </error-page>
    Any comments are welcome----------------------------------------------------------------

    I too iam facing the same problem could you advise if you have found any solutions
              -Ram

  • How to call common error pages for all the exceptions

    Hi All
    I have created the common ErrorPage in my application. In case of any error whether SQL,IO or JBO I want that error page be displayed. In the page definition I have given the errorpage name and also defined the error page as IS_ERROR_PAGE = true.But it is throwing Jbo exception at the top of the page itself.No redirection to the error page is done.
    Though I have gone through various threads in this forum but still its not clear how to get the things working.
    Can anyone please help me out in this regard?

    Hi,
    I assume you mean that you set the error page in the web.xml file. Note that exceptions are handled first by the JSF framework. Please have a look at the developer guide
    http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
    http://download-uk.oracle.com/docs/html/B25947_01/web_val008.htm#CIHHBEEJ
    Frank

  • 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

  • HTTP Error 403 - Customized Error Page Display Issue

    Hi,
    I have included 403 in <error-code> in my web.xml and defined proper security constraints. But when I try to access my JSPs directly on Mozilla I see my error page but I try in Internet, I can't see the same page.
    Can someone help me?

    BalusC wrote:
    Then don't send the HTTP error status code in the headers. It would trigger IE to display friendly error pages.
    Best solution would be to let the error page invoke a redirect to self (or another error page) when the HTTP status code is 403, so that it becomes 200 (or anything in range of 200-399) so that IE won't be triggered to display friendly error pages. Best solution would be to let the error page invoke a redirect to self (or another error page) when the HTTP status code is 403You want to say that I should define a error page in my JSP where, when its called, I need to handle the 403 error. Please correct me if I'm wrong. I have defined *403 error code in my web.xml*.
    Again if possible can you please put down a sample how to do it?

  • How to show  an error Page in Weblogic when the server is down

    Hi ,
    I heard that every container has the facility to show an error page when the server is down and (when the request has arrived at that time ).
    Please tell me how to configure this in BEA weblogic ??
    Thanks .

    Hi,
    From my understanding weblogic dose not provide the thing which you are asking for, reason is given below.
    - An application is deployed only on managed server one (MS-1)
    - Now if the request comes to the server (MS-1) when it was running and then for some reason MS-1 goes down then weblogic server would be able to send any response back to the client as its down.
    - Hence nothing can be done as the request object is been lost when the server goes down or even cant redirect to an error page as for doing that too the server has to be up and running.
    However there are other way round which can help you overcome this issue as shown below
    - Use Clusters with few managed servers in it which gives you high availability and load-balancing.
    - Use any web servers like Apache in front of weblogic servers.
    Using the above things you can also use customized HTTP Error Responses with error-page element in web.xml and create your own error pages which can be re-directed for the web server side also. For more information go through the below links
    Topic: Customizing HTTP Error Responses
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webapp/configurejsp.html#wp157884
    Topic: error-page
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webapp/web_xml.html#1017571
    Topic: ErrorPage
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/plugin_params.html#wp1155425
    Hope above information helps you.
    Regards,
    Ravish

Maybe you are looking for

  • Problem in Standard program while selecting Index

    Hi, I am using the Standard SAP Program ' RFKKZE00' for creating Payment-Lot in my Custom Program ( Z-program ). The Std. Program inturn calls 'RFKKZE01' and which inturn calls 'RFKKZE02' via Background Job. The problem is that the program 'RFKKZE02'

  • How to add text to the start of the subject for email sent to  wiki mail

    When an email is sent to the group wiki email address (groupname-wiki@serverurl), I would like for the subject of the email to have \[groupname-wiki\] added to the beginning of the text. Can anyone suggest to me how to do this? What configuration fil

  • Iview cannot be previewed after ESS BP deployment

    Dear Experts, Kindly need your help. Our iview (namely personal data iview in ESS) show blank (I mean really blank) iview in preview mode(portal content directory and as content administrator). We previously deployed a downloaded ESS Business Package

  • How do i change 2 row of array into waveform with delta time and time

    Hello, How do i change 2 row of array into waveform with delta time and time so the waveform graph will display two waveform, waveform, not cluster =] and how to extract 1d array from waveform?

  • Error download Employee Benefit Application

    I am attempting to download the Employee Benefit Sample Application found at http://otn.o racle.com/sample_code/products/ias/content.html But is get the following error message: Page not found. (Error Document 404) This website is an ever-changing co