Skip to Content

Strange error message getting displayed

Hi All,

We are facing a strange problem when we type in the following URL http://<host>:<port>/irj/blah.jsp

The error message says that the file blah.jsp does not exist and then gives the complete directory structure for e.g. c:\usr\sap\<instance name>\JC<Instance Number>\.....irj\.....\blah.jsp does not exist.

We want to prevent this directory structure from getting displayed and display a generic error message.

Please let us know how this will be possible.

Regards

Sidharth

Message was edited by: Sidharth Deshpande

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 10:48 AM

    Hi,

    If you want to display your error message you must add in "apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\web.xml" file the following tags:

    <error-page>

    -


    <error-code>404</error-code>

    -


    <location>/my_error_page.jsp</location>

    </error-page>

    Now when error code 404 occurs then this my_error_page.jsp will be displayed instead of default error page.

    In my_error_page.jsp you may process the errors as you want.

    Best Regards,

    Violeta Georgieva

    Message was edited by: Violeta Georgieva

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.