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

Technote (troubleshooting)


Problem(Abstract)

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>  


Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software
Web Development

Software 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

Operating system(s):

Linux, Windows

Reference #:

1497702

Modified date:

2012-11-14

Translate my page

Machine Translation

Content navigation