cancel
Showing results for 
Search instead for 
Did you mean: 

500 & 404 Error Handler

Former Member
0 Kudos

MII 12.1.5.7

NW EHP ce 7.1

We need to place custom 500 & 404 Error handling files. Can anyone direct us to how this can be done?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I made some custom error messages in NW7.0. For this, you'll need to do the following for every instance of the Portal.

a. Create a folder called u201Ccustomerrorsu201D in the directory below.

/usr/sap/<SystemID>/<InstanceID>/j2ee/cluster/<ServerNode>/apps/sap.com/irj/servlet_jsp/irj/root/

b. Create your own custom HTML error page '404.html' and ''500.html'.

Keep the custom HTML pages under this location: /usr/sap/<SystemID>/<InstanceID>/j2ee/cluster/<ServerNode>/apps/sap.com/irj/servlet_jsp/irj/root/customerrors

c. Navigate to: /usr/sap/<SystemID>/<InstanceID>/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf

Edit web.xml file found in the above location to add the below XML snippet

<error-page>

<error-code>404</error-code>

<location>/customerrors/404.html</location>

</error-page>

<error-page>

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

<location>/customerrors/500.html</location>

</error-page>

d. Restart the j2ee instance.

Now in case of any html error such as 404 or 500 your custom error html pages will be displayed by the portal.

Now, for NW7.1CE, looks like the MII error messagers are built at runtime, using

usrsap<SystemID>J00j2eeclusterappssap.comxappsxmiiearservlet_jspXMII ooterror.jsp

which calls dynamically header.jsp and footer.jsp

Maybe it gives you a hint or two for the next steps to be taken.

cheers,

paul.

Former Member
0 Kudos

We have tried your suggestion, but it is still pointing to the default error page. I need a little more assistance here.

Answers (1)

Answers (1)

Former Member
0 Kudos

n/a