14.1. Environment Configuration Settings
Before you can build and run the samples in this tutorial, you need to complete the following tasks:
14.1.1. Setting the Web Container Listener Port
The Java code and configuration files for the examples used in this tutorial assume that the web container is listening on IP port 8080. Port 8080 is the default listener port for both GlassFish (domain1) and Tomcat. If you have changed the port, you must update the port number in the following files before building and running the examples:
14.1.2. Setting the Web Container Home Directory
Before you build and deploy the web service and its client, set one of the following environment variables:
If you are using GlassFish, set the AS_HOME environment variable to the top-level directory of GlassFish.
If you are using Tomcat, set the CATALINA_HOME environment variable to the top-level directory of Tomcat.