In a terminal window, go to tut-install/javaeetutorial5/examples/jaxws/webclient/.

Run ant. This target will spawn any necessary compilations, will copy files to the tut-install/javaeetutorial5/examples/jaxws/webclient/build/ directory, will create a WAR file, and will copy it to the tut-install/javaeetutorial5/examples/jaxws/webclient/dist directory.

Start the Application Server.

To deploy the example using ant, run the following command:

ant deploy

To run the example, open your browser to http://localhost:8080/webclient/greeting.

To learn how to configure the example, refer to the deployment descriptor (the
web.xml file), which includes the following configurations:

A display-name element that specifies the name that tools use to identify the application.

A set of servlet elements that identify the application’s JSP file.

A servlet-mapping element that defines the alias to the JSP file.

Note - The example assumes that the Application Server runs on the default port, 8080. If you have changed the port, you must update the port number in the file tut-install/javaeetutorial5/examples/jaxws/webclient/response.jsp before building and running the example.