Launching Tomcat Server

This section provides a tutorial example on how to launch Apache Tomcat server on a Windows system by double-clicking the startup.bat file. 2 environment variables are required: CATALINA_HOME and JRE_HOME.

After installing the Tomcat package on my local Windows system, I need to learn how to properly start the Tomcat as a Web server.

1. Checking 2 required environment variables:

2. Setting 2 required environment variables:

3. Launching Tomcat server:

If you see a "Tomcat" window with the following message at the end of the window, you know that the Tomcat server has been launched correctly.

... org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
... org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
... org.apache.coyote.catalina.startup.Catalina start
INFO: Server startup in 422 ms

If you want to shut down the server, you can click the "X" on the top right corner of the "Tomcat" window.

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

Tomcat Installation on Windows Systems

 Downloading and Installing Tomcat

Launching Tomcat Server

 Verifying Tomcat Server

 Setting Up Tomcat Server Admin Access

 Reviewing Tomcat Server Status Page

 Tomcat Web Application Manager

 My First HTML Page - hello.html

 My First JSP Page - hello.jsp

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

 EL (Expression Language)

 Overview of JSTL (JSP Standard Tag Libraries)

 JSTL Core Library

 JSP Custom Tags

 JSP Java Tag Interface

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

 Using Tomcat on CentOS Systems

 Using Tomcat on macOS Systems

 Connecting to SQL Server from Servlet

 Developing Web Applications with Servlet

 Archived Tutorials


 Full Version in PDF/EPUB