Generate and deploy the PolicyCenter WAR file for Tomcat

Before you begin

Before proceeding, complete Add servlet definitions for Tomcat.

About this task

You can build the PolicyCenter WAR file for Tomcat with or without JDBC drivers by using one of the following commands:

warTomcatDbcp

Builds the WAR file with JDBC drivers. PolicyCenter manages the database connection pool.

warTomcatJndi

Builds the WAR file without JDBC drivers. JBoss manges a JNDI database connection pool.

Procedure

  1. Open a command prompt and navigate to the PolicyCenter installation directory.
  2. Execute one of the following commands:
    • gwb warTomcatDbcp
    • gwb warTomcatJndi

    Both commands generate the PolicyCenter WAR file in the PolicyCenter dist/war directory.

  3. Before you deploy PolicyCenter to Tomcat, verify that environment variable CATALINA_OPTS has the following value:
    -Xms1024M -Xmx2G
  4. Deploy the package to Tomcat by copying the pc.war file to the webapps directory in your Tomcat server.

Results

As Tomcat starts up, it automatically recognizes PolicyCenter and unpacks the pc.war into a directory structure within Tomcat\webapps. For this example, Tomcat creates a Tomcat/webapps/pc directory. Each time you deploy a new copy of a pc.war file, delete the pre-existing pc directory structure created by the old pc.war file.

What to do next

After completing this procedure, review the post-installation tasks in Additional PolicyCenter setup tasks. Then, proceed to Start PolicyCenter on Tomcat on Windows.