Book description
Jakarta Tomcat is not only the most commonly used open source servlet engine today, it's become the de facto standard by which other servlet engines are measured. Powerful and flexible, it can be used as a stand-alone web server or in conjunction with another server, like Apache or IIS, to run servlets or JSPs. But mastery of Tomcat is not easy: because it's as complex as it is complete. Tomcat: The Definitive Guide answers vexing questions that users, administrators, and developers alike have been asking. This concise guide provides much needed information to help harness Tomcat's power and wealth of features.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 softwareThe book begins with an introduction to the Tomcat server and includes an overview of the three types of server configurations: stand-alone, in-process, and out-of-process. The authors show how directories are laid out, cover the initial setup, and describe how to set the environment variables and modify the configuration files, concluding with common errors, problems, and solutions. In subsequent chapters, they cover:
- 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
Table of contents
- A Note Regarding Supplemental Files
- Preface
-
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
-
2. Configuring Tomcat
- 2.1. Using the Apache Web Server
- 2.2. Managing Realms, Roles, and Users
- 2.3. Controlling Sessions
- 2.4. Accessing JNDI and JDBC Resources
- 2.5. Servlet Auto-Reloading
- 2.6. Relocating the Web Applications Directory
- 2.7. Customized User Directories
- 2.8. Tomcat Example Applications
- 2.9. Server-Side Includes
- 2.10. Common Gateway Interface (CGI)
- 2.11. The Tomcat Admin Application
- 3. Deploying Servlet and JSP Web Applications in Tomcat
- 4. Tomcat Performance Tuning
-
5. Integration with Apache Web Server
- 5.1. Introduction
- 5.2. The Pros and Cons of Integration
- 5.3. Installing Apache httpd
-
5.4. Apache Integration with Tomcat
- 5.4.1. Sharing the Load Using Separate Port Numbers
- 5.4.2. Proxying from Apache to Tomcat
-
5.4.3. Using the mod_jk2 Connector
- 5.4.3.1. Using binary releases
- 5.4.3.2. Compiling mod_jk2
- 5.4.3.3. Master configuration file
- 5.4.3.4. The workers2.properties file
- 5.4.3.5. Starting up the integrated servers
- 5.4.3.6. Configuring mod_jk2 to use a TCP socket
- 5.4.3.7. Configuring mod_jk2 to use a Unix domain socket
- 5.4.3.8. Common errors
- 5.4.4. Two Programs in One Process: Tighter Integration
- 5.4.5. Generating mod_jk2 Webapp URI Mappings
- 5.5. Of Connectors and Configuration Files
- 5.6. Summary
- 6. Tomcat Security
-
7. Configuration Files and Their Elements
- 7.1. server.xml
-
7.2. web.xml
- 7.2.1. web-app
- 7.2.2. icon, display-name, and description
- 7.2.3. distributable
- 7.2.4. context-param
- 7.2.5. filter and filter-mapping
- 7.2.6. listener
- 7.2.7. servlet
- 7.2.8. servlet-mapping
- 7.2.9. session-config
- 7.2.10. mime-mapping
- 7.2.11. welcome-file-list
- 7.2.12. error-page
- 7.2.13. taglib
- 7.2.14. resource-env-ref
- 7.2.15. resource-ref
- 7.2.16. security-constraint
- 7.2.17. login-config
- 7.2.18. security-role
- 7.2.19. env-entry
- 7.2.20. ejb-ref and ejb-local-ref
- 7.3. tomcat-users.xml
- 7.4. catalina.policy
- 8. Debugging and Troubleshooting
- 9. Building Tomcat from Source
-
10. Tomcat Clustering
- 10.1. Clustering Terms
- 10.2. The Communication Sequence of an HTTP Request
- 10.3. Additional Resources
- 11. Final Words
- A. Installing Java
-
B. JSPs and Servlets
- B.1. Why Both JSPs and Servlets?
- B.2. Simplifying JSPs with JavaBeans:Reusable Components
- B.3. Simplifying Your JSPs with Custom Tags
-
B.4. Extending Tomcat
- B.4.1. Cocoon: XML Publishing
- B.4.2. Element Construction Set
- B.4.3. Formatted Objects Printing (FOP)
- B.4.4. JavaMail API
- B.4.5. JetSpeed: Scalable Information Portal
- B.4.6. Lucene Text Searching
- B.4.7. PDF Generators
- B.4.8. POI
- B.4.9. SOAP
- B.4.10. Struts
- B.4.11. Velocity
- B.4.12. WebDAV
- B.4.13. See Also
- C. jbchroot.c
- D. BadInputFilterValve.java
- About the Authors
- Colophon
- Copyright
Product information
- Title: Tomcat: The Definitive Guide
- Author(s):
- Release date: June 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596003180
You might also like
book
Data Structures and Algorithms Using Java
With an accessible writing style and manageable amount of content, Data Structures and Algorithms Using Java …
video
Microsoft Power BI - The Complete Masterclass [2023 EDITION]
Microsoft Power BI is an interactive data visualization software primarily focusing on business intelligence, part of …
book
Identity and Access Management
provides you with a practical, in-depth walkthrough of how to plan, assess, design, and deploy IAM …
book
Code Complete, 2nd Edition
Widely considered one of the best practical guides to programming, Steve McConnell’s original CODE COMPLETE has …