cancel
Showing results for 
Search instead for 
Did you mean: 

Strange error message getting displayed

sid-desh
Advisor
Advisor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

sid-desh
Advisor
Advisor
0 Kudos

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

detlev_beutner
Active Contributor
0 Kudos

Hi Violeta,

I almost gave this answer, but was irritated by not having found the general rule for the servlet container (didn't find the root web.xml). Is this set by VisualAdmin?

Also see /thread/26037 [original link is broken]

Thanks in advance

Detlev

detlev_beutner
Active Contributor
0 Kudos

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