Error pages

hi e'one
          hey we r working on an application actually which is application in 'Web
          Development with JSP's Author:Fields/kolb'
          yeah the application is given in chapter11. <11.2:Creating error pages>
          there when i run the application i'm getting the output message saying that
          there is an ArithmeticException:/by zero but the email part doesn't work and
          its directed to the catch (MessagingException e) and displays
          "Unable to send the e-mail for error noitification"
          now i wanne know what should i do to get the email which should be send to
          the id which we giv
          the changes i did in my program are
          in the error.jsp
          String mailServer = "our servername";
          String subject = "JSP Error Notification";
          String [] to = { "my email id"};
          String from = "JSP Container <my email id>"
          and in the sendEmail utility
          i changed the
          mailProps.put("our servername", mailServer);
          plz suggest me what to do ...this is a awesome application and may be
          helpful to several people plz ., and how to print the contents of
          MessagingException e either on the console or the jsp page ...
          plz suggest me
          tia
          Kishore
          

never mind - found it
Lena

Similar Messages

  • 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

  • The custm error page is not getting loaded in TomCat 5.0

    Hi all,
    I am working on a JSF web application deployed in Tomcat 5.0.I was trying to redirect 404 and 500 error pages to custom error pages.But the error pages are not getting loaded and i am getting normal Tocat 404 status page.
    I am giving the web.xml entry for the error page defenition.
    <error-page>
              <error-code>404</error-code>
              <location>/faces/displayErrorpage.jsp</location>
         </error-page>
         <error-page>
              <error-code>500</error-code>
              <location>/faces/SessionExpirepage.jsp</location>
         </error-page>
         <error-page>
              <exception-type>java.lang.Throwable</exception-type>
              <location>/faces/displayErrorpage.jsp</location>
         </error-page>
    Please help me out to solve this problem.Its urgent.I will be greatful for any kind of help.
    Note: The same application working fine,ie,the error page is getting loaded while deploying WAS 6.0.
    Jeevan Edakkunnath.

    That's a specification version. I was asking for the implementation and version. Is it the Sun reference implementation (Sun JSF RI)? If so, which build?
    It works flawlessly here on the latest build of Sun JSF RI 1.1, the 1.1_02. You can get the latest build at [http://javaserverfaces.dev.java.net]. I was using Tomcat 6.0.14 by the way, it might make difference.
    Does it work if you use plain vanilla JSP files and do not pass the request through the FacesServlet? I recall some bugs related to it, but I am not sure anymore if it is related to the JSF implementation or application server used.

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

  • Custom 404 Error page in Sharepoint Foundation 2013

    Hi all,
    How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion.
    Thanks.

    Can i create any page and pass the page url in it,like if i have created a page as custom404.aspx under pages library so do i need to do like this?
    $spsite = Get-SPSite "<http://sharepoint:1000/>"
    $spsite.FileNotFoundUrl = "<pages/custom404.aspx>"
    is this the correct way or i am doing incorrectly??
    please suggest

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • 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

  • Report, Form, and Data Component portlets go to error page

    I am able to add Report Form and Data Component portlets to my page, but when I click on the define button it takes me to my error page.
    Have I missed configuring something?

    hello friends,
    thanks for replly,
    i m using command noe after table node in main window, but i want display the data below the main window , it is diplaying  new page as required but only missing data below the main window.
    to be more clear i want to print all the window in first page then only go for next page , so is there any condition or parmeter in main window to go next page only agfter completion of first page.
    dont worry abt points.

  • I Always end up at an error page when I test my design!

    Greetings,
    Ladies and gentle men of the forum, does any one knows how I could fix this problem that I am having with the IIS server.
    When I enter http://localhost it will take me to the home page but when I open my web site, which I designed with Dreamweaver, and test the site to see how it will function I will end up at an error page showing message below the line.
    I also created site and testing server. Does any know how I could correct this problem so I could work safely? I am also using SQL server for database. If there any one have any idea on what I should do please contact me.
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the localhost home page, and then look for links to the information you want.
    Click the Back button to try another link.
    HTTP 404 - File not found
    Internet Information Services
    Technical Information (for support personnel)
    More information:
    Microsoft Support
    Thanks.
    Joplateau.
    Message was edited by: joplateau

    Isn't http://localhost your on premises server?  I wonder if you've actually uploaded your site to the www.?  A local host would be your build database and where you upload from, no?  You should have a database on the internet at a secure server consisting of: Host; User ID; Password; Directory.  Then, you upload to that server and then it's just a matter of accessing and testing the site via your URL.  Otherwise, you can always test away by accessing the localhost database somewhere on your premises.  This is how I see it.  If you are getting that error message, it means the database has moved and Dream can't find it.  Bummer, because when you do find it you will have to re-establish your links ( I think ).

  • I'm unable to access my yahoo email account using updated firefox browser, i keep getting error page when I use the mail link on yahoo pages

    Since updating Firefox browser, i am unable to gain access to my yahoo email account. I can access the email with Interent Explorer with no trouble. Whenever I click on a mail link on the yahoo sites to check my mail, I get rerouted to an error page ..... "Sorry, we can't find "ca.mg4.mail.yahoo.com/dc/launch?.gx=1". Please check the spelling of the web address." is what is said at top of page whenever I click on any mail links.

    This is how I fixed it on my new iPhone 5S. Using the standard yahoo setting on my phone.
    You will have to access  "managing your app passwords" on your account profile for yahoo. Generate password for your app. For example: "My iPhone 5S'
    Go to your Iphone and set up your yahoo mail account on your phone the normal way and you have to use the generated password.  instead of the yahoo account password.
    source:
    http://virtualizeme.net/iphone-5-yahoo-mail-server-unavailable-fix/
    I hope this helps,
    cheers

  • How can I set up a custom 404 error page on OSX Server?

    I moved my web site to a local server and changed the structure drastically.  Unfortunately I am getting hits for information that was on the old server which I haven't put back yet.  I'd like to set up a custom 404 Error Page to let people know what's up.  In server.app I can set up a 500 error page but not a 404 and when I tried hand coding it into the sites .conf file I really messed things up.  It took me a while to get that all corrected!
    Thanks for any advice,
    Bill W

    Found it!
    Under the web server Advanced Setting set "Allow overrides using .htaccess" then create an .htaccess file in the root directory with the line:
    ErrorDocument 404 notfounderror.html
    Use whatever HTML/PHP/etc. document you have created.

  • 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

  • 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

  • JSP error page does not displayed on its own, includes in the original JSP

    Problem Description: - Exceptions in a Condition cause pages to fail to render.
    The actual issue is, the JSP error page does not displayed on its own, included in the original JSP Page when exception occurs.
    Problem Cause: As per the JSP specification when jsp content reached the buffer size (default 8KB) the page being flushed (Part of condent displays). The default �autoFlush� value is true.
    When the page buffer value is default size (8KB), and if any exception occurs after flushing the part of the content, instead of redirecting into error page, the error page content included in the original page.
    If i specify autoFlush="false" and with default buffer size, at the runtime if the buffer size is reached, i am getting stackoverflow error.
    To solve the above problem we can make it autoFlush=�false� and buffer=�100KB�. But we can�t predict the actual size of the page.
    I found in one of the weblogic forum as no solution for this issue. Ref.
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls/S-10309.htm
    Please provide me any solution to resolve the problem.

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • "returning error page for JRun too busy or out of memory"

    Hello,
    I've got some trouble to update a ColdFusion linux based.
    We have already tried to update from ASPB11-04 and ASPB11-14 but we always have the folloing erreor message :
    "returning error page for JRun too busy or out of memory"
    We really need a solution ASAP. Thanks!
    Jeff

    Can you share the exception and application logs having the error entries.
    Regards,
    Anit Kumar

Maybe you are looking for

  • Reading Java files from a EAR file

    I want to read all Java files from a EAR file and from inner (inside EAR) EAR or WAR file with out unpacking. suppose "Demo.ear" contaions the following files: abc.java programs / a.java programs / b.java src / index.java src / com / myFolder / main.

  • [OIM 9.1.0.2] Attestation Process scheduled is not automatically running

    Hi Gurus, IHAC that noticed that some attestation processes have not been triggered in the specified scheduled time, . So the Attestation tasks are not displayed into specified Reviewer's inbox (To-Do List). There is a group responsible for creating

  • Error in JCo Connection creation

    Hi All, When I create a JCo connection on my local J2EE it fails with the error enclosed as below: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=frces4066 GROUP=PUBLIC R3N

  • LDAP security provider and web service authentication

    Background: we are currently developing web services to our existing weblogic application. Our users can configure user/password authentication in one of three ways: database, LDAP, or SSO. Setting SSO aside, we need to implement the same authenticat

  • The Sims 2 Expansion Packs and iMac Intels

    Hi everyone. I have The Sims 2, University, Pets and Open for Business and I have a question. I have downloaded the patches from Aspyr so I'm no longer getting the dreaded PowerPC question at the beginning... however, when I played the Sims on my PC,