Skip to main content

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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

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

Content navigation