Simple error page problem...

Can anyone help me here??
Please check if I am missing anything from this page
If called should run but it doesn't... Please help
<%@page contentType="text/html" isErrorPage='true'%>
<html>
<head><title>Error Page </title></head>
<body>
<h1>
Error Page
</h1>
<hr>
<h2>
Received the exception:<br>
<font color=red>
<%= exception.toString() %>
</font>
</h2>
<%--<jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
<%--<jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
</body>
</html>

Thks 4 your response..
What I mean here is that I have run an example of this error page before and have seen it work. But I have a different situation here in that I am calling the errorPage from a servlet and the first time it ran from a JSP. Here is the code that calls the errorPage. I will try your code as well and see if it makes a difference.
I've shown the error I receive below this section of code...
thisTask.setRequest(request);
Page nextPage = thisTask.doTask();
if(nextPage instanceof ErrorPage) {
request.setAttribute("javax.servlet.jsp.JspException",
((ErrorPage)nextPage).getException());
getServletContext().getRequestDispatcher("errorPage.jsp").forward(request, response);
else
getServletContext().getRequestDispatcher(nextPage.getPageName()).forward(request, response);
Here is the error response
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.lang.IllegalArgumentException: Path errorPage.jsp does not start with a "/" character
     at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:572)
     at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:174)
     at za.co.infowave.parking.Controller.processRequest(Controller.java:138)
     at za.co.infowave.parking.Controller.doPost(Controller.java:160)
     at j
and it goes on....

Similar Messages

  • Error-page problem with Tomcat 5.0.24

    I want to display an error page in case any exception is thrown by my JSF application.
    I configure the error page in the web.xml and run the application on Tomcat 5.0.24.
    When an error really happens while loading a jsf-page A the error page is not displayed. In IE i see just a blank page. When I check the source code it shows me some parts of the page A (javascript functions). So it actually never navigates to the error page.
    I tried to use jsf, simple jsp or even html pages as an error page - the same effect.
    And one more thing. When plain jsp-page throws an exception I see my error page all right. Also I see an exception stack trace in Tomcat console. When jsf-page throws an exception I don't see any exception information in the Tomcat console.
    Does anybody has an explanation to this? Can anybody recommend me any other way to watch for exceptions in a JSF-application?
    Any help will be appreciated.
    Slawa

    I resolved the problem.
    I had to increase the jsp-buffer size for the erroneous page. It looks like it started to load and when the error happened the container couldn't redirect to the error page.
    Thanks to jBoss which gives more log messages though is also based on tomcat.
    Slawa

  • Simple forward page problem

    Hi all,
    I have simple forward page , only jump to else part can any one please told me why?
    Thank you
        <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Empet Check</title>
    </head>
    <body>
    <%
       String name = request.getParameter("String");
       if (name != null){
       %>
          name is not null
         <jsp:forward page="ViruList1.jsp"/>
        <% }else { %>
    <jsp:forward page="Home.html"/>
    <% } %>
    </body>
    </html>
    <form name="formName" action="forward.jsp" method="post" >
    <input type="text" name="string" size="20">                               
                         <input type="submit" name="submit" value="Go"></td>

    got it

  • From error page to original page

    I have written a simple error page and now i want to place a resubmit button in it to take me back to the original jsp page from where the error was generated.
    any help will be appreciated

    Your problem is most likely that your error page is generic and you don't know what the previous page is going to be.
    In that case it's a question of how do you get to the error page. The page will have to know in some way what the previous page was and that's not going to be easy to fix. You would have to submit the pagename including the parameters to the error page before the user can be sent back, making sure that the page won't submit again when the user goes back to it.

  • How to disable HP Support Assistant error page in Internet Explorer

    I'm trying to see the actual cause for an error in Internet Explorer.  I know that you can uncheck "Show friendly HTTP messages" to remove the Microsoft "simple" error pages, but that doesn't seem to remove the HP Support Assistant error page.  How can I disable this "help"?

    Hi Patrick,
    I've created that example a couple of times and I've never seen this error.
    Have you checked the service marketplace for any notes regarding your SP-level?
    Other than that you should check the created layout in your view again. Check that you don't have a action defined in the handler "onEnter" in the input fields. According to the tutorial you should only have a action for the button UI element.
    Maybe try to create the view from scratch.
    Regards,
    Alex

  • ClientAbortException problem on error page

    Hi
    I am trying to solve the mistery that has been bugging me for a while now.
    We have the same J2EE app deployed on 4 servers. The application is for content management.
    One server is for development, one for QA, and other 2 for production. All servers have same hardware and same software installed. All servers rund the same J2EE SDK with Sun's App Server 8.1PE...
    Now, the mistery....I only get the follwoing exception on the 2 production serversThe error page works fine on other servers and it is the same JSP page on all servers....I cannot figure out why I am getting this error and what is the error supposed to mean..
    [#|2004-09-02T08:23:56.703-0400|SEVERE|sun-appserver-pe8.0|javax.enterprise.system.container.web|_Th
    readID=11;|org.apache.catalina.core.StandardHostValve@ce41cc: Exception Processing ErrorPage[errorCode=404, location=/error404.jsp]
    ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
            at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:421)
            at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:444)
            at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:363)
            at org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:345)
            at org.apache.coyote.tomcat5.CoyoteResponse.flushBuffer(CoyoteResponse.java:559)
            at org.apache.coyote.tomcat5.CoyoteResponseFacade$1.run(CoyoteResponseFacade.java:259)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.coyote.tomcat5.CoyoteResponseFacade.flushBuffer(CoyoteResponseFacade.java:254)
            at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:362)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:210)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
            at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:16
    6)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P
    rotocol.java:647)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
            at java.lang.Thread.run(Thread.java:534)
    |#]

    Hi. I am also same kind of problem. I ahve a simple JSP in my Struts 2 Application. Server used is weblogic. As soon as i click on the Calender Image. The Socket write erro is thrown. I a m not able to under stand as to why socket write error is happening, as inly a simple javascript function call happens on click of that image.
    JSP Cal code:
    value="<s:date name='remitFileSetup.effcvStartDt' format='MM/dd/yyyy'/>" size='10' maxlength='10'/><a id="Date1" href="#"><img onclick="javascript:callSelf('Date1','startdate','true','divMesReg1')" valign="bottom" src="<s:url value="/images/cal.gif"/>"
    method implementation:
    function call(cButton, cOutput, cSingle,divId) {
    var MA = [];
         //alert("HI 1");
         //to convert cSingle into boolean
         if(cSingle=='false')
         cSingle=false;
    else{
              cSingle=true;
    function closed(cal) {
    // here we'll write the output; this is only for example. You
    // will normally fill an input field or something with the dates.
    var el = document.getElementById(cOutput);
    // reset initial content.
    //el.innerHTML = "";
              if(cSingle==true) {
                   el.value="";
    // Reset the "MA", in case one triggers the calendar again.
    // CAREFUL! You don't want to do "MA = [];". We need to modify
    // the value of the current array, instead of creating a new one.
    // Calendar.setup is called only once! :-) So be careful.
    MA.length = 0;
    // walk the calendar's multiple dates selection hash
    for (var i in cal.multiple) {
    var d = cal.multiple;
    //alert("HI 2");
    // sometimes the date is not actually selected, that's why we need to check.
    if (d) {
    //this is to check that the newly selected date is not a repetition of of the date already
    // selected in the textbox
    var tempOlddate=trim(el.value);
    var flagTest="true";
    if(tempOlddate.indexOf(d.print("%m/%d/%Y"))==-1)
    var tmpoldDt=el.value;
         // OK, selected. Fill an input field. Or something. Just for example,
    // we will display all selected dates in the element having the id "output".
    var x=el.value;
    var y= x.substring(x.length-2,x.length);
    //alert(y);
    //alert("n"+y.indexOf("\n"));
    //alert("br"+y.indexOf("<br />"));
    if(trim(y)=="" )
         el.value +=d.print("%m/%d/%Y") + "<br />";
    else if(y.indexOf("\n")!= -1 )
         el.value +=d.print("%m/%d/%Y") + "<br />";
              else if(y.indexOf("/>")!=-1)
         el.value +=d.print("%m/%d/%Y") + "<br />";
              else{
         el.value +="<br />"+ d.print("%m/%d/%Y") + "<br />";
    // and push it in the "MA", in case one triggers the calendar again.
    MA[MA.length] = d;
         var vararray= new Array();
    var temp= el.value;
         vararray = temp.split("<br />");
         el.value="";
         for(i=0; i<vararray.length-1; i++) {
    el.value+=vararray[i];
    if(i < vararray.length) {
         el.value+="\n";
         if(cSingle==true) {
              if(vararray.length>2){
                   //alert('User cant select more than one date.');
                   document.getElementById(divId).style.display="inline";
                   el.value="";
         else {
              document.getElementById(divId).style.display="none";
    cal.hide();
    return true;
         //alert("HI 4");
    Calendar.setup({
    align : "BR",
    showOthers : true,
    multiple : MA, // pass the initial or computed array of multiple dates to be initially selected
    onClose : closed,
    button : cButton,
    singleMulti : cSingle
         //alert("HI 3");
    ERROR:
    org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54)
         at jsp_servlet.__404._jsp__tag4(__404.java:270)
         at jsp_servlet.__404._jspService(__404.java:135)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:530)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:710)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:559)
         at weblogic.servlet.FileServlet.findSource(FileServlet.java:265)
         at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:188)
         at weblogic.servlet.FileServlet.service(FileServlet.java:170)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at javawebparts.filter.AppAvailabilityFilter.doFilter(AppAvailabilityFilter.java:485)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

  • "Errors on page" with simple JSF page

    Hi
    I wrote a very simple JSF page as shown below. It works as is with MyFaces. Now I tried to make it work with Sun RI as well.
    Here's the problem: The page appears perfectly fine (it shows two columns of links). Only one single link works, though: the first one in the left column.
    When I click on that first link, the action handler method ("userClick") is called and executed fine.
    But when I click on any other link, the method is not called at all. All I get is an "error on page" message in the browser status bar. No log message on the command line or log file.
    Am I doing something wrong? With MyFaces it works fine.
    ===============================
    Here's the page:
    ===============================
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
         <f:loadBundle basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle" var="bundle" />
         <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
         <html>
              <head>
                   <title><h:outputText value="#{bundle.menu_frame}" /></title>
                   <link rel="stylesheet" href="style.css">
              </head>     
              <body>
                   <h:panelGrid border="1" columns="2" columnClasses="td">
                        <h:dataTable value="#{MenuBackingBean.menuTabItems}" border="0" var="menuTabItem" >
                             <h:column>
                                  <h:form>
                                       <h:commandLink action="#{MenuBackingBean.userClick}" >
                                            <h:outputText value="#{menuTabItem.itemName}" />
                                            <f:param name="itemID" value="#{menuTabItem.itemID}" />
                                       </h:commandLink>
                                  </h:form>
                             </h:column>
                        </h:dataTable>
                        <h:dataTable value="#{MenuBackingBean.menuItems}" border="0" var="menuItem" >
                             <h:column>
                                  <h:form>
                                       <h:commandLink action="#{MenuBackingBean.userClick}" >
                                            <h:outputText value="#{menuItem.itemName}" />
                                            <f:param name="itemID" value="#{menuItem.itemID}" />
                                       </h:commandLink>
                                  </h:form>
                             </h:column>
                        </h:dataTable>
                   </h:panelGrid>
              </body>
         </html>
    </f:view>
    ==================================
    Here's the faces-config
    ==================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config >
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
                   <supported-locale>en</supported-locale>
                   <supported-locale>de</supported-locale>
              </locale-config>
              <message-bundle>ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle</message-bundle>
         </application>
         <managed-bean>
              <managed-bean-name>DetailsBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.DetailsBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>MenuBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.MenuBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>ContentBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.ContentBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/menu.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showDetails</from-outcome>
                   <to-view-id>/details.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>menu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/details.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showMenu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>showContent</from-outcome>
                   <to-view-id>/content.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/content.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showMenu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>
    =======================================
    I don't think I need to show the backing bean with the userClick() method since the error is that this method is not even called (I added a system.out.println() to this method - which is never executed)
    So the problem must be before
    BTW I am using Sun RI 1.1.01 as shipped with the MyEclipseIDE extensions.
    Thanks a lot for your very much appreciated help
    scrut

    The problem is that you have two forms. Put a single form.

  • I just switched to FF3.6.4 from IE. While my gmail pulls up fine, the Calendar does not load. I get an error page telling me that I need to enable cookies, but they are enabled. On the google website other people are documenting this problem as well.

    I am having this problem on Windows 7 running Firefox 3.6.6. Gmail opens fine, but when I click calendar I get an error page open in a new tab which says:
    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    Hello Wyodor,
    thanks for your reply on my question.
    You are wright the index file is 308 KB.
    And offcourse that I delete my files and documents is not an Iweb problem, but because my English is not that good, that I thougt I try to tell the whole story, and hope people can read trough the lines.
    Why I didn't use Iweb to upload to the server is because the server company recommanded to use file zilla. And I am a nobody with this kind of things, so I did exactly what they tell me to do.
    No, i did not make a backup of Iweb and the domain file, but reading other messages on this forum showed me that I can maybe try to make empty the cashfile (?)
    and otherwise I have bad luck and have to make my website again. Offcourse I have a lot of examples from all the pages (copied from the local map to my USB stick) and my website is aprox. 15 Mb, (not so big) so it will cost me a few nigths.
    But I'm still hoping on a miracle :-)
    greetings Lasource

  • Problem in Jsp Error page mechanism

    Hi every body,
    In my Jsp application I do some processing within scriplet tags. I have defined a error page using a page directive and I have defined my Error page separately. When there is an exception in a Jsp page, some times it calls the error page properly and displays it. But curiously in some occasions when there is an exception it doesn't call the error page, instead it includes the content of the Error page at the end of the same page, where the exception occurred. The web server is jakarta-tomcat-3.2.1. Can any one who has a idea about this problem help me. Your help is greatly appreciated.
    Thank you

    Hi there!
    Well I was having the same problem as yours until I realized what was going on: the jsp writer has a small buffer size (by default 8kb) and that is why it flushes some html before displaying the error page. The jsp writer buffer is full before getting the exception, so it flushes the buffer and keeps on writing until the exception is thrown. Then the jsp writer writes the error page code...
    You have to add some new parameters in your page directive: autoFlush(true or false) and buffer="16kb" (as much kbytes as you want). For example,
    <%@page autoFlush="false" buffer="sizekb".... %>
    If autoFlush="false", the jsp writer has not finished and the buffer is full an exception will be thrown.
    If autoFlush="true" and the buffer is full it will flush the buffer and so on.
    In both cases, if the buffer size is big enough the error jsp page will be the only displayed
    Good luck!
    Inaki

  • 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

  • Problem accessing exception object in jsp error page - Apache Tomcat 5.0.25

    Hi all,
    I'm thoroughly confused and need some help. I've deployed a very simple web application in Apache Tomcat 5.0.25 to test exception handling - errortest.jsp and error.jsp. errortest.jsp throws a divide by zero exception if executed with default values in text fields.
    When I put the directive IsErrorPage="true" in error.jsp i get a HTTP 500 error when error.jsp is accessed. If I remove it error.jsp is displayed but I cant access the exception object - if I try to I get an exception below:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /error.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    E:\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\mywebapp\org\apache\jsp\error_jsp.java:46: cannot resolve symbol
    symbol : variable exception
    location: class org.apache.jsp.error_jsp
    out.print(exception.getMessage());
    ^
    1 error
    Below is the code for the two jsp pages:
    errortest.jsp:
    <%@ page errorPage="error.jsp" %>
    <html>
    <head><title>Error test</title></head>
    <body>     
         <form action="errortest.jsp" method="post">
         Enter first number:<input type="text" name="first" value="5"/><br>
         Enter second number:<input type="text" name="second" value="0"/><br>
         <input type="submit"/>
         </form>
         <%
         if (request.getMethod().equals("POST")) {
              int first = Integer.parseInt( request.getParameter( "first" ) );
              int second = Integer.parseInt( request.getParameter( "second" ) );
              int answer = first/second;
         %>
    </body>
    </html>
    NB: I am able to catch and display the exception if I use a try/catch block around the division as shown below.
    try {
    int answer = first/second;
    } catch( Exception e) {
    e.printStackTrace( new PrintWriter(out) );
    error.jsp (first draft)
    NB: HTTP 500 error occurs when directive "isErrorPage" is added:
    <%@ page isErrorPage="true" %>
    <html>
    <head><title>Error Page</title></head>
    <body>
    </body>
    </html>
    error.jsp (second draft)
    NB: directive is removed but exception thrown when implicit exception object is accessed. error.jsp displays if exception object is not accessed:
    <%@ page %>
    <html>
    <head><title>Error Page</title></head>
    <body>
    <%=exception.getMessage()%>
    </body>
    </html>
    Web server specs:
    Apache Tomcat 5.0.25
    Machine specs:
    Windows XP Pro
    Java environments:
    j2sdk1.4.2_03
    J2EE 1.4

    This works for me:
    throwError.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page language="java" errorPage="/error.jsp"
    contentType="text/html; charset=utf-8" %>
    <html>
    <head>
         <title>Throw Exception</title>
    </head>
    <body>
    Throwing exception....
    <%
    // throw ArithmeticException
    int badInt = 12/0;
    %>
    </body>
    </html>
    error.jsp
    <%@ page language="java" isErrorPage="true" %>
    <head><title>Doh!</title></head>
    An Error has occurred in this application.
    <% if (exception != null) { %>
    <pre><% exception.printStackTrace(new java.io.PrintWriter(out)); %></pre>
    <% } else { %>
    Please check your log files for further information.
    <% } %>

  • In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:  "An error occured [sic] while trying to access the service."  Nothing on any of the community forums has helped in any way.  I have downloa

    In attempting to export a simple 1-page PDF file to Microsoft Word, I incessantly get the following error message:
    "An error occured [sic] while trying to access the service." 
    Nothing on any of the community forums has helped in any way. 
    I have downloaded a free trial of Acrobat XI Pro  --  and that too makes no difference.

      while trying to access the service." 
    That'd be associated with trying to connect to the server(s) for one of the Adobe online subscription services.
    (Edit PDF or PDF Pack)
    These online services are separate and independent of the desktop application Acrobat.
    It appears that you have had / are having internet connection issues.
    Be well...

  • Problems with jsp-error page in web.xml

    Hello everybody, I have a confusing problem concerning the use of jsps as error pages for 404-errors.
    I inserted the following lines in my web.xml file:
    <error-page>
    <error-code>404</error-code>
    <location>/personal404.jsp</location>
    </error-page>
    The problem is: when an 404 occurs, instead of showin the personal404.jsp, the browser tells me that it tries to download a file which it can't (it tries to download the mis-spelled file). When I try to redirect the 404 to a static html-page, as in
    <error-page>
    <error-code>404</error-code>
    <location>/personal404.html</location>
    </error-page>
    everything works fine.
    Please, does anybody have any idea or suggestion, what I am doing wrong?
    Thanks in advance,
    Sebastian

    Hi Ivan,
    I tried it, but there wasn't any difference.
    I'll try to explain in more detail what happens:
    Imagine my application has the following root-path
    http://myServerName:port/mainRoot/
    When I try the following URL:
    http://myServerName:port/mainRoot/pageThatDoesNotExist.jsp, the browser tells me, it tries to download the file pageThatDoesNotExist.jsp from myServerName and that it can't find that file.
    The same happens, when I type http://myServerName:port/mainRoot/pathThatDoesNotExist/pageThatDOESExist.jsp, except that the browser tries to download the file pageThatDOESExist.jsp which (again) it can't.
    I have located the files 404.jsp and 404.html in the same directory, so I don't think this is a path-related problem, because everything works fine, when I specify the 404.html as the target error page (i.e. the browser displays the 404.html when I type the URLs shown above).
    I don't know if I'm making this clear, but maybe you get the idea.
    Sebastian

  • Problems with error-page in web.xml and page caching

    Having a few problems with error pages and web.xml with browsers caching the error pages and strange errors coming out of weblogic.servlet.intenal.WebAppServletContext
    I'm trying to set a web app up so that all http errors and all exceptions are routed thruogh predefined resources. For now, I'm simply send 400 errors to 400.html and the ServletException, IOException and RuntimeException to respective html pages.
    What I'm finding is that the error codes work fine but the exceptions are only be routed to the correct error page for the first call to the servlet after server restart.
    So for example, I have my servlet throwing a ServletException as a test case. The weblogic server log shows that ServletException is thrown, and the correct error page for ServletExceptions is shown.
    If I change the Servlet code to throw IOException in place of SevletException, the weblogic.log shows that IOExceptyion is being thrown (so the servlet has deployed successfully), however the Servletxception error page is shown on the browser.
    I'm using IE6 and I've changed the setting such that a new page is requested every time using the tools-internet options-temp internet files-settings option to "check for new versions of stored pages: Every visit to the page".
    Despite this, the servlet exception error page still appears.
    If you clear the cache from the temp intenet files->delete files IE option, the correct errror page will be shown so it appears that the browser cache is being used after all.
    everytime I delete the temp intenet files I get the correct error page on the first request after but then not after that.
    I have implemented the service method for this test to throw the exceptions - does this make a differecne?
    As a test, I have moved the imlpementation to the doGet method instead bu I now get a strange eror from weblogic comlpaining about an arrayOutOfBoundsException because eror codes in the web.xml are not supported! - see error above.
    Any help is appreciated

    After further investigation: -
    There are no problems with error pages based on error codes, only error exceptions.
    As a test case, I have a service method in a servlet throwing either one of the three exception types that servlets can throw (Runtime, Servlet & IO) the following rules apply. The exception to be thrown is hardcoded and is changed and the web app rebuilt each time. The correct web.xml has been deployed to the app server (checked through console). the webapp is being redeployed correctly - this can be seen in the weblogic log, where the correct exception is reported.
    I am using WLS 8.1, Servlet 2.3, JDK 1.4.1_02
    In all cases, the weblogic log reports that the servlet is throwing the exception as expected.
    Despite having set error-page for exception javax.servlet.ServletException, the exceptions are diverted to the error page that has been set up for http error code 500
    The error page for ServletException is therefore never reached.
    I have the browser set to request pages every time it is asked.
    Once the servlet has thrown an IOException, the only way to get the browser to report an IO or Runtime exception error-page is to clear the browser cache. Restarting the server has no effect.
    Once the servlet has responded with ANY exception, it is not possible to get it to report a ServletException (which is incorrectly reported as a 500 anyway) unless the cache is cleared. Restarting the server has no effect.
    In the case where the servlet throws ServletException, it has no root exception. The servlet 2.3 spec states that if ServletException is thrown but cannot be found in the error pages, the root excpetion will be extracted and the error page list traversed again. Knowing that the RuntimeException error page is correct shown when RuntimeException is throwm, I have nested this inside the ServletException, however error page for http error 500 is still shown.
    I don't believe this is a WLS 8.1 problem, as the console shows that the correct exception is thrown each time. this is backed up by the fact that the correct exception page is thrown when the cache is cleared regardless of what exception was previousdly thrown by the servlet. This excludes ServletException which is always incorrectly thrown as a 500.

  • Error Page in JSP Having Problems.

    Hi all,
    I am having some issues with error pages in JSP.
    I am trying to display one simple error image when my JSP is having any kind of error, let’s say when it throws any exception. Here goes the code…
    throwError.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ page errorPage="errorPage.jsp"  %>
    <html>
    <body>
    Hello All,
    <%! int x = 12/0; %>
    </body>
    </html>errorPage.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ page isErrorPage="true" %>
    <html>
    <body>
    <img src="error.jpg" height="100" width="100">
    </body>
    </html>web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" 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">
         <error-page>
         <error-code>500</error-code>
         <location>/errorPage.jsp</location>
         </error-page>
         <error-page>
         <exception-type>java.lang.ArithmeticException</exception-type>
         <location>/errorPage.jsp</location>
         </error-page>
    </web-app>Please see if you can help…
    Currently when I run the throwError.jsp in Eclipse, nothing happens. It shows "500 Internal server error". But the error.jpg doesn't appear on browser. I have copied the error.jpg properly in the WebContent folder of the Web App root.
    Thanks much...
    Goldest

    Raghu,
    You need to fix your syntax:
    <%=someObje.getNo()>
    not
    <=someObje.getNo()>
    Your concept of how to use error.jsp seems correct.
    --BobC                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Visual Voicemail on Unity 7

    Hi everyone! I'm a bit lost with this issue: I'm deploying Cisco Mobile (with CUMA 7.0 and CUCM 7.1.5) on some BB phones, I can get connection to voicemail and see the messages but when I play them just hear like a noise during the time that message

  • 2760 purchased in USA doesn't work in Australia

    I purchased a new 2760 from a Nokia dealer last month and was able to use my Telstra SIM card in it in the USA, but when I arrived back in Australia, I get no signal from Telstra. I transferred the SIM card to an older phone and that worked so there

  • ME21N ( BADI OR USEREXIT )

    HAI ALL, please help me for me21n ( validations ) .system should not allow preparation of purchase order for a plant which is not assigned to company code Ex:company code 2000 and plant is 2010 it is correct.      company code 2000 and plant is 2020

  • File conflict, libgl-dr: /usr/lib/libGL.so.1

    I am trying to upgrade xorg but whenever I pacman -S xorg, I get the following error error: the following file conflicts were found: libgl-dri: /usr/lib/libGL.so.1: exists in filesystem I was wondering if anyone new how to fix this problem. Thanks

  • 802.1X EAP-TLS User Certificate Errors

    I'm trying to implement 802.1x using EAP-TLS to authenticate our wireless users/clients (Windows 7 computers).  I did a fair amount of research on how to implement this solution and everything seems to work fine when authentication mode is set to: Co