Restarting the server for a Faces JSP file

Each time you make certain changes in a Web application that is created with Faces components and running in a test environment, the server or Enterprise Application restarts. The changes that the server wants to pick up are ones that affect the configuration file for the Web application.
Each Web application created with Faces components contains a configuration file named faces-config.xml. This configuration file stores the following kinds of information for the Web project:

If the settings in faces-config.xml are changed, the application of the server is automatically restarted so that the application can pick up the changes. This restart may occur frequently if many new pages, data sources, or navigation rules are being added. If the server is restarting too frequently, you may find it interferes with development tasks. To work around this, choose one of the following options:

  • To turn off the automatic restart feature, choose Window > Preferences > Web Tools > Faces > Server Behavior. In the Server Behavior dialog, remove the check next to Restart project when Faces configuration file changes. Note that you must manually restart the application after you finish your configuration changes.
  • Shut down the server until you are finished the changes that are affecting faces-config.xml.

Feedback