on 2011 Feb 14 8:58 PM
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?
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
n/a
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.