Updated on 2023-11-28 GMT+08:00

Deploying a Tomcat Application

Deploy a WAR package to the Tomcat service on a host and start the service.

Ensure that the Tomcat has been installed on the target host. If the Tomcat has been installed, remove the Install Tomcat action from the template.

The related deployment actions are as follows:

  1. Install JDK.
  2. Install Tomcat.
  3. Stop Tomcat.
  4. Select a deployment source.
  5. Start Tomcat.
  6. Perform health test through URLs.

Table 1 describes the parameters in the template.

Table 1 Template parameters

Parameter

Description

host_group

Target environment where the application is deployed.

package_url

Path of the Tomcat application release package in Artifact.

service_port

Port number of a Tomcat application. The default value is 8080.

tomcat_home_path

Path of the Tomcat client. The default value is /usr/local/tomcat/apache-tomcat-8.5.38.