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.