Error-page encoding problem

Hi all!
I use AppServerPE9.0 and i need to custom error page
web.xml:
    <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/error.jsp</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/error403.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/error404.jsp</location>
    </error-page>
...Both error403.jsp and error404.jsp pages correctly showing UTF-8 symbols, but error.jsp:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<jsp:include page="jspf/header.jsp" />
<b>&#1054;&#1096;&#1080;&#1073;&#1082;&#1072;:</b><br />
<%=((Throwable)request.getAttribute("javax.servlet.error.exception")).toString()%><br />
<button onclick="goback()">&#1053;&#1072;&#1079;&#1072;&#1076;</button>
<jsp:include page="jspf/footer.jsp" />Show '?' signes instead russian symbols.
How to fix it?

Where do you see that error?<br />
Can you post a link?
Did you try to clear the cache?
*Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
*https://support.mozilla.org/kb/Clear+Recent+History
What is the value of the <b>network.http.accept-encoding</b> on the <b>about:config</b> page?
*http://kb.mozillazine.org/about:config

Similar Messages

  • 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

  • Error page option OPEN IN NEW WINDOWS Iview

    hi
    I have a problem
    all iviews in the portal have the option OPEN IN NEW WINDOWS this works from inside when connect from intranet works,  
    but when connect to the portal from internet the functionality OPEN IN NEW WINDOWS
    gives me an error page when the new windows appear
    please somebody can help me.
    thanks.

    hi Tal
    this is the error page javaScript
    Problem whit this web page might prevent it from being displayed properly
    or functioning properly in the future  you can display this message by
    double-clicking the warning icon displayed in the status bar.
    code:0
    URL: https:/180.3.62.44:444/irj/servlet/prt/portal/prtroot/pcd!
         3aportal_content!2fcom.ars.platacom.ars_plataforma!
         2froles.roles!2ffuerza_de_venta!2ffv!
         aplicaciones_panel!2aplicaciones?
         windows=WID1218761598182
    thanks for the help.

  • Tomcat, custom error page, sendError and encoding problems

    Hi All!
    I have the following code in my index.jsp page:
    <%
        if(hasParent && !imageStore.contains(parent))
            response.sendError(404, "Requested image with id=" + parent + " was not found on this server");
            return;
    %>following in the web.xml:
    <error-page>
        <error-code>404</error-code>
        <location>/404.jsp</location>
    </error-page>Both pages (index.jsp and 404.jsp) are windows-1251 encoded:
    <%@page contentType="text/html; charset=windows-1251"%>But I have an issue: all non-latin characters are mangled when 404.jsp displayed as the result of calling response.sendError.
    I mean, if I open myserver.com/404.jsp or myserver.com/non-existing-document-la-la-la, everything is okay. But when I open myserver.com/index.jsp?parent=123 it calls response.sendError - text is mangled.
    What's even more bizarre, Tomcat sends the right encoding in the response headers, but with ? instead non-latin characters:
    HTTP request sent, awaiting response...
    1 HTTP/1.1 404 Requested image with id=1231231 was not found on this server
    2 Content-Type: text/html;charset=windows-1251
    3 Date: Sat, 16 Sep 2006 18:14:27 GMT
    4 Server: Apache-Coyote/1.1
    5 Connection: Keep-Alive
    22:14:27 ERROR 404: Requested image with id=1231231 was not found on this server
    .I am using Apache Tomcat/5.0.28.
    I understand that this issue is not trivial, but I would appreciate any ideas.

    Hi All!
    I have the following code in my index.jsp page:
    <%
        if(hasParent && !imageStore.contains(parent))
            response.sendError(404, "Requested image with id=" + parent + " was not found on this server");
            return;
    %>following in the web.xml:
    <error-page>
        <error-code>404</error-code>
        <location>/404.jsp</location>
    </error-page>Both pages (index.jsp and 404.jsp) are windows-1251 encoded:
    <%@page contentType="text/html; charset=windows-1251"%>But I have an issue: all non-latin characters are mangled when 404.jsp displayed as the result of calling response.sendError.
    I mean, if I open myserver.com/404.jsp or myserver.com/non-existing-document-la-la-la, everything is okay. But when I open myserver.com/index.jsp?parent=123 it calls response.sendError - text is mangled.
    What's even more bizarre, Tomcat sends the right encoding in the response headers, but with ? instead non-latin characters:
    HTTP request sent, awaiting response...
    1 HTTP/1.1 404 Requested image with id=1231231 was not found on this server
    2 Content-Type: text/html;charset=windows-1251
    3 Date: Sat, 16 Sep 2006 18:14:27 GMT
    4 Server: Apache-Coyote/1.1
    5 Connection: Keep-Alive
    22:14:27 ERROR 404: Requested image with id=1231231 was not found on this server
    .I am using Apache Tomcat/5.0.28.
    I understand that this issue is not trivial, but I would appreciate any ideas.

  • 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

  • I got this warning when i open a specific page on my website in IE : MuseJSAssert: Error calling selector function:Error: A security problem occurred.

    Hi,
    I found out when i'm in IE and go to the page 'Artists'
    and i click on a name, for example: 'Abel Equipe ELA/I Gomes'
    I get this warning :
    MuseJSAssert: Error calling selector function:Error: A security problem occurred.
    This is only in IE, not when i use Safari or Chrome
    this is the website link
    Any ideas how to solve this problem?

    There's an invalid hyperlink on the Abel Equipe ELA/I Gomes page on a bit of text that reads "with your input." You need to find this text within Muse, clear the hyperlink and enter a valid one.

  • 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

  • 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

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

  • 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

  • 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                                                                                                                                                                                                                                                                                                   

  • Error processing a page. Problem reading document (110)

    This occurring following error message when opening a PDF file:
    "Error processing a page. Problem reading document (110)"
    Does anyone have any suggestions?

    When I encountered an error "there was a problem reading this document 110" in Acrobat Pro 11 on 28.7 MB CS6 file, it indeed was very frustrating.
    I solved my problem, but since I don't know which step benefitted me, I've to enumerate all the steps I took:
    Read below:
    1.1. I could copy the file anywhere on the drive, but couldn't 'save as' from Acrobat Pro.
    1.2. No document security was applied of any sort on the file.
    1.3. Still in the first tab of the document properties, all details under advance section were empty. No 'PDF Version' 'location' 'file size' etc were populated. Nothing.
    1.4. I couldn't change and save anything in any of property dialogue. I could comment on the text, but as soon as I tried to save, it gave an error (some sort of 'File reading' error).
    1.5. When I tried to extract a page (I tried many), it gave 'reading error'.
    1.6. I didn't try 'splitting error'. Since I was 100% sure, it'll give me same reading error.
    1.7. I opened the file in Firefox and tried saving it as pdf from there. But no error, but no save either.
    1.8. I ran 'Remove Hidden Information' from protection panel without any errors.
    1.9. I tried 'sanitize document' from the same tab, but didn't succeed.
    1.10. Then (here I think the problem was resolved), from Document Processing panel, I did some commands. 1st, 'Export all images', successfully. Then 'Remove all links', it found 0.
    1.11. Then in 'print production' panel, I clicked/tried to open acrobat distiller. The same opened, did some processing. But I don't know if it did something in solving the problem or not.
    1.12. Although I think my problem was resolved till now, but the last step I did was 'Saved As' the file (from the file menu) as a .ps file. Though I've not yet reopened/used that ps file (to convert it into a pdf file again). But around here I wanted to close the file and it asked me whether I wanted to save the file, I said yes. And it saved the file correctly. And I checked that in properties dialogue, the missing information was populated too.
    1.13. Sorry for so lengthy instructions, but I had no choice.

  • JHeadStart Security problem-error page cannot be found- role based security

    JHeadStart Security problem-error page cannot be found- role based security
    Good morning! How are you? I would need some help in a jheadstart 10.1.3.2 security case and I was wondering if you could give me a hand to go on. I create the Model project with tables of oe schema. Then in JHeadStart to perform security I follow the following steps: In ViewController/WEB-INF/web.xml – properties I do the following: login configuration: http basic authentication rfc 7617: realm:jazn.com
    Security roles : I define two roles: customer and administrator , Security Constraints: web_resources: All_pages, Url Patterns: faces/*. Then in Tools/Embedded OC4J Preferences/Global/Authentication JAZN/Realms/jazn.com/users: I define two users c1, password c1 and a1,password a1, roles/member users/ I attribute the roles to the relevant users c1—customer and a1—administrator. Then in application definition editor on service level I define security/use role based authorization=true , authorization type: JAAS and when access denied go to next group=true. On group level e.g.: ProductInformation: Authorization/Authorized Roles Permissions: administrator.On item level : Orders/Items/OrderTotal/Operations/Update Allowed: #{jhsUserRoles['administrator']},Then I generate the pages (run the jag) . The generation is completed successfully but when I run the View Controller project a “the website declined to show this webpage…(page cannot be found)’ is displayed. What should I do? I would appreciate it if you would help me on this issue! Thank you very much.

    Thand you very much for your reply! Unfortunately there is a specific restriction-convention in the project I work in. I am supposed to perform role based security with my own tables and no by the jheadstart’s ones. Could you find out what is my fault with the steps I follow trying to perform the process?
    To remind you my steps I paste the following again:
    JHeadStart Security problem-error page cannot be found- role based security
    Good morning! How are you? I would need some help in a jheadstart 10.1.3.2 security case and I was wondering if you could give me a hand to go on. I create the Model project with tables of oe schema. Then in JHeadStart to perform security I follow the following steps: In ViewController/WEB-INF/web.xml – properties I do the following: login configuration: http basic authentication rfc 7617: realm:jazn.com
    Security roles : I define two roles: customer and administrator , Security Constraints: web_resources: All_pages, Url Patterns: faces/*. Then in Tools/Embedded OC4J Preferences/Global/Authentication JAZN/Realms/jazn.com/users: I define two users c1, password c1 and a1,password a1, roles/member users/ I attribute the roles to the relevant users c1—customer and a1—administrator. Then in application definition editor on service level I define security/use role based authorization=true , authorization type: JAAS and when access denied go to next group=true. On group level e.g.: ProductInformation: Authorization/Authorized Roles Permissions: administrator.On item level : Orders/Items/OrderTotal/Operations/Update Allowed: #{jhsUserRoles['administrator']},Then I generate the pages (run the jag) . The generation is completed successfully but when I run the View Controller project a “the website declined to show this webpage…(page cannot be found)’ is displayed. What should I do? I would appreciate it if you would help me on this issue! Thank you very much.

  • Problems with the tag error-page in web.xml

    hi all, here is my code in my web.xml:
    <error-page>
    <exception-type>java.sql.SQLException</exception-type>
    <location>/ex.html</location>
    </error-page>
    it seems not to work, because my JavaBean where its the code to connect to my database and execute a query has an error i made it at purpose to see if the error page works, my JavaBean reports an error: column name not valid but the error-page didn�t work, i use a servlet which instantiates my JavaBean and then my servlet redirects to a JSP, obviouslly if an error occurs my servlet didnt redirect to any place, here is the code into my JavaBean, if anyone could help me i really appreciate it...
    public BeanLista seleccionaCliente()
    int nBandera = 0;
    BeanList lp = new BeanList();
    String cadena = "SELECT CODCLI, APEPATI FROM TESO.CLIENTE WHERE CODCLI like '2001120%' ";
    try
    context = new InitialContext();
    pool = (DataSource)context.lookup("jdbc/PRUEBADS");
    catch (NamingException ne)
    ne.printStackTrace();
    System.out.println("No se ha podido efectuar el Pool de Conexiones");
    try
    cc = pool.getConnection();
    ResultSet rs = cc.createStatement().executeQuery(cadena);
    cc.close();
    while(rs.next())
    BeanPrueba bp = new BeanPrueba();
    bp.setCodcli(rs.getString(1));
    bp.setApepat(rs.getString(2));
    lp.add(bp);
    return lp;
    }catch(SQLException sql){
    System.out.println("A ocurrido un error de SQL");
    System.out.println("Error de SQl capturado como : "+sql.getMessage());
    //sql.printStackTrace();
    return lp;
    }

    Can it be because you are catching your exception? Why don't you try throwing the same exception in the catch block and let the server handle it for you.
    Just a guess... Hope it works.
    VM

Maybe you are looking for