Configure JVM sendRedirect calls to use context root

 

If your application servlet code has statements such as...

sendRedirect("/home.html")

...your Web browser might display messages such as...

Error 404: No target servlet configured for uri: /home.html

To instruct the server not to use the Web server's document root and to use instead the web application (.war)'s context root for sendRedirect() calls go to...

Servers | Application Servers | server | Process Definition | Java Virtual Machine | Custom Properties | New

... and specify...

com.ibm.websphere.sendredirect.compatibility
...in the Name column, and true in the Value column.