Add a welcome-file-list element to file web.xml

Before you begin

Before proceeding, review Installing PolicyCenter on WebSphere in a production environment.

About this task

To ensure that it is possible for WebSphere to access PolicyCenter start file index.html, add a welcome-file-list element to file web.xml.

Procedure

  1. Launch Guidewire Studio:
    1. Open a command prompt and navigate to the PolicyCenter installation directory.
    2. Execute the following command:
      • gwb Studio
  2. In the PolicyCenter Project window, expand configuration > deploy > WEB-INF:
    1. Open web.xmlS.
    2. At the bottom of the file, just before the </web-app> tag, add the following text:
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    3. Add servlet definitions as needed.

      Review the defined servlets for an example.

    4. Add a servlet-mapping definition for each servlet that you add.

      Review the defined servlets for an example.

  3. Save your changes and close web.xml.

What to do next

After completing this procedure, proceed to Generate the PolicyCenter EAR file for WebSphere.