CARVIEW |
By?Jason Brittain, Ian F. Darwin
First Edition
June 2003
Pages: 320
ISBN 10: 0-596-00318-8 |
ISBN 13:9780596003180
(Average of 7 Customer Reviews)
This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.
The latest edition is also available on Safari Books Online.
Tomcat: The Definitive Guide offers something for everyone who uses Tomcat. System and network administrators will find detailed instructions on installation, configuration, and maintenance. For users, it supplies insightful information on how to deploy Tomcat. And seasoned enterprise Java developers will have a complete reference to setting up, running, and using this powerful software. The 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.
Full Description
- The server.xml configuration file
- Java Security manager
- Authentication schemes and Tomcat users
- The Secure Socket Layer (SSL)
- Tomcat JDBC Realms
- Installing servlets and Java Server Pages
- Integrating Tomcat with Apache
- Advanced Tomcat configuration
Cover | Table of Contents | Colophon
Featured customer reviews
isgp, April 18 2006





hello
Excellent Book for Tomcat, April 13 2004





Tomcat: The Definitive Guide is a great book about the most commonly used open-source servlet/JSP container. Tomcat is the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. Tomcat is really powerful and flexible, but you really need a good book to figure out how to integrate Tomcat with Apache, how to set load-balancers, clustering, etc on all of the major platforms, including Windows, Solaris, Linux, and Mac OS X.
This is where Tomcat: The Definitive Guide comes in. This really well written book makes it easy to follow for the developer as well as non-developer admin. The book starts with an introduction of Tomcat (v4.0) where you learn how to stop/start the server, learn about the directory structure, and learn to modify the start/stop scripts as well as the configuration settings. I really like the treatment given to security, realms and JAAS in the second chapter with more details in the sixth chapter. Most books of this type will leave out security and this book deals with it in the second chapter. Kudos to the authors for that.
I also really like the chapter on performance tuning that deals with real-world applications. The chapter on integration with the Apache webserver is really well written. Most people that deploy Tomcat in production will want to put Apache webserver in front of Tomcat to serve up static content like html and images while letting Tomcat handle servlets and JSPs. Most of the documentation about this Apache httpd ? Tomcat integration on the Internet deals with v1.3 of Apache httpd. However, the book deals with Apache 2.0, which is another plus for the book.
I can go on and on - If you are using Tomcat, planning on using Tomcat or just want to learn more about the server, this book will provide you with all of the information to help harness Tomcat's power and wealth of features. I would highly recommend this book as a companion to any servlet/JSP programming book.
--Vinny Carpenter
Tomcat: The Definitive Guide Review, December 26 2003





I have read Top Ten Tomcat Configuration Tips and love it,I am reading the book and hope to translate it from English into Chinese.
Tomcat: The Definitive Guide Review, November 25 2003





In short, this book provides comprehensive instructions for almost anyone wanting to deploy the TOMCAT Server. This book is a good starting place for programmers or admins who expect to quickly understand basic concepts.
Chapter-by-chapter the book presents new concepts accompanied by examples and descriptions for installing, configuring, and some debugging of the servlet engine. While the book tends to be Unix-centric, information for other Operating Environments is provided. Each successive chapter tends to expand on the previous chapter increasing the readers knowledge along the way. It adequately serves as an introduction to Tomcat but it is also a good book to keep around as a technical administrative reference.
The book provides specific information on Tomcat interfaces and components through a user guide type format. For example, information is presented for Tomcats setup, configuration files, environment variables, servlets and JSPs, JDBC, SSL and much more. What this book is not is a programmer guide but is a good how-to for programmers wanting to administer the server. Examples are provided for using and running Tomcat as a stand-alone web server.
In summary, this book is a success in explaining the relatively technical concepts of Tomcat and also provides very useful and relevant information about Tomcat features.
Tomcat: The Definitive Guide Review, September 17 2003





Why a developper should read this book?
I'm reading the book for administration purprose but as a developper I'm learning very exciting things anyway.
To get an idea, the read this : https://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
Tomcat: The Definitive Guide Review, August 02 2003





Until I bought this book I had an agreement with Tomcat. Tomcat would serve my servlets like it was supposed to and I wouldn't try to pull any stunts. If I ran into something that wasn't working because of some setting or another in Tomcat, I avoided it. Now that I have this book, the agreement is off. This book is chock full of neat and useful tricks with some excellent examples. The book is very well written in true O'Reilly style (They even found a way to use the word "laconic" which I have never seen used in a computer book before). It illuminated various things I was unaware of, such as:
- How to run the web based Tomcat admin application
- Tomcat restart issues - this was especially interesting and gets to the heart of what java and tomcat really are.
- How to enable Tomcat's SSI servlet so that it will use your existing server-side includes.
The book has lots of hints of the " I know how to do this in Apache httpd, but how do I do it in Tomcat ?" variety. This is in addition to an entire chapter devoted to connecting Tomcat to Apache httpd.
The subject of a java web server will automatically bleed over into the subjects of Java and Unix and the book does a great job exposing the timid to Unix and Java concepts that help in understanding these technologies. For example, the book gives detailed instructions for setting up a chroot jail on a Unix type system.
I read the chapter on security several times because it is really foundational. It gets at the excellent security abilities of Java and explains them better than I have seen them explained elsewhere. It also gives the basics of possible vulnerabilities of any web application. The stuff in this section applies broadly to any Servlet container, but has a lot of specifics for Tomcat.
Obviously, most of the stuff in the book is available from the Java, Unix, or Tomcat documentation, but the book acts as a guide, pointing out key things in the documentation.
The only limitation of the book that I could tell was that the authors are exclusively from a Unix background. This has the result of making the book slanted towards Linux/Unix. There are a couple of things that the authors show how to do on Unix but leave the impression that there is no way to do it on Windows. For example they say, "On Unix type operating systems, run netstat from the command line to see the open ports." You can do this on Windows as well. They also give a Unix shell script that organizes log files so that they look like Apache httpd log files. It would have been nice to offer one for windows as well or at least give a hint for how to do so. A lot of people use Tomcat on windows as a development environment and they should not be ignored.
In summary, the book succeeds in both broad concepts that deal with running any java web server and in exposing the finer details of Tomcat in particular. Another reviewer asked if this was really "Vital Information for Tomcat Programmers and Administrators" as the subtitle says. I would say yes. You get details of programming Tomcat through the configuration files and crucial details for how Tomcat settings affects how your servlets behave. Perhaps they are asking about messing around with the source code of Tomcat? Then no, it is not about programming Tomcat in that sense.
Reviewed by Tim McGuire
Tomcat: The Definitive Guide Review, July 18 2003





well, I just perused the book yesterday at the book shop. The impression i got was that even though it claims that the book is for "Programmers", it looks more geared towards sys admins. Not sure if am right. Would you (authors) recommend this book for java "developers"? Does tomcat have apis that developers can use? / do we write web applications as we normally do? ( as per sun servlet / jsp spec). There were no sample java code snippets anywhere.
If possible please tell us how a developer w'd benefit from this book.
thanks!
Media reviews
"Tomcat: The Definitive Guide is very well written, concise, and to the point. It does not try to cover everything about Tomcat and therefore does not dilute what it does cover. It focuses on administration, not development and as such, is for administrators...If you need to run Tomcat, then this book is a must-have. It will keep you out of trouble and have your Tomcat server running smoothly long into the future."
-- T. Michael Testi, Blogcritics Magazine
"This book is a great, concise guide to setting up and administering Tomcat. No assumptions are made that you have years of Java or system administration experience. The book directly tackles ninety-eight percent of the questions that the average Tomcat administrator is going to have without having to sift through thousands of pages of worthless fluff...In typical O'Reilly style the book is well organized and well written."
--Thomas Valletta, Utah Java User Group, February 2004
https://www.ujug.org/rev-tomcat2.html
"'Tomcat' offers setup instructions, including how to run the thing automatically on start-up. Performance tuning and load balancing are here, along with information on all the configuration options...In contrast to most sources I?ve seen, which assume that real Tomcatters always integrate, this book explores the pros and cons of the alternative: running Tomcat as a stand-alone server. There?s also a whole chapter on Tomcat security. My copy won?t even go on the shelf; it?ll live right on my desk."
--Rick Wayne, Software Development, September 2003
https://www.sdmagazine.com/documents/s=8860/sdm0309c/sdm0309c.html
"Until I bought this book I had an agreement with Tomcat. Tomcat would serve my servlets like it was supposed to and I wouldn't try to pull any stunts. If I ran into something that wasn't working because of some setting or another in Tomcat, I avoided it. Now that I have this book, the agreement is off. This book is chock full of neat and useful tricks with some excellent examples...the book succeeds in both broad concepts that deal with running any java web server and in exposing the finer details of Tomcat in particular."
--Timothy McGuire, Twin Cities PHP User Group, August 2003
"If you need to run Tomcat, then this book is a must-have. It will keep you out of trouble and have your Tomcat server running smoothly long into the future."
--T. Michael Testi, Blogcritics Magazine
About O'Reilly | Contact | Jobs | Press Room | How to Advertise | Privacy Policy
© 2008, O'Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.