Errorpage

If we don't put try-catch statement in a JSP file, we will be automatically forwarded to the errorpage when an exception occurs.
How do I pass a parameter along with it? Specifically, I want to pass URL name of the original page so that the errorpage will know where the exception occurs? How do I do that?

You will have access to the request attributes for the request that led up to the error. You can use the request object to place attributes if necessary BEFORE executing your code, so that if there is an exception, the value will be available.
Otherwise, you need to throw exceptions from your code that contains information about where you were when the error happened. Custom exception classes are preferrable for this situation.

Similar Messages

  • Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic

              Hi,
              We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
              We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
              If anyone knows how this can be solved, it would be of great help
              Regards,
              Krish
              

    How did you configure the obj.conf file? proxy by mime type or ppath? It
              seems errorPage.jsp was not proxyed and treated as a unknown mime type.
              Krishnaraja <[email protected]> wrote in message
              news:3a372d79$[email protected]..
              >
              > Hi,
              >
              > We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
              application server on different solaris machines. We have put our JSPs in
              the weblogic application server and proxy the requests from iplanet to
              weblogic.
              >
              > We are facing a problem with the errorPage in the 'Page Directive' tag of
              the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
              directive tag. If we directly access the JSP from the WebLogic, and there is
              an system error, the error page specified in the JSP is getting displayed.
              But if we access the JSP from iPlanet and there is an system error, instead
              of displaying the error page, iPlanet is asking whether we want to download
              the file. If we say yes it downloads the actual JSP code itself. We have
              defined the mime types in obj.conf file as well as mime.types for the
              iPlanet.
              >
              > If anyone knows how this can be solved, it would be of great help
              >
              > Regards,
              > Krish
              

  • 404 error when hit submit from php file for requested path E:\vise\jqproject\web\errorpages\403_error.htm

    I have a php script that when I hit submit, it submits the form to another php file with a get command.  This worked about a month ago, but this month it's having issues.  This is what the relevant code looks like in the table php file. Running
    table.php shows the table in the browser and has 404 errors when I hit submit.
    table.php:
        <body>  
            <h1> Visual Evaluation Entry Table </h1>
            <form method="get" action="visEupload.php">
        <table id="bigTable" border="1">
            <thead>
             <tr>
               <!--<th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>-->
             <th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>
             </tr>
            </thead>
            <tbody>
                <tr name="MCBands" id="9214">
                    <!--<td><input name="Yevaluation" ></td>  //Row 0 Column 1-->
                    <!--<td><input name="Mevaluation" ></td>  //Row 0 Column 2-->
                    <!--<td><input name="Cevaluation" ></td>  //Row 0 Column 3-->
                    <!--<td><input name="Kevaluation" ></td>  //Row 0 Column 4-->
                    <!--<td><input name="comment" ></td>  //Row 0 Column 4-->
                    <td><input name="bandY" ></td>  <!--//Row 0 Column 1-->
                    <td><input name="bandM" ></td> <!-- //Row 0 Column 2-->
                    <td><input name="bandC" ></td> <!-- //Row 0 Column 3-->
                    <td><input name="bandK" ></td><!--  //Row 0 Column 4-->
                    <td><input name="comment" ></td>
                </tr>
            </tbody>
        </table>
          <input id="submit" type="submit" class="list" name="submit" value="Submit To Database" >  
           <!--maybe move all php part to other file-->
           </form>
        </body>
    The server is mapped so when we run it off of the server, we use the server ip address and my file name and skip the rest of the path, which works fine with the table.php file, so that mapping appears correct.  When I run it off of the server (from my
    desk) and hit submit it gives me a 404 file or directory not found.  When I run it locally on the server, it's saying it can't find the file name, but it says the requested url is `http://localhost:80/errorpages/403_error.html.`  Physical path: E:\vise\jqproject\web\errorpages\403_error.html. 
    The error message says the notification is from the MapRequestHandler of Module IIS Web Core. I'm not sure why the requested url/path isn't referring to visEupload.php.
    (Running on the server) When I change the action in the table.php get to include the IP address, it's behaving weirdly:
    Module IIS Web Core Notification MapRequestHandler Handler PHP53_via_FastCGI, Requested URL `
        http://localhost:80/13.141.xxx.xx/visEupload.php?bandy=xx&bandM=xx&bandc=hj&bandk=xx&comment=xx&submit=submit+to+database
    physical path shows as E:\visE\jqproject\web\13.141.xxx.xx\visEupload.php
    Login Method and user Anonymous.
    When I change the url to just be
        localhost/viseUpload.php
    it's getting HTTP Error 404 not found.  Any ideas why it's not finding the visEupload.php file?  It has the correct .php extension.  In file properties it's a type php file with name visEupload.php.  
    I took a look at
    [404 error][1] but I see my "allowUnlisted="true" in applicationHost.config. I'm not using sitefinity, though. 
    I'm not sure if something got over-written when we did a server windows update.  
    I know we were having a problem with get and post a couple months ago and we had to add them to the IIS Manager Handler Mappings somewhere, but don't remember where we added them to check.  Since I tried directly accessing the visEupload.php without any
    get (and commented out get code in the file) it should have worked if that was the issue.
    We are running server 2008 R2 and I'm not sure which version of IIS it is.
    In case it matters, this is the contents of the visEupload.php:
        <!DOCTYPE html>
        <html lang="en" >
        <head>
        <meta charset="utf-8" />
            <title>Big Table</title>
        </head>
        <body>
        <?php
            require_once( "../classes/class.OLAPdatabase.php");
            require_once( "../common/Session.php");
            $OLAPdb = new OLAPdatabase;
              handling of the get part is commented out
           ?>
        </body>
    All I can think of is that when I access visEupload.php it's running from the get/action in table.php.  This might be a different user running in the system.  I tried changing visEupload.php file properties to have full control for IUSR and Internet
    Guest Account.  It already has full control for System, and me.  Users have read & exeture and read permissions. Or maybe it's something that has to do with how the directory is mapped out.  I'm not sure what could be affecting this, and
    why the message said it can't find the path to 403_error.html.
      [1]: http://www.sitefinity.com/developer-network/forums/bugs-issues-/server-error-404---file-or-directory-not-found
    Michele Cleary

    Hello,
    for IIS question better ask in http://forums.iis.net/
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

  • If there is an error in jsp, will it be redirected or included to errorpage

    If we give errorpage attribute in page directive, and if any runtime error occurs in the jsp page, will it be redirected, forwarded to errorpage or errorpage will be included here?
    Thanks
    m_nekkanti

    definitely NOT redirected.
    If the response has not been committed as yet, then it should do a forward (ie cancel output to date, and just display error page)
    Else if the page has been committed (flushed, or has overrun buffer) then does an includes the error page rather than forwarding.
    Basically, something like this:
    try{
       getRequestDispatcher("/error.jsp").forward(request, response)
    catch (IllegalStateException e){
      // if we cannot forward, then include the error page.
      getRequestDispatcher("/error.jsp").include(request, response);
    }

  • Urgent help needed in redirecting to ErrorPage in case of jsp runtime error

    Hi,
    I have two problems in Portal. I am working with sturts portlets.
    1) Some times I am getting No Provider session Error . I know that struts renderer always needs session. In my provider.xml file I changed the session attribute to true.
    <session>true</session>
    and In my provider Login Frequency is also set to "Once Per User Session" I want to get rid of this error permanently.
    2) Another problem i am facing is handling errors in Jsps (Like some compilation errors in that jsp or runtime jsp exception) I would like to forward to the errorpage. Can I do with
    <%@page errorPage="myErrorPage.jsp" %> in every jsp?
    Currently I am getting the following error if anything goes wrong in the jsp.
    ???: ??????????????????: 500 Internal Server Error
    In that case I would like to forward to an error page. It is not happening now.
    How will get the path to that jsp? Is PortletRenderRequest can be used?
    Any suggestions?
    Thanks,
    Reddi

    Could you post more details perhaps? Eg. the complete files.
    Also, I would recommend that you consider using the runtime include, <jsp:include ...>, and put your variables in the request scope.

  • Mod_wl.so apache bridge ErrorPage setup

    Hi
    I am using a WebLogic 5.1 server with apache 1.3.14 in front running on a
    solaris machine. Now i want to set the ErrorPage when the weblogic bridge
    fails. I checked in the documentation
    http://www.weblogic.com/docs51/admindocs/apache_bridge.html that it should
    be done with a ErrorPage entry in the http.conf file. I tried this, but it
    redirects to a white page and nothing happends in the client.
    It seems like the web browser receives a 302, but is redirected to a unknown
    page.
    Here is a snipp from my apache conf file:
    <------------------------------------------------
    LoadModule weblogic_module libexec/mod_wl.so
    AddModule mod_weblogic.c
    # Set the default to weblogic
    <Location />
    SetHandler weblogic-handler
    ErrorPage http://java.sun.com
    </Location>
    # Let all the static content be handled by apache
    <Location ~
    "\.(mp3|gif|jpeg|jpg|png|css|js|html|htm|swf|wav|wbmp|ota|otb|wml)$">
    SetHandler default-handler
    </Location>
    # Configure where weblogic is running
    <IfModule mod_weblogic.c>
    WebLogicHost localhost
    WebLogicPort 7002
    DebugConfigInfo OFF
    </IfModule>
    ----------------------------------------------->
    Can anyone help me ?
    Thanks in advance.
    Regards
    -Ståle Tomten

    Hi
    This bug was fixed when i upgraded mod_wl.so to service pack 12.
    This works fine now.
    regards
    -Ståle
    "Ståle Tomten" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using a WebLogic 5.1 server with apache 1.3.14 in front running on a
    solaris machine. Now i want to set the ErrorPage when the weblogic bridge
    fails. I checked in the documentation
    http://www.weblogic.com/docs51/admindocs/apache_bridge.html that it should
    be done with a ErrorPage entry in the http.conf file. I tried this, but it
    redirects to a white page and nothing happends in the client.
    It seems like the web browser receives a 302, but is redirected to aunknown
    page.
    Here is a snipp from my apache conf file:
    <------------------------------------------------
    LoadModule weblogic_module libexec/mod_wl.so
    AddModule mod_weblogic.c
    # Set the default to weblogic
    <Location />
    SetHandler weblogic-handler
    ErrorPage http://java.sun.com
    </Location>
    # Let all the static content be handled by apache
    <Location ~
    "\.(mp3|gif|jpeg|jpg|png|css|js|html|htm|swf|wav|wbmp|ota|otb|wml)$">
    SetHandler default-handler
    </Location>
    # Configure where weblogic is running
    <IfModule mod_weblogic.c>
    WebLogicHost localhost
    WebLogicPort 7002
    DebugConfigInfo OFF
    </IfModule>
    ----------------------------------------------->
    Can anyone help me ?
    Thanks in advance.
    Regards
    -Ståle Tomten

  • How do I get the details of runtime errors to display in errorPage.jsp???

    how do I get the details of a JSP runtime error onto my errorPage.jsp?
    Currently, I'm getting a NumberFormatException - but I can see no details.
    I have to assume that I do not have the errorPage.jsp set up correctly to capture the details of an exception.
    Can someone provide an example (e.g., regular.jsp and errorPage.jsp) that illustrate how this is done (i.e., showing the details - stacktrace, etc - of a runtime exception)?
    Thanks for any help!
    ***my page directie for otherpages.jsp***
    <%@ page language="java" errorPage="errorPage.jsp" %>
    ***my errorPage.jsp***
    <%@ page language='java' contentType='text/html' %>
    <%@ page isErrorPage="true" %>
    <html>
         <head>
              <title> errorPage.jsp </title>
         </head>
         <body>
         <h2>
              Error Encountered:
         </h2>
         <%= exception.toString() %>
         <h2>
              details...
         </h2>
         <%= exception.getMessage() %>
         </body>
    </html>

    You need to create a stringwriter, wrap it in a printwriter, then print to the printwriter, then convert the stringwriter to a string.
    Here's an example:
    StringWriter sw = new java.io.StringWriter();
    PrintWriter pw = new java.io.PrintWriter(sw);
    e.printStackTrace(pw);
    String strError = sw.toString();
    I hope this works. I didn't test the above code. I don't think I'm leaving anything out, but it's been a while since I've done it. Either way, it should get you on the right track to get what you need.
    Hope that helps.
    Michael

  • Jdbc bean errorpage - select - update

    i got a problem getting the errorhandling from a bean- i would like to open an errorpage from the bean when the executeupdate function fails - maybe due to an allready existing value
    if i move thedb access into a normal jsp i can declare a
    <%@page errorPage="errorpage.jsp" %>
    but how can i manage that within the bean ? - or should i put all the code into a jsp without trying to fit into the mvc modell ?
    import java.sql.* ;
    public class DbBean {
       private Connection con;
       private Statement st;
       private ResultSet rs;
       private Statement statement;
       public DbBean() {
         try {
           Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
           con = DriverManager.getConnection("jdbc:odbc:konten");
         catch (Exception e) {
           System.out.println("Fehler bei Verbindung zur Datenbank");
       public ResultSet get(String query) {
         try {
           st = con.createStatement();
           rs = st.executeQuery(query);
         catch (Exception e) {
           System.out.println("Fehler bei Datenbankabfrage" + e.getMessage());
         return rs;
       public void insertData(String query) {
         try {
           st = con.createStatement();
           st.executeUpdate(query);
         catch (SQLException sqle) {
           System.err.println(sqle.getMessage() + " !! Fehler beim InsertVersuch !!");
         catch (Exception e) {
           System.out.println("Fehler bei Datenbankupdateversuch" + e.getMessage());

    Well in order for the error page to come up, you have to give the jsp page an exception.
    Right now you are just catching the exception, printing a message, and continuing as normal.
    You will probably want to rethrow the exception so that it trickles down to the jsp where it can explode into a glorious error page.
    Cheers,
    evnafets

  • How can redirect the errorPage to another frame?

    Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
    What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
    My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
    <form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
    when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
    I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
    Any suggestions? Thanks in advance!

    Here's an idea. Have your error page (in the hidden frame), look something like this:
    <%
      String strErrorMessage = ... // get your error message text here
    %>
    <html>
    <head>
      <script language="JavaScript">
        parent.mainframe.location = "ErrorPage.jsp";
      </script>
    </head>
    </html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
    I hope that gives you some ideas!
    Michael

  • Exception vs. redirecting to an errorpage

    When should I throw an exception to the server and when shold I redirect the user to an error page?
    Is there a clear distinction for when to use either of them?
    /Niklas Andersson
    Sweden

    I seem to recall seeing an ad on TV about the upcoming (made for TV?) movie "Helen of Troy," over which a mythical war was fought. I dare say I'd rather fight to a bloody death for (fill in whatever your imagination wants) with Helen (or at least the actress playing her role) than face the religious conflict this Easter Sunday that answering such questions often engenders.
    That said, my personal opinion is that you should throw exceptions, rather than redirect.
    If you are using JSPs, the errorPage directive will dispatch (rather than redirect) to an error page JSP, conveniently filling in the variable 'exception' with whatever Exception you threw. At that point, you can display some sanitized message to a user, log the event to stderr (with a stack trace), use the JavaMail API to page your cell phone at 3 a.m. to alert you to the impending disaster on your site, etc. etc. etc. When I'm debugging, I even print the stack trace in an HTML comment block on the error page, so I can easily see what happened, without corrupting the "user friendly" graphics, blandly denying to our users that NullPointerExceptions are anything but planned routine maintenance, for which we sincerely apolgize.
    When you redirect, you lose all this, and you lose the exception itself, so you have no clue what went wrong, unless you include code in each and every catch block in your entire system, to write the trace to some kind of log. The one you skip will invariably, it seems, be the place where the most exceptions end up getting caught.
    Okay, now I'll let some zealot with an opposing point of view weigh in, after which you'll be right back where you started.
    Cheers!
    Jerry Oberle
    perl -e 'printf "mailto%cg%s%cearthlink%cnet\n", 58, "oberle", 64, 46;'

  • Strange behaviour when using a custom errorpage

    When I create a standard JHeadstart application using the "HR" schema, add a custom error-page and force an error on a jspx page, the following happens:
    1. Force error on page (via an incorrect commandlink)
    2. Get custom error page correctly
    3. Restart the original page
    4. Again force the error on the page
    5. In the browser "Recursive error in error-page calling for /faces/pages/CXSError.jspx, see the application log for details." is displayed.
    What is going on?
    Extra information:
    The first time the error is forced, this is logged (just after the stacktrace in the log window):
    08-apr 12:04:45 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/CXSError.jspx, pagedef=null
    The second time the error is forced, this is logged:
    08-apr 12:04:50 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/DepartmentsVw1Table.jspx, pagedef=null
    Environment:
    JDeveloper 10.1.3.3.0.4157
    JHeadstart 10.1.3.2.51
    Regards,
    Remco Moolenaar.
    Connexys.
    This is the constructed error on a standard JHeadstart jspx page:
    <af:commandLink action="DeepLinkFile" id="testlink"
    immediate="true" partialSubmit="false"
    text="LINK">
    <af:setActionListener from="1"
    to="#{context.setting.vacId}"/>
    </af:commandLink>
    This is the error page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8" isErrorPage="true"
    import="java.io.CharArrayWriter, java.io.PrintWriter, java.util.Calendar, java.text.SimpleDateFormat, javax.faces.context.FacesContext"/>
    <f:subview id="errorpageview">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Error</title>
    </head>
    <body>
    Stacktrace:
    &lt;pre&gt;
    <jsp:scriptlet>
    try {
    if (exception != null)
    CharArrayWriter charArrayWriter = new CharArrayWriter();
    PrintWriter printWriter = new PrintWriter(charArrayWriter, true);
    exception.printStackTrace(printWriter);
    printWriter.flush();
    out.println(charArrayWriter.toString());
    } catch (Exception e) {
    </jsp:scriptlet>
    &lt;/pre&gt;
    </body>
    </html>
    </f:subview>
    <jsp:scriptlet>
    if (exception != null) {
    try {
    session.invalidate();
    FacesContext ctx = FacesContext.getCurrentInstance();
    ctx.responseComplete();
    } catch (Exception e) {
    </jsp:scriptlet>
    </jsp:root>
    This is web.xml:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/JhsCommon-beans.xml,/WEB-INF/HRDemoService-Breadcrumb-beans.xml,/WEB-INF/DepartmentsVw1-beans.xml</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>viewcontroller.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>ordDeliverMedia</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>ordDeliverMedia</servlet-name>
    <servlet-class>oracle.jheadstart.ord.html.OrdPlayMediaServlet</servlet-class>
    <init-param>
    <param-name>releaseMode</param-name>
    <param-value>Stateful</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ordDeliverMedia</servlet-name>
    <url-pattern>ordDeliverMedia</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/faces/pages/CXSError.jspx</location>
    </error-page>
    </web-app>

    This was an application module pooling, activation / passivation issue.
    After view objects had been set-up correctly, the problem disappeared.

  • Exceptions from nested includes not thrown to errorPage

    In our application a central dispatcher servlet includes JSPs.
              These JSPs include other JSPs. When an Exception is thrown from one of these
              pages it is not thrown, even when the error page is indicated in the
              included JSP with the page directive and the Exception is explicitly thrown
              from a catch block.
              I apprciate any thoughts.
              Thanks.
              -mc
              

    can u send the code snippet?
    "Abhishek" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am having a stateless session bean(SLBean) which uses a singleton
    class(Single1). Both the SLBean and the Single1 are in the same jar
    file. Single1 contains a static method called getInstance() which
    returns the instance of the Single1(if not already existing).
    The probelm is that when I try to do the "Single1.getInstance()" from
    the stateless bean, then some exception( java.rmi.RemoteException:
    EJBException: ;nested Exception is: Java.lang.NullPointerException) is
    thrown.and getInstance() method of Single1 class in never invoked.
    What might be the problem? why am I not able to call my singleton
    class from the staless bean.
    Thanks in advance.
    Abhishek

  • Logging Exception in errorPage of struts

    Hi,
    I have got the code such
    <error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
    </error-page>
    which redirects all errors to error.jsp and now in error.jsp I want to get the exact exception message to log(Write) it in a file with log4j.
    could any one help me ?
    Thanks

    Does anyone has an suggestion

  • Report developed in 6i and open and run in 10g, Web Layout is not working

    Hi,
    Initially reports were developed in Reports 6i now we need to convert into 10g. I just opened the .rdf in Reports10g. Report is successfully running in paper layout and showing the data. But when i try to run the report in Web Layout im getting a BLANK INTERNET EXPLORER SCREEN. Why is it so? What should i do to run my report successfully in Web Layout? When i see Web Source, i am seeing the below code,
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    <%@ page language="java" import="java.io.*" errorPage="/rwerror.jsp" session="false" %>
    <%@ page contentType="text/html;charset=ISO-8859-1" %>
    <!--
    <rw:report id="report">
    <rw:objects id="objects">
    </rw:objects>
    -->
    <html>
    <head>
    <meta name="GENERATOR" content="Oracle 9i Reports Developer"/>
    <title> Your Title </title>
    <rw:style id="yourStyle">
    <!-- Report Wizard inserts style link clause here -->
    </rw:style>
    </head>
    <body>
    <rw:dataArea id="yourDataArea">
    <!-- Report Wizard inserts the default jsp here -->
    </rw:dataArea>
    </body>
    </html>
    <!--
    </rw:report>
    -->
    Please, guide to achive the Web Layout Report.
    Thanks & Rgds,
    M Thiyagarajan

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Download error in (osx) adobe desktop app (corrupted download link).

    Here is a discription of the problem. Please consider that some of the wording might not be correct, as I do have to translate the error message from German into English.
    Using OSX 10.9.2, when clicking inside the adobe desktop app (top of the screen bar) on the tap "apps", the following screen (screenshot) appears, which states, translated from top to bottom:
    download error
    download error. Please contact support.
    (link) contact support
    (link/button) download creative cloud -> This button unfortunatly leads to the following error page "http://www.adobe.com/special/errorpages/404.html"
    All apps, like Bridge, Photoshop, Lightroom, etc. are installed and work just fine. So no problem here. I seem however unable to redownload the desktop app (in order to reinstall). As stated above the provided link inside the desktop app itself is coruppted and within the (online) web-based download centre (user logged in) I am only adviced to use the desktop app. This is a dead end and I do not know what to make of this error, let alone solving it. Please help!

    I am sorry Romsinha but this doesn't really help.
    I already restarted the desktop app and while I am obviously online and connected the problem (error message) remains the same. Information within the "home" tap is recieved/loaded  (little blue spinning wheel) stating that various apps recently have been updated. Yet the same loading wheel within the "apps" tap results in an error. My best guess is that some internal link within the app is corrupted, leading to a source on a server that can not be reached.
    UPDATE
    I clean uninstalled adobe creative cloud as discribed in the article you provided (using the cleaner tool) and even uninstalled the browser plugin. After downloading and reinstalling creative cloud the problem however remains the same. "Apps" tap still shows the same problem. "Home" tap now displays the following:

Maybe you are looking for

  • Dirty printing hp

    hi, we using the HP color printer -HP LJ 300-400 M351-M451 6 and it prints pretty messy. It shows blue lines and the edge has black and blue lines. we tried to self clean and the test paper was clean. Do you have any clue? Thank you

  • Vendor groups

    Good morning We have a SAP global implementation and a vendor could have several sites and terms and conditions. We need to handle this with high usability, so if we create several vendors we need an easy way for the user to be able to determine whic

  • Launch background process from unix command line and detect if it is runnin

    in Cocoa, I am able to run unix app by using NSTask, it works fine to me. But I want to do the following: 1. Start up a background process. 2. Wait to see if this background process has been launched correctly. 3. If yes, keep running following codes

  • Can't get passed this install problem - Please help Adobe.

    I've downloaded the TRIAL version of PRODUCTION PREMIUM CS6. Once running / installed and tested it I will purchase it. But cannot get past this ERROR problem. Here is my install ERROR log ADOBE..  Please help. URGENT. Exit Code: 6 Please see specifi

  • Can i connect hard drive to airport extreme in bridge mode

    I just bought a hard drive and want have it connected to my airport extreme which is in bridge mode so that I can use it with U verse. Will I be able to backup my files on my macbook without connecting the usb on the hard drive to the macbook itself?