cancel
Showing results for 
Search instead for 
Did you mean: 

How to change default 500 internal error page ?

Former Member
0 Kudos

Hi all,

I would like to change the 500 internal error page to my own html page.

Does onyone have any sample or HOWTO ?

Thanks

Amity

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (4)

Answers (4)

Former Member
0 Kudos

Any updates on this ?? I am also planning on changing this message for all apps....

Former Member
0 Kudos

Hai amit,

go to Visual Administrator, expand nodes

Server / Service / Web Container and select Web Container / "sap.com/tcwddispwda" / "webdynpro/dispatcher" application. Select the application and now click "View" at right side. Then go to "Pages" tab in applications properties.

regards,

charan

Former Member
0 Kudos

Hello, I have the same problem and tried your procedure, but without success.

In Visual Admin I added a page /500.jsp - Error - 500. The entry is shown in web.xml. The jsp is a simple TEST line.

Then I created a file in /tcwddispwda/servlet_jsp/webdynpro/dispatcher/root. When I reload the WD application, I get an empty screen instead of the error 500, but not the TEST content. What is wrong with my procedure?

The server throws an exception in WDR.log:

Error in dispatching request to servlet [/500.jsp]

BR Joerg

Former Member
0 Kudos

Hi There

I'm looking for a solution in the same case.

Now my Error-Page is working, if its on the root and in the servlet-jsp environment (like /docs or /webdynpro/resources).

-When I'm accessing a not aviable webdynpro then theres just a normal "The page cannot be displayed" Message from the InternetExplorer. (and even not the SAP-Error Page!)

-When I'm starting a "errornous" webdynpro there's still the old SAP-Error Msg

I've changed the global-web.xml into the Configuration Adapter/cluster_data/server/persistent/servlet_jsp and added the following Rules:


	<error-page>
		<error-code>404</error-code>
		<location>/error/index.jsp</location>
	</error-page>
	<error-page>
		<error-code>503</error-code>
		<location>/error/index.jsp</location>
	</error-page>	
	<error-page>
		<error-code>500</error-code>
		<location>/error/index.jsp</location>
	</error-page>

In the server.1.log i found a Message like that:

com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Error while invoking the error page.

With filemon (sysinternals-tool) i try to find out which file is searched from the j2ee while accessing the webdynpro- but there isn't any file (Perhaps everything in the cache?)! The java.exe searches nothing.

But when im going to a wrong URL (into the root) for example http://localhost:50100/asdfgh then i see that the jlaunch.exe goes to the com.sap.engine.docs.examples\servlet_jsp\_default\root Folder!

How can i configure, that the webdynpro-application uses the same Error-Page like the others? And which error-Page does the webdynpro use now?

Regards Marco

0 Kudos

Hi there,

I've had a reply from Chris W. and a developer from SAP. Unfortunately it is not possible in NW04 or NW04s to have custom error pages for webdynpro.

This is because WD applications are not treated as true servlet objects and the WD container is different from a regular Java WebContainer. Thus the error handling for WD is hardwired into the framework.

A solution to this is planned to be available for NW07 (the so-called "next major release" that will try to make everything better). If possible they will then consider to make a down-port to NW04 maybe.

Regards,

Manuel

Former Member
0 Kudos

Hi,

I've tried to change the Web.xml under

"C:\usr\sap\EPD\JC00\j2ee\cluster\server0\apps\sap.com\tcwddispwda\servlet_jsp\webdynpro\dispatcher\root\WEB-INF"

I restart the server and the error page is still the same.

What am I doing wrong ? Is there other web.xml or general web.xml for the EP ?

Amity

Former Member
0 Kudos

Amit,

Do you able to solve the problem? I am also in same position.

Can you please show some light?

Thanks

Giri

Former Member
0 Kudos

Hi,

I need to custom the error page in J2EE server and not in ABAP.

Thanks

Amity

Former Member
0 Kudos

Amit,

Check out this link:<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9a/e74d426332bd30e10000000a155106/content.htm">Custom Error Pages</a>

Bala