The JavaTM Web Services Tutorial
Home
TOC
PREV TOP NEXT

Running the Getting Started Application

To run the application, you need to start Tomcat, then run the JSP page from a Web browser. Documentation for Tomcat can be found at <JWDSP_HOME>/docs/tomcat/index.html.

Starting Tomcat

To start Tomcat, type the following command in a terminal window. This command uses the environment variable JWSDP_HOME.

$JWSDP_HOME/bin/startup.sh        (Unix platform)
 
%JWSDP_HOME%\bin\startup          (Microsoft Windows)
 

The startup script starts the task in the background and then returns the user to the command line prompt immediately. Even though you are returned to the command line, the startup script may not have completely started Tomcat. If the Web Client does not run immediately, wait up to a minute and then retry to load the Web client.

Running the Web Client

After Tomcat is started, you can run the Web client by pointing your browser at the following URL. Replace <host> with the name or IP address of the host running Tomcat. If your browser is running on the same host as Tomcat, you may replace <host> with localhost.

http://<host>:8080/gs
 

You should see the following after entering 100 in the input field and clicking Submit:

Figure 1 Converter Web Client

Shutting Down Tomcat

When you are finished testing and developing your application, you should shut down Tomcat.

$JWSDP_HOME/bin/shutdown.sh        (Unix platform)
 
%JWSDP_HOME%\bin\shutdown          (Microsoft Windows)
 
Home
TOC
PREV TOP NEXT