cancel
Showing results for 
Search instead for 
Did you mean: 

custom http 404 error response page for webdynpro application

Former Member
0 Kudos

The link below shows how to manage web.xml for a J2ee/EJb application on a 404 http error.

[http://help.sap.com/saphelp_nw04s/helpdata/en/9a/e74d426332bd30e10000000a155106/content.htm]

<error-page>
 <error-code>404</error-code>
 <location>/errorPages/MyCustomErrorPage.jsp</location>
</error-page>
 

I understand a Webdynpro application is also a j2ee application running in the server with its webdynpro runtime.

However, I do not see a web.xml file.

However, the following files were found, upon searching the file system.

1. Application.xml and ( requirement for a j2ee application ear file).

2. application-j2ee-engine.xml (not sure why WD needs it).

Can anyone help please?

Thinakar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The link below shows how to manage web.xml for a J2ee/EJb application on a 404 http error.

[http://help.sap.com/saphelp_nw04s/helpdata/en/9a/e74d426332bd30e10000000a155106/content.htm]

<error-page>
 <error-code>404</error-code>
 <location>/errorPages/MyCustomErrorPage.jsp</location>
</error-page>
 

I understand a Webdynpro application is also a j2ee application running in the server with its webdynpro runtime.

However, I do not see a web.xml file.

However, the following files were found, upon searching the file system.

1. Application.xml and ( requirement for a j2ee application ear file).

2. application-j2ee-engine.xml (not sure why WD needs it).

I could not locate the above in any of the WD, J2ee, EP perspectives, but only in the file system.

Questions:

1. Should I need to create a web.xml inside this webdynpro? If so, at what location ?

2. Can I add the above <error-page> tag section inside application.xml ? If so, how to edit this file.?

3. Is there any other approach to insert the http 404 error response?

Can anyone help please?

Thinakar