Global Error page in portal

Hi
This is regarding weblogic portal 8.1.
We have a portal project which contains several portlets. For handling exceptions
in a page flow we have a global error page at the project root level and each
portlet redirects to this error page /error.jsp in case of any errors.
When the user is redirected to this error page the page is displayed in the portlet
context. How can we make this error page to take up the whole screen and display
it outside of the portlet context so that all other links within the portal (books
and pages) are not displayed to the user.
In all cases, the redirection to the error page occurs from a page flow.
Thanks in advance,
Sameer

Also, you could do this:
* @jpf:catch type="Exception" method="handleAllExceptions"
* @jpf:exception-handler
* @jpf:forward name="errorPage" path="/error.jsp" redirect="true"
protected Forward handleAllExceptions( Exception e, String actionName,
String message, FormData form )
return new Forward( "errorPage" );
In this case, handleAllExceptions() will redirect to the error page, which
will bring you out of the portal.
Rich
"Subbu Allamaraju" <subbuATbeaDOTcom> wrote in message
news:3f4cdefa$[email protected]..
Sameer,
The portal rendering framework renders the error page inside portlet
windows to address the most common scenario, where failure in a given
portlet won't stop users from interacting with other portlets.
Here are the options you've to address your use case:
- Handle the exception in the pageflow itself, and do a sendRedirect()
to the error page. This would bypass rendering of other portlets, and
user will be redirected to the error page.
- If the source of the exception is the JSP, you'll have to add some
javascript in the error page to do a redirect or, better yet, replace
the markup.
Subbu
Sameer Dalal wrote:
Hi
This is regarding weblogic portal 8.1.
We have a portal project which contains several portlets. For handling
exceptions
in a page flow we have a global error page at the project root level andeach
portlet redirects to this error page /error.jsp in case of any errors.
When the user is redirected to this error page the page is displayed inthe portlet
context. How can we make this error page to take up the whole screen anddisplay
it outside of the portlet context so that all other links within theportal (books
and pages) are not displayed to the user.
In all cases, the redirection to the error page occurs from a page flow.
Thanks in advance,
Sameer

Similar Messages

  • Global error page for portal project

    Hi
    This is regarding weblogic 8.1.
    We have a portal project which contains several portlets. For handling exceptions
    in a page flow we have a global error page at the project root level and each
    portlet redirects to this error page /error.jsp in case of any errors.
    When the user is redirected to this error page the page is displayed in the portlet
    context. How can we make this error page to take up the whole screen and display
    it outside of the portlet context so that all other links within the portal (books
    and pages) are not displayed to the user.
    In all cases, the redirection to the error page occurs from a page flow.
    Thanks in advance,
    Sameer

    Sameer,
    Please post this question to the weblogic.developer.interest.portal
    newsgroup.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Sameer Dalal" <[email protected]> wrote in message
    news:3f4bd37f$[email protected]..
    >
    Hi
    This is regarding weblogic 8.1.
    We have a portal project which contains several portlets. For handlingexceptions
    in a page flow we have a global error page at the project root level andeach
    portlet redirects to this error page /error.jsp in case of any errors.
    When the user is redirected to this error page the page is displayed inthe portlet
    context. How can we make this error page to take up the whole screen anddisplay
    it outside of the portlet context so that all other links within theportal (books
    and pages) are not displayed to the user.
    In all cases, the redirection to the error page occurs from a page flow.
    Thanks in advance,
    Sameer

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • Global error page - compatible with partial page rendering

    My global error page doesn't show in some isolated cases. Could this be because of partial page rendering? What changes might be needed to have it work in all cases?
    I have created a global error page and set it in the web.xml with:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>pages/htmlErrorPage.html</location>
    </error-page>
    This displays the htmlErrorPage when errors occur in nearly all my tested cases. However, when the test error is created inside one page redraw I find that the application dies without ever displaying my error page. On the console I get an error message that starts with:
    Jun 13, 2008 12:54:11 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.softrek.adf.view.managed.JFreeChartPlotter'.. class com.softrek.adf.view.managed.JFreeChartPlotter : java.lang.NullPointerException
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    But my error page doesn' t show up. I've used the identical test error in most other parts of my application and it shows - so other than the partial page rendering going on, I can't see why this case would be different.
    Is there any known bug (or feature) about the use of an error page during partial page rendering?
    Any ideas will be welcome.

    I'm unclear on how I would get the error to redirect.
    I've changed my web.xml to go to a servlet of my creation, set up the mapping and all.
    It works fine for exceptions generated in a backing bean normally.
    When the exception occurs as part of partial page rendering the error servlet is not called and the user's session dies.
    This is being done in JDeveloper 10.1.3.3
    The new web.xml contains:
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/servlet/errorAction</location>
    </error-page>
    Which is working for errors generated under most circumstances but not when they are inside my partial page change.
    How do I get errors to go to my error page when the error occurred during PPR?
    PS. Using the PartialPageUtils.isPartialRequest() method generated a recursive error in my error servlet. This looks like the known limitation for Faces error handling.

  • 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!

  • Global Error Page

    <error-page>
    <exception>java.sql.Exception</exception>
    <location>/19/sqlException.jsp</location>
    </error-page>
    can i do this in java studio creator
    or i have ttry catch and return "something" and reference that "something" in my navigation??
    will it redirect to the global error page if i catch the exception in the block and never throw?
    Thanks

    Yes, you can do this. Go to the "Files" view of the project and edit the web.xml. There you would see some exceptions are already caught and handled. You can add your specific exception there.
    - Winston
    http://blogs.sun.com/winston

  • How to create a global error page?

    I created a small application, for which I need a global error page. I know how to navigate through the jsp page through iserrorpage and errorpage. And I'm getting the error page. When I have any error in my servlet I'm not getting the error page displayed. So I need a global error page. Can anyone help on this?
    Thanks.

    Please do not crosspost the same question over all places. It is rude in terms of netiquette.

  • Issue in Global home page in  portal.

    Hi All
         I had one global home page in itranet portal  I had few country tabs  like India,US,UK etc.. like that for to select specific country ,here my requirement is if the end user didnt select any country but by default  it has to be Visible with India country
    for Indians
        Suppose if the US people access that intranet portal  by default it has to open with US country with out selecting the tab,if they want to choose other country then they will choose the countries.how can I maintain the cookies or any other way is there for to fix this requirement.
          If any body have the solution please let me know .
    Thanks
    Renu

    Hi Renu,
      Are you talking only about content (roles, worksets, iviews, etc.) or are you also saying that you need to provide a unique desktop layout (theme, branding, etc.) for users of different nationalities?
      If all you want to do is provide unique content, the problem sounds rather easy and could be addressed by simply grouping your users in the UME such that all Americans share a common group, Indians share another, Germans share yet another, etc. Obviously this calls for an extra step when creating this user whereby the Admin must know the country of origin of this user before creating their ID... but that doesn't seem like too much to ask. Once these groups are established, you assign the content you want for each nationality to each respecitve group and you've achieved your goal.
      Alternatively, if you're also looking to deliver a unique appearance (theme, branding images, etc.) for different nationalities, then you can still use the same approach mentioned above of grouping users in the UME but you'd now want to create additional desktops in the PCD and modify the Portal's Display Rules to assign a unique desktop to each nationality based on group membership.
      Here's some sample documentation that discusses Display Rules:
    http://help.sap.com/saphelp_nw04s/helpdata/en/4b/29cf122f414721964269e1b675d62c/content.htm
    -Kevin

  • Customize error-pages in portal

    Hello!
    How to customize error-pages (e.g. error 500, 404, 403...) in an application
    running within the portal (e.g. BEx Web Analyzer) ?
    Via the visual administrator it is possible to customize error-pages for
    a single applications (=> Server => Services => Web Container => choose an
    application => Btn. View => Tab. Pages => Tab. Error Pages)
    - but how to costomize all error-pages for all applications running within the portal ?
    Greetings
    Frank Ruggaber

    Hi madhvika,
    One way you can modify the standard error msgs is using Custom Error msgs which you can define in the web.xml deployment descriptor of your application.
    (/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-infweb.xml):
    Check [custom error pages|http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    you can use the first method - Error msgs mapped to error codes.You can create your own static html and write your own customised error msg in that instead of the usual 404 error : Resource not found.
    I think the standard error msgs are not stored in portal...not sure though.I think they are defined in the J2EE engine as parameters.Have to chek on that once.
    Or probably if u have KM installed then these error msgs can be directed to a file stored in KM and the respective msg can be displayed.....again storing as static html.
    Reward points if useful.
    Cheers,
    Abhishek
    P.S: How are you?

  • Error handbook for Portal

    Hello experts,
    as I´m new to SAP NetWaever technology (in my case SAP Portal) and administration/monitoring issues I´m looking for an Error Handbook describing the most critical or the most common errors within a portal (based on Java AS).
    I hope, there is something like a "book of recipes" for solving common and critical errors...
    Additionally I would like to know if there is a tool which can analyze statistically errors... that means which can display a graph showing the distribution of errors depending of their category.
    This would be a great option to get an overview over the error area...
    I know about Visual Admin, NWA. However, what other possibilities do I have to prepare myself for the job of an administrator.
    How can I learn to monitor the system landscape and to take the right decision in case of error.
    Thanks in advane.
    Thomas

    Sameer,
    Please post this question to the weblogic.developer.interest.portal
    newsgroup.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Sameer Dalal" <[email protected]> wrote in message
    news:3f4bd37f$[email protected]..
    >
    Hi
    This is regarding weblogic 8.1.
    We have a portal project which contains several portlets. For handlingexceptions
    in a page flow we have a global error page at the project root level andeach
    portlet redirects to this error page /error.jsp in case of any errors.
    When the user is redirected to this error page the page is displayed inthe portlet
    context. How can we make this error page to take up the whole screen anddisplay
    it outside of the portlet context so that all other links within theportal (books
    and pages) are not displayed to the user.
    In all cases, the redirection to the error page occurs from a page flow.
    Thanks in advance,
    Sameer

  • Howto change the default error page in EP

    Hello all,
    I'm trying to find out where can I change the default error page when portal is loading  ("application stoped...") and replace it with my own friendly message .
    Thanks
    Amity

    Hi,
    Take a look at SAP Note 795699.
    Hope that helps,
    Keith

  • JSP error page in web.xml

    I had a JSP error page spcified through the attribute isErrorPage and referenced in the other JSPs through the errorPage attribute, and everything worked well.
    Then, I decided to specify that errorpage in the web.xml instead :
    <error-page>
      <exception-type>java.lang.Throwable</exception-type>
       <location>/error.jsp<location>
    </error-page>The page is found and everythiing, except that I don't get the Throwable info in the implicit exception object in error.jsp. There's nothing in exception.getMessage().
    Anybody knows why and the solution to this ?

    The JSP spec lets you get the Throwable through the javax.servlet.jsp.jspException request attribute.
    The servlet spec uses the javax.servlet.error.exception request attribute for the same thing.
    Therefore, because of the above unfortunate mismatch, when you switched to a global error page, you could no longer get the Throwable through the implicit exception obj, because the later retrieves Throwable from the javax.servlet.jsp.jspException request attribute.
    The solution would be to retrieve javax.servlet.error.exception from the request yourself in your error page.

  • Customizing portal error pages using WPC seems not to work

    Hi,
    I am running a EP 7.01 system and have instaled the KMC-WPC component.
    My goal is to edit custom error pages. I have followed the help.sap.com
    guide, however i don't see any results. When i create a KM-document
    iview to a non-existing document, i stll get the default 404 error
    page. I have restarted the portal, but without effect. Am i missing something or is the error-page editor not meant for this kind of use? I have also tried to edit the web.xml file, but these errorpages are on a very global scale and not usefull for my purpose
    Bas

    Hussain,
    Yes, it is a KM document not found page
    regards,
    Bas

  • Customizing Portal Error Page?

    Is there a way to customize the look and feel of Portal Error Pages?

    I found the section of Portal Configuration document 4.3.7 that shows how to set a global Error Message Page. However, it utilizes the / Administration Portlets / Portal / Error Message Portlet
    Is there a way to modify this portlet? I'm thinking it's a PLSQL portlet. Does anyone know where (what package/procedure/function) it resides in the PORTAL schema?

  • 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.

Maybe you are looking for

  • How to allow non-text page into TOC and have it export to ePub?

    Hi there, I've got an InDesign book file with several document files added as "chapters."  One of these files is the title page of the book, which is composed entirely of graphic images (i.e. there is no text on the page). I want this page to be visi

  • Issue w movie only loading partially in certain Browser/Player Configurations

    I have a multi SWF movie that uses AS2 and is behaving differently in different browsers. The basic scenario is this . There is a root movie that acts as a control panel for user input. 1. It loads then parses some xml to determine how the interface

  • Mail server prefiltering of junk mail

    I am wondering if there is an Apple service, software, etc. or another approach offered by a third party that allows a mac user to filter junk mail before it gets to Mail from any email server. For example, Yahoo! Mail uses something to filter and co

  • Nokia 6700 - Issue with "0" button

    Hi all,  Just checking: On my 6700 the middle button in the last row ("0") has completely different (much worse) travel and response than all the other keys. Also the physical "click" is hardly nit there. As a result, when pressing "0" I have to pres

  • Sorting flagged photos?

    Using CC, I selected some photos and chose Photo > Set Flag > Flagged I now want to sort based on the Flag and I click on each of the 3 flag buttons in my Library Filter, though it does not seem to bring up my photos. It brings up lots of other photo