Download The Java™ Web Services Tutorial

Transcript
CREATING THE GETTING STARTED APPLICATION
2. Change
to
the
directory
for
this
application,
(<JWSDP_HOME>/docs/tutorial/examples/gs (see Creating the Getting
Started Application (page 73)).
3. Compile the source files by typing the following at the terminal prompt
(see Building the Getting Started Application Using Ant, page 77):
ant build
Compile errors are listed in Compilation Errors (page 88).
4. Start Tomcat by typing the following at the terminal prompt (see Starting
Tomcat, page 80):
<JWSDP_HOME>/bin/startup.sh
(Unix platform)
<JWSDP_HOME>\bin\startup
(Microsoft Windows)
5. Deploy the Web application using Ant by typing the following at the terminal prompt (see Installing the Application using Ant, page 81).
ant install
Deployment errors are discussed in Deployment Errors (page 89).
6. Start a Web browser. Enter the following URL to run the example application (see Running the Getting Started Application, page 82):
http://localhost:8080/GSApp
7. Shutdown Tomcat by typing the following at the terminal prompt (see
Shutting Down Tomcat, page 83):
<JWSDP_HOME>/bin/shutdown.sh
(Unix platform)
<JWSDP_HOME>\bin\shutdown
(Microsoft Windows)
Creating the Getting Started
Application
The example application contains a ConverterBean class, a Web component, a
file to build and run the application, and a deployment descriptor. For this example, we will create a top-level project source directory named gs/. All of the files
in this example application are created from this root directory.
73