Tomcat: The Definitive Guide

  Author:    Jason Brittain, Ian Darwin
  ISBN:    0596101066
  Sales Rank:    37830
  Published:    2007-04-01
  Publisher:    O'Reilly Media
  # Pages:    352
  Binding:    Paperback
  Avg. Rating:    4.0 based on 20 reviews
  Used Offers:    8 from $22.25
  Amazon Price:    $26.39
  (Data above last updated:  2008-11-29 04:40:17 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Tomcat: The Definitive Guide
  
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.
                  Reader Reviews 1 - 7 of 7                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
07-29-08 3 0\2
(Hide Review...)  Sadly outdated
Reviewer Permalink
As most O'Reilly books, this *was* an outstanding, readable, and indispensable guide for Tomcat development and administration. Unfortunately, it's sadly outdated: this book only covers version 4, while versions 5, 5.5, and 6 introduce many, many innovations and changes, and you don't want to waste time reading material that doesn't apply to the current versions. It is unfortunate that this book is still being for sale. This book has well deserved stars, but those starts are now obsolete. We all Tomcat lovers are looking forward for an updated edition.
(Review Data Last Updated: 2008-11-30 05:38:48 EST)
03-20-08 4 (NA)
(Hide Review...)  Great Tomcat Reference
Reviewer Permalink
'Tomcat: The Definitive Guide' is a great resource for all Tomcat programmers and administrators. Jam packed with 450 pages of material over 11 chapters, you will learn everything you need to know. Security, configuration, performance tuning, integration with Apache and building Tomcat from the source, this is a wonderful guide that should be on every Tomcat admin's desk.

**** RECOMMENDED
(Review Data Last Updated: 2008-07-29 04:41:58 EST)
01-06-08 5 2\3
(Hide Review...)  Any advanced computer collection strong in Java programming needs this.
Reviewer Permalink
Jason Brittain and Ian F. Darwin's TOMCAT: THE DEFINITIVE GUIDE, 2ND EDITION has been updated for the latest version of Tomcat and offers a complete guide to installing the servlet container, from basics of installation to using web applications, securing Tomcat from online intruders, troubleshooting and customizing the program. Any advanced computer collection strong in Java programming needs this.
(Review Data Last Updated: 2008-03-21 04:09:12 EST)
11-03-07 5 5\5
(Hide Review...)  The second edition is now available
Reviewer Permalink
All of these other reviews, including some of the popular spotlights, seem to be about the first edition with quite a few people saying they were disappointed. I never read the first edition, so I can't remark on its content. However, this second edition seems to have all the details you need to get up and running, and Tomcat is not an area of my expertise.

In many cases Tomcat is a good choice for a web server, and it is well suited as a high performance production web server. It is also a free and open source servlet and JSP engine. You can use it by itself or with other web servers such as Apache httpd. The book is a user's guide for Tomcat, not a tutorial on how to write web applications. That misunderstanding might have had some readers disappointed. Thus, you don't need to be a programmer to understand the book - it is targeted more at system administrators. The following is a run down of the table of contents:

Chapter 1. Getting Started with Tomcat - explains how to install Tomcat, get it running, and test it to make sure that it's functioning properly.
Section 1.1. Installing Tomcat
Section 1.2. Starting, Stopping, and Restarting Tomcat
Section 1.3. Automatic Startup
Section 1.4. Testing Your Tomcat Installation
Section 1.5. Where Did Tomcat Come From?

Chapter 2. Configuring Tomcat - shows the various places to look for information about your server, how to find out why things aren't working, and gives you some examples of common mistakes in setting up and configuring Tomcat.
Section 2.1. A Word About Using the Apache Web Server
Section 2.2. Relocating the Web Applications Directory
Section 2.3. Changing the Port Number from 8080
Section 2.4. Java VM Configuration
Section 2.5. Changing the JSP Compiler
Section 2.6. Managing Realms, Roles, and Users
Section 2.7. Controlling Sessions
Section 2.8. Accessing JNDI and JDBC Resources
Section 2.9. Servlet Auto-Reloading
Section 2.10. Customized User Directories
Section 2.11. Tomcat Example Applications
Section 2.12. Common Gateway Interface (CGI)
Section 2.13. The Tomcat Admin Webapp

Chapter 3. Deploying Servlet and JSP Web Applications in Tomcat - shows web applications composed of servlets, JSPs, and other files, and several approaches for deploying them. It ends with a discussion of the Manager web application, which can handle some deployment operations for you.
Section 3.1. Hosts
Section 3.2. Layout of a Web Application
Section 3.3. Deploying an Unpacked Webapp Directory
Section 3.4. Deploying a WAR File
Section 3.5. Hot Deployment
Section 3.6. Working with WAR Files
Section 3.7. The Manager Webapp
Section 3.8. Automation with Apache Ant
Section 3.9. Symbolic Links

Chapter 4. Tomcat Performance Tuning - some ideas on performance tuning the underlying Java runtime and the Tomcat server itself so that you service requests more efficiently.
Section 4.1. Measuring Web Server Performance
Section 4.2. External Tuning
Section 4.3. Internal Tuning
Section 4.4. Capacity Planning
Section 4.5. Additional Resources

Chapter 5. Integration with the Apache Web Server - covers the use of Tomcat with Apache httpd and talks about the several ways of making Tomcat thrive in front of or behind an Apache httpd installation.
Section 5.1. The Pros and Cons of Integration
Section 5.2. Installing Apache httpd
Section 5.3. Apache Integration with Tomcat
Section 5.4. Tomcat Serving HTTP over the APR Connector

Chapter 6. Tomcat Security - details about what security is and how to improve it in your Tomcat installation.
Section 6.1. Securing the System
Section 6.2. Multiple Server Security Models
Section 6.3. Using the SecurityManager
Section 6.4. Granting File Permissions
Section 6.5. Setting Up a Tomcat chroot Jail
Section 6.6. Filtering Bad User Input
Section 6.7. Securing Tomcat with SSL

Chapter 7. Configuration - Using realms this chapter shows how to set up an example JDBC domain to talk to a relational database. Realms are lists of users authorized to implement specific sections of your web site. Many of the other configuration changes you can make are discussed too.
Section 7.1. server.xml
Section 7.2. web.xml
Section 7.3. tomcat-users.xml
Section 7.4. catalina.policy
Section 7.5. catalina.properties
Section 7.6. context.xml

Chapter 8. Debugging and Troubleshooting - Ways to look for information that helps discover why things aren't working and gives examples of mistakes that are commonly made but may not be obvious. Also discusses why Tomcat may not shut down gracefully and what to do about this common problem, as well as ways of preventing abnormal shutdowns from recurring.
Section 8.1. Reading Logfiles
Section 8.2. Hunting for Errors
Section 8.3. URLs and the HTTP Conversation
Section 8.4. Debugging with RequestDumperValve
Section 8.5. When Tomcat Won't Shut Down

Chapter 9. Building Tomcat from Source - How to compile your own Tomcat in case you don't want to run a prebuilt binary release of it. Gives step-by-step instructions on how to install the Apache Ant build tool, download all necessary support libraries, and build your Tomcat.
Section 9.1. Installing Apache Ant
Section 9.2. Obtaining the Source
Section 9.3. Downloading Support Libraries
Section 9.4. Building Tomcat

Chapter 10. Tomcat Clustering - Some options for running multiple Tomcat servlet containers in parallel for both fault tolerance and higher scalability, while discussing the pros and cons of various clustering approaches.
Section 10.1. Clustering Terms
Section 10.2. The Communication Sequence of an HTTP Request
Section 10.3. Distributed Java Servlet Containers
Section 10.4. Tomcat 6 Clustering Implementation
Section 10.5. JDBC Request Distribution and Failover
Section 10.6. Additional Resources

Chapter 11. Final Words - Overview of the Tomcat open source project's community resources, including docs, mailing lists, and other web sites.
Section 11.1. Supplemental Resources
Section 11.2. Community

Appendix A. Installing Java
Section A.1. Choosing a Java JDK
Section A.2. Working Around Older GCJ and Kaffe JVMs
Section A.3. Sun Microsystems Java SE JDK
Section A.4. IBM J9 JDK
Section A.5. BEA JRockit JDK
Section A.6. Apple Java SE JDK
Section A.7. Excelsior JET
Section A.8. Apache Harmony JDK

Appendix B. jbchroot.c
Appendix C. BadInputValve.java
Appendix D. BadInputFilter.java
Appendix E. RPM Package Files
(Review Data Last Updated: 2008-01-07 01:03:58 EST)
03-11-07 1 1\1
(Hide Review...)  Very disappointed
Reviewer Permalink
This book is hopelessly incomplete. I'm always having to augment it's contents with on-line information. I just attempted to determine the difference between "path" and "docBase" in the "Context" tag in the server.xml file but again it struck out. All page 175 says is that "context" configures the web application directory within a host. End of story. I strongly suggest that you look to another source for Tomcat.
(Review Data Last Updated: 2007-11-06 03:09:51 EST)
04-17-06 2 6\8
(Hide Review...)  room for improvement
Reviewer Permalink
Chap 3: Deploying servlet and JSP Web Applications in Tomcat.
Writing a book about a servlet container whose app deployment methods have most users puzzeled is a challenge. I dont think this book does any better than the online docs (which are bad).

Chap 4: Tomcat performance tuning.
Capacity planning, now thats one area where my knowledge general and tomcatwise is a little thin - the chapter only list the topics but provide no hints or answers. Could have been interesting but wasted my time.

Chap 6: Tomcat security.
Locking down with java policy file, unix chroot and bsd chroot, request filter - wellwritten and very usefull.

Chap 7: Config files and their elements:
Hmm a new way to run the server on lower 1024 ports without root user - why present this now and not in chap 6? A few details from previous chapters repeated - dont the authors two talk together?

Chap 8: Debugging and troubleshooting:
Only the obvious things - too thin.

All in all i found the chapter on security and clustering usefull but the book as a hole seems to lack a clear structure/vision and some chapters dosent do more for me than the lousy online docs. Configuring tomcat is not easy and this book dosent help much. Never the less i like working with tomcat! :)
(Review Data Last Updated: 2007-06-18 09:36:55 EST)
04-16-06 2 3\3
(Hide Review...)  room for improvement
Reviewer Permalink
Chap 3: Deploying servlet and JSP Web Applications in Tomcat.
Writing a book about a servlet container whose app deployment methods have most users puzzeled is a challenge. I dont think this book does any better than the online docs (which are bad).

Chap 4: Tomcat performance tuning.
Capacity planning, now thats one area where my knowledge general and tomcatwise is a little thin - the chapter only list the topics but provide no hints or answers. Could have been interesting but wasted my time.

Chap 6: Tomcat security.
Locking down with java policy file, unix chroot and bsd chroot, request filter - wellwritten and very usefull.

Chap 7: Config files and their elements:
Hmm a new way to run the server on lower 1024 ports without root user - why present this now and not in chap 6? A few details from previous chapters repeated - dont the authors two talk together?

Chap 8: Debugging and troubleshooting:
Only the obvious things - too thin.

All in all i found the chapter on security and clustering usefull but the book as a hole seems to lack a clear structure/vision and some chapters dosent do more for me than the lousy online docs. Configuring tomcat is not easy and this book dosent help much. Never the less i like working with tomcat! :)
(Review Data Last Updated: 2006-12-03 11:06:54 EST)
  
                  Reader Reviews 1 - 7 of 7                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)