Tomcat: The Definitive Guide

( 2 )


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...

See more details below
Paperback (Second Edition)
$29.59 price
(Save 26%)$39.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (20) from $2.44   
  • New (7) from $22.38   
  • Used (13) from $2.44   
Tomcat: The Definitive Guide: The Definitive Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99 price
(Save 43%)$31.99 List Price


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.

Offering something for everyone who uses Tomcat, this book covers all major platforms, including Windows, Solaris, Linux, and Mac OS X; contains details on Tomcat configuration files; and even has a quick-start guide to get developers up and running with Java servlets and JavaServer Pages.

Read More Show Less

Product Details

  • ISBN-13: 9780596101060
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 8/1/2007
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 496
  • Sales rank: 979,370
  • Product dimensions: 7.00 (w) x 9.20 (h) x 1.00 (d)

Meet the Author

Jason Brittain is a Senior Principal Software Engineer for Orbital Sciences Corporation, working at NASA's Ames Research Center on theKepler Space Telescope mission (

Jason is a co-author of Tomcat: The Definitive Guide, now in itssecond edition, and has written some web articles for O'Reilly' web site.

Before joining the team on the Kepler mission, Jason was a SeniorSoftware Engineer at Symantec Corporation working on the BrightmailAntiSpam appliance product line's control center web application.

Jason's specialties include Java software development, Tomcat webapplication development and deployment, scalability and faulttolerance, and Apache Ant build systems, and Linux systemadministration. He has contributed to many Apache Jakarta projects,and has been an active open source software developer for severalyears.

Ian Darwin has worked in the computer industry for three decades: with Unix since 1980, Java since 1995, and OpenBSD since 1998. He wrote the freeware file(1) command used on Linux and BSD and is the author of "Checking C Programs" with "Lint and Java Cookbook" (both O'Reilly), as well as over 70 articles, in addition to university and commercial course material on C and Unix. Besides programming and consulting, Ian teaches Unix, C, and Java for Learning Tree International, one of the world's largest technical training companies.

Read More Show Less

Table of Contents

What's This Book About?;
Why an Entire Book on Tomcat?;
Who This Book Is For;
Conventions Used in This Book;
Using Code Examples;
We'd Like to Hear from You;
SafariĀ® Books Online;
Chapter 1: Getting Started with Tomcat;
1.1 Installing Tomcat;
1.2 Starting, Stopping, and Restarting Tomcat;
1.3 Automatic Startup;
1.4 Testing Your Tomcat Installation;
1.5 Where Did Tomcat Come From?;
Chapter 2: Configuring Tomcat;
2.1 A Word About Using the Apache Web Server;
2.2 Relocating the Web Applications Directory;
2.3 Changing the Port Number from 8080;
2.4 Java VM Configuration;
2.5 Changing the JSP Compiler;
2.6 Managing Realms, Roles, and Users;
2.7 Controlling Sessions;
2.8 Accessing JNDI and JDBC Resources;
2.9 Servlet Auto-Reloading;
2.10 Customized User Directories;
2.11 Tomcat Example Applications;
2.12 Common Gateway Interface (CGI);
2.13 The Tomcat Admin Webapp;
Chapter 3: Deploying Servlet and JSP Web Applications in Tomcat;
3.1 ;
3.2 Layout of a Web Application;
3.3 Deploying an Unpacked Webapp Directory;
3.4 Deploying a WAR File;
3.5 Hot Deployment;
3.6 Working with WAR Files;
3.7 The Manager Webapp;
3.8 Automation with Apache Ant;
3.9 Symbolic Links;
Chapter 4: Tomcat Performance Tuning;
4.1 Measuring Web Server Performance;
4.2 External Tuning;
4.3 Internal Tuning;
4.4 Capacity Planning;
4.5 Additional Resources;
Chapter 5: Integration with the Apache Web Server;
5.1 The Pros and Cons of Integration;
5.2 Installing Apache httpd;
5.3 Apache Integration with Tomcat;
5.4 Tomcat Serving HTTP over the APR Connector;
Chapter 6: Tomcat Security;
6.1 Securing the System;
6.2 Multiple Server Security Models;
6.3 Using the SecurityManager;
6.4 Granting File Permissions;
6.5 Setting Up a Tomcat chroot Jail;
6.6 Filtering Bad User Input;
6.7 Securing Tomcat with SSL;
Chapter 7: Configuration;
7.1 server.xml;
7.2 web.xml;
7.3 tomcat-users.xml;
7.4 catalina.policy;
7.6 context.xml;
Chapter 8: Debugging and Troubleshooting;
8.1 Reading Logfiles;
8.2 Hunting for Errors;
8.3 URLs and the HTTP Conversation;
8.4 Debugging with RequestDumperValve;
8.5 When Tomcat Won't Shut Down;
Chapter 9: Building Tomcat from Source;
9.1 Installing Apache Ant;
9.2 Obtaining the Source;
9.3 Downloading Support Libraries;
9.4 Building Tomcat;
Chapter 10: Tomcat Clustering;
10.1 Clustering Terms;
10.2 The Communication Sequence of an HTTP Request;
10.3 Distributed Java Servlet Containers;
10.4 Tomcat 6 Clustering Implementation;
10.5 JDBC Request Distribution and Failover;
10.6 Additional Resources;
Chapter 11: Final Words;
11.1 Supplemental Resources;
11.2 Community;
Installing Java;
Choosing a Java JDK;
Working Around Older GCJ and Kaffe JVMs;
Sun Microsystems Java SE JDK;
BEA JRockit JDK;
Apple Java SE JDK;
Excelsior JET;
Apache Harmony JDK;
RPM Package Files;

Read More Show Less

Customer Reviews

Average Rating 4.5
( 2 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted August 2, 2013


    Hey guys...I'm not gonna do this out my other book at rainy day all results..

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted April 7, 2010

    No text was provided for this review.

Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)