Deploying the Web Service on Tomcat
If you look in the target folder described in the preceding section, you should see a file called tutorial.war. This file must be deployed on Tomcat. This is simply a matter of copying the WAR file into a specific folder. On my system, Tomcat is installed here:
C:\Program Files\Apache Software Foundation\Tomcat 6.0
There should be a folder called webapps in that path. Copy tutorial.war into the webapps folder. Next, we need to start Tomcat. Make sure that Tomcat is not running as a Windows service. To check this, click Start > Control Panel > Administrative Tools > Services. Look for the Tomcat service descriptor, "Apache Tomcat." Because we'll be running Tomcat manually, make sure that this service is switched off. Once this is done, we're ready to run the web service.