cancel
Showing results for 
Search instead for 
Did you mean: 

HOWTO Create custom 500 error page ?

Former Member
0 Kudos

Hi All,

We are using EP7 SP14 with alot of java webdynpro applications.

Is there a way to create our own custom ( and simple ) error page for all application? (like 500, 503,505 and ect), I've read this issue was not supported for WAS 6.40.

Is there any new for WAS 7.0 (SP14) ? If so can you send me a sample configuration ? (I've already implemented the DEVELOPMENT_MODE)

Please advise...

Best Regrds,

Amit Yosha

Accepted Solutions (1)

Accepted Solutions (1)

vmadhuvarshi_
Contributor
0 Kudos

Amit,

Take a look at [this link|http://help.sap.com/saphelp_nw2004s/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm]. This should be helpful.

Vishwas.

Answers (5)

Answers (5)

Former Member
0 Kudos

What am I dowing Wrong ???

I've read all the attached documntation but when I launch my webdynro application I'm still getting the same old error page....

I changed the webdynpro/dispatcher (sap.com/tcwddispwda) under Mappings -- > page mappings -- Error page. I've place my custom page

Location= /LocalDevelopmenterrorco.il.bnhp/error.jsp.

Type = Error Code

Value= 500.

I did full restart but I'm still getting the traditional error page...

Please advise.

Amit Yosha

Edited by: Amit Yosha on Dec 15, 2008 3:07 PM

Former Member
0 Kudos

Hi Amit,

I know the 503 error doesnt like a jsp page, so i needed to create an html page for that one. Maybe it is the same thing for the 500?

cu,

J.

Former Member
0 Kudos
former_member192434
Active Contributor
0 Kudos

Check this Custom Error Page for "500

Thanks

ravindra_bollapalli2
Active Contributor
0 Kudos

hi,

check this link

/message/215427#215427 [original link is broken]

and sapnotes also,in note sap given a sample application

Former Member
0 Kudos

Hi Amit,

For showing custom error pages with SAP J2EE engine, you ned to modify the SAP J2EE Engine Deployment Descriptor 'web.xml'.

For WAS 6.40, web.xml is stored in a , /WEB-INF/ You can locate the /WEB-INF/ directory in the portal installation directory: <SAP SYSTEM ID>/jc_<INSTANCE_NUMBER>/j2ee/cluster/server_<INSTANCE_NUMBER> /apps/sap.com/irj/servlet_jsp/irj/root/web-inf/

In web.xml file, you can add following tag

<error-page>

<error-code>500</error-code>

<location>/customErrorPages/CustomErrorPage.html</location>

</error-page>

SAP J2EE Engine needs to be restarted for changes to take effect.

Hope this helps.

Regards,

Prasanna