Previous Topic: Deploy CA OM Web ServicesNext Topic: IBM WebSphere


Apache Tomcat

To deploy a WAR file to Apache Tomcat there are two methods.

Method 1: Deploy using the Tomcat Manager

Follow these steps:

  1. Log in to the Tomcat Web Application Manager http://yourserver:8080/manager/html) using a web browser.

    Note: To define your credentials to the manager application, edit tomcat-users.xml. For more information, see Tomcat documentation.

  2. In the Tomcat Web Application Manager under Deploy, select or upload the configured WAR file.
  3. For the Deploy directory or WAR file on the server, fill in the form using the following information:
  1. Click Deploy.
  2. For the WAR file to deploy, the WAR file must be present on the system where the web browser is run. Browse to the folder containing the configured WAR file, select it, and then click Deploy to upload.

Method 2: Deploy statically to Tomcat

Follow these steps:

  1. If Tomcats' server.xml autoDeploy setting is true, then copy the configure WAR file from the /deployable folder into the $CATALINA_BASE/webapps. It is automatically deployed.
  2. If Tomcats' autoDeploy attribute is false, then extract manually the WAR file into a folder named caomws20 under $CATALINA_BASE/webapps. The manual extraction can be done with the following commands:
    cd $CATALINA_BASE/webapps
    
    mkdir caomws20
    
    cd caomws20
    
    jar xf install_folder/deployable/caomws20.war
    

    Note: For more information, see the Apache Tomcat web site http://tomcat.apache.org.