Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Deploy a Tomcat Application Statically

Welcome to this hands-on lab, where we'll deploy an application on Tomcat via the CLI in a static manner. 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 after first stopping Tomcat, then starting Tomcat again and noting what happens. After stopping Tomcat a second time, you will deploy a second version of the application, then start Tomcat yet again. The application's web page should show the new version of the application. Both of the applications will be provided in a folder on the Tomcat server for your use.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 24, 2025
Duration
45m

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.

    Note: It may take from 3 to 10 mins after the hands-on lab has started before you can access the Tomcat server on port 8080.

  2. Challenge

    Stop Tomcat, Deploy Version 1 of `sample.war` via the CLI, Then Start Tomcat

    You must deploy the sample.war via the CLI. To complete this task you are not to use the GUI and you must stop Tomcat first.

    The file is located here: /files/version1/sample.war.

    Once the application is in the correct place, start the Tomcat server.

    Go to the application via a browser and test to see if it's working. It can be found by going to the server's external IP address with :8080/sample at the end of 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

    Stop Tomcat, Deploy Version 2 of `sample.war` via the CLI, Then Start Tomcat

    You must deploy the sample.war via the CLI. To complete this task you are not to use the GUI and you must stop Tomcat first.

    The file is located here: /files/version2/sample.war.

    Once the file is in place restart Tomcat.

    Go to the application via a browser and test to see if it's working. It can be found by going to the server's external IP address with :8080/sample at the end of 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 version 2.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight