JVM options specific to the runServer build command

The following JVM options work with the PolicyCenter gwb runServer command only.

JVM option syntax

Description

-Dgw.port=nnnn

Starts the PolicyCenter server on the specified port (nnnn). The server URL reflects this port number, for example:
  • localhost:nnnn/pc/PolicyCenter.do

-Dgw.server.mode=xxxx

Starts the PolicyCenter server in the specified server mode. Valid values are:

  • dev
  • prod

The default is dev.

-Dserverid=aaaa

-Dserverid=aaaa#bbbb

Sets the server ID, and possibly, one or more server roles for the PolicyCenter server:

  • Server ID – Without the hash mark (#), aaaa represents a server ID only.
  • Server role – With the hash mark, #bbbb assigns the bbbb server role to the server with aaaa server ID. Use a comma-separated list, with no spaces, to list multiple server roles.

The exact JVM syntax to use depends on the server type, for example:

  • Quickstart (Jetty) – Use -Dserverid=aaaa
  • Tomcat – Use -Dgw.pc.serverid=aaaa
  • Studio – Use -Dgw.pc.serverid=aaaa
Note: If you start the Quickstart server from the command line, use -Doption. If you use any other application server, including the server that starts from within Guidewire Studio, use -Dgw.pc.option