Book description
It takes a book as versatile as its subject to cover Apache Tomcat, the popular open source Servlet and JSP container and high performance web server. Tomcat: The Definitive Guide is a valuable reference for administrators and webmasters, a useful guide for programmers who want to use Tomcat as their web application server during development or in production, and an excellent introduction for anyone interested in Tomcat. Updated for the latest version of Tomcat, this new edition offers a complete guide to installing, configuring, maintaining and securing this servlet container. In fact, with such a wealth of new information, this is essentially a new book rather than a simple revision. You will find details for using Tomcat on all major platforms, including Windows, Linux, OS X, Solaris, and FreeBSD, along with specifics on Tomcat configuration files, and step-by-step advice for deploying and running web applications. This book offers complete information for:
Installation and startup procedures
Configuring Tomcat-including realms, roles, users, servlet sessions, and JNDI resources including JDBC DataSources
Deploying web applications-individual servlets and JSP pages, and web application archive files
Tuning Tomcat to measure and improve performance
Integrating Tomcat with Apache Web Server
Securing Tomcat to keep online thugs at bay
Tomcat configuration files-server.xml and web.xml, and more
Debugging and Troubleshooting-diagnosing problems with Tomcat or a web application
Compiling your own Tomcat, rather than using the pre-built release
Running two or more Tomcat servlet containers in parallel
This book also offers an overview of the Tomcat open source project's community resources, including docs, mailing lists, and more. Community interest fueled a strong demand for a Tomcat guide from O'Reilly. The result clearly exceeds expectations.
Table of contents
-
Tomcat: The Definitive Guide
- A Note Regarding Supplemental Files
- Preface
-
1. Getting Started with Tomcat
- Installing Tomcat
- Starting, Stopping, and Restarting Tomcat
- Automatic Startup
- Testing Your Tomcat Installation
- Where Did Tomcat Come From?
-
2. Configuring Tomcat
- A Word About Using the Apache Web Server
- Relocating the Web Applications Directory
- Changing the Port Number from 8080
- Java VM Configuration
- Changing the JSP Compiler
- Managing Realms, Roles, and Users
- Controlling Sessions
- Accessing JNDI and JDBC Resources
- Servlet Auto-Reloading
- Customized User Directories
- Tomcat Example Applications
- Common Gateway Interface (CGI)
- The Tomcat Admin Webapp
- 3. Deploying Servlet and JSP Web Applications in Tomcat
- 4. Tomcat Performance Tuning
-
5. Integration with the Apache Web Server
-
The Pros and Cons of Integration
-
Running Tomcat Standalone
- It's easier to set up
- No web server connector module to worry about
- Tomcat standalone is faster than Apache httpd proxying requests to Tomcat
- Potential for better security
- Ease of migration
- Ease of upgrades
- Tomcat has less supporting software
- Fewer people who know Tomcat's web server
- Fewer web server features
- Running Tomcat with Apache httpd
-
Running Tomcat Standalone
- Installing Apache httpd
- Apache Integration with Tomcat
- Tomcat Serving HTTP over the APR Connector
-
The Pros and Cons of Integration
- 6. Tomcat Security
-
7. Configuration
- server.xml
-
web.xml
- web-app
- icon, display-name, and description
- distributable
- context-param
- filter and filter-mapping
- listener
- servlet
- servlet-mapping
- session-config
- mime-mapping
- welcome-file-list
- error-page
- jsp-config and taglib
- resource-env-ref
- resource-ref
- security-constraint
- login-config
- security-role
- env-entry
- ejb-ref and ejb-local-ref
- service-ref
- message-destination-ref
- message-destination
- locale-encoding-mapping-list
- tomcat-users.xml
- catalina.policy
- catalina.properties
- context.xml
- 8. Debugging and Troubleshooting
- 9. Building Tomcat from Source
- 10. Tomcat Clustering
- 11. Final Words
- A. Installing Java
- B. jbchroot.c
- C. BadInputValve.java
- D. BadInputFilter.java
- E. RPM Package Files
- Index
- About the Authors
- Colophon
Product information
- Title: Tomcat: The Definitive Guide, 2nd Edition
- Author(s):
- Release date: October 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596101060
You might also like
book
Head First Servlets and JSP, 2nd Edition
Looking to study up for the new J2EE 1.5 Sun Certified Web Component Developer (SCWCD) exam? …
book
Spring Boot: Up and Running
With over 75 million downloads per month, Spring Boot is the most widely used Java framework …
book
Spring Boot in Practice
Go beyond the basics with Spring Boot! This practical guide presents dozens of relevant scenarios in …
book
Modern Java in Action
Manning's bestselling Java 8 book has been revised for Java 9 and 10! In Modern Java …