Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Deploy a Tomcat Application Using the CLI

Welcome to this hands-on lab, where we'll deploy an application on Tomcat via the CLI. We are using Apache's Tomcat, a Java-based application platform built around deploying and managing Java Web Applications. The server provided in this lab environment is running Red Hat Enterprise 8 and has Tomcat 9 pre-installed for you. The Tomcat instance is available for you on port **8080**. You will log into the server via the CLI and deploy an application. You will then deploy a second version of the application. It has different information on its index page that shows the new application has been launched to replace the original. Both of the applications will be provided in a folder on the Tomcat server for your use.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon May 08, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Test to Ensure You Can Access the Preconfigured Tomcat Instances on Port 8080

    Connect to the Tomcat GUI and log in. To access the server, visit the external IP address provided in the hands-on lab page, and append :8080 to it.

    For example, if an IP address shown was 3.92.152.3, then you would put the following into your web browser:

    http://3.92.152.3:8080

    You should see the GUI.

  2. Challenge

    Deploy sample.war Version 1 via the CLI

    You must deploy sample.war via the CLI, not the GUI. The file is located in the /files/version1/ directory.

    Go to the application via a browser and test the application is working. The app can be found by going to the server's external IP address with :8080/sample appended to the URL.

    For example, if the IP address shown for the lab was 3.92.152.3, then you would put the following into your web browser:

    http://3.92.152.3:8080/sample

  3. Challenge

    Deploy sample.war Version 2 via the CLI

    You must deploy sample.war via the CLI, not the GUI. The file is located in the /files/version2/ directory.

    Go to the application via a browser and test the application is working. The app can be found by going to the server's external IP address with :8080/sample appended to the URL.

    For example, if the IP address shown for the lab was 3.92.152.3, then you would put the following into your web browser:

    http://3.92.152.3:8080/sample

    The application will have different text than the original application. It shows that it is Version 2.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans