[solved] Xhtml Changes without Restarting websphere server issue

In websphere 6.1 or 7.0 or 8.0, xhtml or jsp changes also will expect the server to restart by default.

This issue can be resolved by adding this below codes to your web.xml file,

[html]
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>0</param-value>
</context-param>

<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
[/html]

Note:
1. If you set the param-value to -1 then it disables refresh checking.
2. Project_stage can be production, unit test also.
3. PROJECT_STAGE Development affects the performance. So to avoid performance issue ensure the PROJECT_STAGE is PRODUCTION only in production server.

The above solution worked in Faces 2.X and server 7.1. If you find any other solution please kindly post in comments area.

One comment

Leave a Reply