IBM Support

Using .jsp as default extension for JSF 1.1 or 1.2 projects results in failure to display the JSF pages

Troubleshooting


Problem

Attempts to use .jsp as param-value for the javax.faces.DEFAULT_SUFFIX and *.jsp as url-pattern for the extension mapping in the web.xml file for a JSF 1.1 or 1.2 project in IBM Rational Application Developer for WebSphere Software results in a loop in the Faces Servlet and fails to display the JSF pages.

Cause

The web.xml configuration is incorrect.

Resolving The Problem

To keep the .jsp extension in the URL for the JSF pages, remove the following extension mapping from the web.xml file:

  <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>  

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Development","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;8.0;8.0.1;8.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21497702