on 01-26-2005 9:45 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Violeta,
We tried to implement your suggestions. Made the entries in the web.xml file and placed the JSP file under apps\sap.com\irj\servlet_jsp\irj\root directory. Then restarted the server. However we are now getting the error that the sap.com/irj service cannot be started.
Can you please tell us where went wrong.
Regards
Sidharth
Hi Sidharth,
I hope you didn't take Violeta's approach "too seriously" and read "you must add" as "you must add" - so I hope you have filled in within the web-app, not behind...?! See http://www.peachpit.com/articles/printerfriendly.asp?p=25445 for sime general hints...
Hope it helps
Detlev
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.