| Preface |
|
vii | |
| 1. Getting Started with Tomcat |
|
1 | (30) |
|
|
|
3 | (9) |
|
Starting, Stopping, and Restarting Tomcat |
|
|
12 | (9) |
|
|
|
21 | (8) |
|
Testing Your Tomcat Installation |
|
|
29 | (2) |
| 2. Configuring Tomcat |
|
31 | (38) |
|
Using the Apache Web Server |
|
|
31 | (1) |
|
Managing Realms, Roles, and Users |
|
|
32 | (15) |
|
|
|
47 | (6) |
|
Accessing JNDI and JDBC Resources |
|
|
53 | (3) |
|
|
|
56 | (1) |
|
Relocating the Web Applications Directory |
|
|
56 | (3) |
|
Customized User Directories |
|
|
59 | (1) |
|
Tomcat Example Applications |
|
|
60 | (1) |
|
|
|
61 | (3) |
|
Common Gateway Interface (CGI) |
|
|
64 | (1) |
|
The Tomcat Admin Application |
|
|
65 | (4) |
| 3. Deploying Servlet and JSP Web Applications in Tomcat |
|
69 | (18) |
|
Layout of a Web Application |
|
|
70 | (2) |
|
Manual Application Deployment |
|
|
72 | (2) |
|
|
|
74 | (2) |
|
|
|
76 | (3) |
|
Automation with Jakarta Ant |
|
|
79 | (8) |
| 4. Tomcat Performance Tuning |
|
87 | (15) |
|
Measuring Web Server Performance |
|
|
88 | (4) |
|
|
|
92 | (1) |
|
|
|
93 | (4) |
|
|
|
97 | (4) |
|
|
|
101 | (1) |
| 5. Integration with Apache Web Server |
|
102 | (28) |
|
|
|
102 | (1) |
|
The Pros and Cons of Integration |
|
|
103 | (3) |
|
|
|
106 | (1) |
|
Apache Integration with Tomcat |
|
|
107 | (20) |
|
Of Connectors and Configuration Files |
|
|
127 | (2) |
|
|
|
129 | (1) |
| 6. Tomcat Security |
|
130 | (43) |
|
|
|
130 | (1) |
|
|
|
131 | (1) |
|
Multiple Server Security Models |
|
|
132 | (1) |
|
Using the -security Option |
|
|
133 | (5) |
|
Setting Up a Tomcat chroot Jail |
|
|
138 | (8) |
|
|
|
146 | (16) |
|
|
|
162 | (11) |
| 7. Configuration Files and Their Elements |
|
173 | (38) |
|
|
|
196 | (14) |
|
|
|
210 | (1) |
|
|
|
210 | (1) |
| 8. Debugging and Troubleshooting |
|
211 | (12) |
|
|
|
211 | (2) |
|
URLs and the HTTP Conversation |
|
|
213 | (5) |
|
Debugging with RequestDumperValve |
|
|
218 | (1) |
|
When Tomcat Won't Shut Down |
|
|
219 | (4) |
| 9. Building Tomcat from Source |
|
223 | (10) |
|
|
|
224 | (1) |
|
|
|
225 | (1) |
|
Downloading Support Libraries |
|
|
226 | (4) |
|
|
|
230 | (3) |
| 10. Tomcat Clustering |
|
233 | (23) |
|
|
|
234 | (1) |
|
The Communication Sequence of an HTTP Request |
|
|
235 | (19) |
|
|
|
254 | (2) |
| 11. Final Words |
|
256 | (5) |
|
|
|
256 | (3) |
|
|
|
259 | (2) |
| A. Installing Java |
|
261 | (6) |
| B. JSPs and Servlets |
|
267 | (13) |
| C. jbchroot.c |
|
280 | (6) |
| D. BadInputFilterValve.java |
|
286 | (11) |
| Index |
|
297 | |