Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Apache Tomcat Hands-On Guide: Build & Deploy Java Web Apps
Rating: 5.0 out of 5(1 rating)
67 students

Apache Tomcat Hands-On Guide: Build & Deploy Java Web Apps

Learn to deploy, secure, and manage web applications with Apache Tomcat while building a full-fledged company website!
Last updated 11/2025
English

What you'll learn

  • Install and configure Apache Tomcat on different systems
  • Deploy web applications using various Tomcat deployment techniques
  • Secure Tomcat applications using Realms and the Security Manager
  • Utilize JNDI resources and configure JDBC Data Sources for database integration
  • Develop a multi-page dynamic company website using Tomcat
  • Implement email functionalities within a web application
  • Manage and optimize Tomcat server settings for better performance

Course content

2 sections33 lectures4h 2m total length
  • Introduction10:16

    Learn how Apache Tomcat serves as a web server and servlet container, install Java SE, deploy your first web application, and explore servlet, JSP, and EL in a three-tier architecture.

  • Java Setup9:49
  • Tomcat Setup8:29
  • Tomcat Setup HelloWorld5:18

    Learn how to install, configure, and start Apache Tomcat, access the Tomcat home page, and explore the example web application with hello world, cookies, and session demos.

  • Tomcat setup- Folder maintenance8:07

    Apache Tomcat folder maintenance, including the web apps directory, web.xml deployment descriptor, classes under WEB-INF, and deploying a hello world servlet to demonstrate live changes.

  • Objective and prerequisite of this section2:19

    Explore Tomcat deployment approaches, deployer manager, rename and access control, and security configurations while outlining objectives and prerequisites for building dynamic web apps with Tomcat.

  • What is deployment11:53
  • Deploying on a running Tomcat server4:27

    Deploy on a running Tomcat server by enabling auto deploy in server.xml, dropping war files into the app base for dynamic deployment and redeployment.

  • What is manager11:55
  • Deployment through manager5:54

    Explore multiple deployment methods in tomcat manager, including remote war upload, local path deployment, redeploying previously deployed apps, URL-based deployment, host app base deployment, and context XML configurations.

  • Realms and access controls9:30
  • Standard Realm implementation6:34
  • Security Manager7:02

    Explore the security manager in Tomcat, detailing JNDI resources, JDBC data source configuration, and standard permission classes to protect web applications on the Tomcat web server.

  • Security Manager (Continues)9:08

    Explore Tomcat custom permissions and the security manager, including jndi and file permissions, configured via Catalina.policy to restrict web app read, write, and delete access.

  • JNDI Resources5:27
  • JNDI Resources (Continues)7:34
  • Tomcat Resource Factory5:11
  • JDBC Data Source3:26

    Explore the JDBC data source concept, Tomcat JDBC configurations, and common issues and solutions for service provider mechanism-driven driver scanning in Tomcat.

  • JDBC Data Source (Continues)8:48

    Configure Tomcat JDBC data sources by explicitly registering and deregistering drivers in web apps, using context.xml and web.xml resources for databases like MySQL Connector/J and Oracle.

  • Tomcat JDBC Configuration4:36

    Explore Tomcat JDBC configuration to wire a MySQL database using a JDBC data source, context.xml resource definitions, and Web.xml references, while managing connection pools and avoiding idle or invalid connections.

Requirements

  • Basic understanding of Java programming. Familiarity with HTML and web development concepts. A computer (Windows, macOS, or Linux) with administrative privileges to install software.

Description

Introduction:

Apache Tomcat is a popular open-source web server and servlet container that powers a wide range of dynamic web applications. This comprehensive course, "Mastering Apache Tomcat: From Basics to Building a Dynamic Company Website," is designed to guide you from the fundamentals of Tomcat setup to deploying and managing Java-based web applications. Whether you're a beginner looking to understand Tomcat's capabilities or an experienced developer aiming to refine your skills, this course will equip you with practical knowledge and hands-on experience. You'll learn to deploy applications, manage security, and utilize JNDI resources, culminating in a real-world project where you'll create a complete company website using Apache Tomcat.

Section 1: Getting Started with Apache Tomcat

This section introduces you to the world of Apache Tomcat, focusing on setting up the environment and understanding its core features. You'll start with the basics, including installing Java and configuring Tomcat. We'll walk you through your first "Hello World" application on Tomcat, setting up the directory structure, and managing folders effectively. You'll also learn about deployment methods, including how to deploy applications on a running Tomcat server and using the Tomcat Manager for efficient management.

  • Key Topics Covered:

    • Installing Java and Tomcat

    • Setting up and deploying your first web application

    • Understanding deployment strategies and folder maintenance

    • Using Tomcat Manager for application deployment

    • Implementing security measures using Realms and the Security Manager

    • Configuring JNDI resources and setting up a JDBC Data Source for database connectivity

By the end of this section, you'll have a strong foundation in setting up and managing Apache Tomcat for web applications, along with key security configurations and resource management techniques.

Section 2: Project - Building a Company Website Using Apache Tomcat

Building on the knowledge gained in Section 1, this project-based section focuses on developing a dynamic company website using Apache Tomcat. You'll learn how to set up the Tomcat server with required JAR files and create a multi-page website that includes a Home, About Us, Services, and Contact page. We'll guide you through adding functionalities like sending emails directly from your website, making it fully interactive.

  • Project Breakdown:

    • Setting up the Tomcat server and adding required libraries

    • Creating a responsive Home Page and About Us section

    • Developing dynamic Services and Contact pages

    • Implementing email functionality to allow users to send messages from the website

    • Finalizing and testing the complete project for deployment

By the end of this project, you'll have hands-on experience in building and deploying a functional website on Apache Tomcat, reinforcing your skills in web application development and server management.

Conclusion:

Upon completing this course, you'll be proficient in using Apache Tomcat for deploying and managing Java-based web applications. You'll not only understand the intricacies of server management but also gain practical experience by building a complete company website. This course is your gateway to mastering one of the most widely used web servers in the industry, preparing you for real-world challenges in web development and deployment.

Who this course is for:

  • Java Developers looking to master web application deployment on Apache Tomcat.
  • Web Developers aiming to integrate Java applications with Tomcat.
  • IT Administrators seeking to understand server management and deployment.
  • Students and Hobbyists interested in building dynamic websites.
  • Professionals looking to enhance their skills in enterprise-level server management.