Tomcat: The Definitive Guide, 2/e (Paperback)
暫譯: Tomcat:權威指南,第二版(平裝本)

Jason Brittain, Ian F. Darwin

  • 出版商: O'Reilly
  • 出版日期: 2007-11-27
  • 定價: $1,360
  • 售價: 9.0$1,224
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0596101066
  • ISBN-13: 9780596101060
  • 相關分類: Java 相關技術
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Description

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.

Table of Contents

Preface

1. Getting Started with Tomcat

     Installing Tomcat

     Starting, Stopping, and Restarting Tomcat

     Automatic Startup

     Testing Your Tomcat Installation

     Where Did Tomcat Come From?

2. Configuring Tomcat

     A Word About Using the Apache Web Server

     Relocating the Web Applications Directory

     Changing the Port Number from 8080

     Java VM Configuration

     Changing the JSP Compiler

     Managing Realms, Roles, and Users

     Controlling Sessions

     Accessing JNDI and JDBC Resources

     Servlet Auto-Reloading

     Customized User Directories

     Tomcat Example Applications

     Common Gateway Interface (CGI)

     The Tomcat Admin Webapp

3. Deploying Servlet and JSP Web Applications in Tomcat

     Layout of a Web Application

     Deploying an Unpacked Webapp Directory

     Deploying a WAR File

     Hot Deployment

     Working with WAR Files

     The Manager Webapp

     Automation with Apache Ant

     Symbolic Links

4. Tomcat Performance Tuning

     Measuring Web Server Performance

     External Tuning

     Internal Tuning

     Capacity Planning

     Additional Resources

5. Integration with the Apache Web Server

     The Pros and Cons of Integration

     Installing Apache httpd

     Apache Integration with Tomcat

     Tomcat Serving HTTP over the APR Connector

6. Tomcat Security

     Securing the System

     Multiple Server Security Models

     Using the SecurityManager

     Granting File Permissions

     Setting Up a Tomcat chroot Jail

     Filtering Bad User Input

     Securing Tomcat with SSL

7. Configuration

     server.xml

     web.xml

     tomcat-users.xml

     catalina.policy

     catalina.properties

     context.xml

8. Debugging and Troubleshooting

     Reading Logfiles

     Hunting for Errors

     URLs and the HTTP Conversation

     Debugging with RequestDumperValve

     When Tomcat Won't Shut Down

9. Building Tomcat from Source

     Installing Apache Ant

     Obtaining the Source

     Downloading Support Libraries

     Building Tomcat

10. Tomcat Clustering

     Clustering Terms

     The Communication Sequence of an HTTP Request

     Distributed Java Servlet Containers

     Tomcat 6 Clustering Implementation

     JDBC Request Distribution and Failover

     Additional Resources

11. Final Words

     Supplemental Resources

     Community

A. Installing Java

B. jbchroot.c

C. BadInputValve.java

D. BadInputFilter.java

E. RPM Package Files

Index

商品描述(中文翻譯)

**描述**
一本如其主題般多才多藝的書籍,涵蓋了 Apache Tomcat,這個流行的開源 Servlet 和 JSP 容器以及高效能的網頁伺服器。《Tomcat: The Definitive Guide》是管理員和網站管理員的寶貴參考資料,對於希望在開發或生產環境中使用 Tomcat 作為其網頁應用伺服器的程式設計師來說,這本書也是一本有用的指南,並且對任何對 Tomcat 感興趣的人來說,都是一個極好的入門書籍。

這本新版本已更新至最新的 Tomcat 版本,提供了安裝、配置、維護和保護這個 Servlet 容器的完整指南。事實上,這本書擁有如此豐富的新資訊,基本上可以說是一本新書,而不僅僅是簡單的修訂。您將找到在所有主要平台上使用 Tomcat 的詳細資訊,包括 Windows、Linux、OS X、Solaris 和 FreeBSD,還有 Tomcat 配置檔的具體細節,以及部署和運行網頁應用程式的逐步建議。

這本書提供了完整的資訊,包括:
- 安裝和啟動程序
- 配置 Tomcat,包括領域、角色、用戶、Servlet 會話和 JNDI 資源,包括 JDBC DataSources
- 部署網頁應用程式——單個 Servlet 和 JSP 頁面,以及網頁應用程式檔案
- 調整 Tomcat 以測量和改善性能
- 將 Tomcat 與 Apache Web Server 整合
- 保護 Tomcat 以防止網路攻擊
- Tomcat 配置檔——server.xml 和 web.xml 等
- 除錯和故障排除——診斷 Tomcat 或網頁應用程式的問題
- 編譯自己的 Tomcat,而不是使用預建的版本
- 同時運行兩個或更多的 Tomcat Servlet 容器

這本書還提供了 Tomcat 開源專案的社群資源概述,包括文檔、郵件列表等。社群的興趣促使了 O'Reilly 對 Tomcat 指南的強烈需求,結果顯然超出了預期。

**目錄**
**前言**
**1. 開始使用 Tomcat**
     安裝 Tomcat
     啟動、停止和重啟 Tomcat
     自動啟動
     測試您的 Tomcat 安裝
     Tomcat 的來源

**2. 配置 Tomcat**
     關於使用 Apache Web Server 的說明
     重新定位網頁應用程式目錄
     將埠號從 8080 更改
     Java VM 配置
     更改 JSP 編譯器
     管理領域、角色和用戶
     控制會話
     訪問 JNDI 和 JDBC 資源
     Servlet 自動重新加載
     自定義用戶目錄
     Tomcat 範例應用程式
     通用閘道介面 (CGI)
     Tomcat 管理網頁應用程式

**3. 在 Tomcat 中部署 Servlet 和 JSP 網頁應用程式**
     網頁應用程式的佈局
     部署未打包的網頁應用程式目錄
     部署 WAR 檔案
     熱部署
     處理 WAR 檔案
     管理員網頁應用程式
     使用 Apache Ant 自動化
     符號連結

**4. Tomcat 性能調整**
     測量網頁伺服器性能
     外部調整
     內部調整
     容量規劃
     其他資源

**5. 與 Apache Web Server 整合**
     整合的優缺點
     安裝 Apache httpd
     Apache 與 Tomcat 的整合
     Tomcat 通過 APR 連接器提供 HTTP

**6. Tomcat 安全性**
     保護系統
     多伺服器安全模型
     使用 SecurityManager
     授予檔案權限
     設置 Tomcat chroot 監獄
     過濾不良用戶輸入
     使用 SSL 保護 Tomcat

**7. 配置**
     server.xml
     web.xml
     tomcat-users.xml
     catalina.policy
     catalina.properties
     context.xml

**8. 除錯和故障排除**
     閱讀日誌檔
     尋找錯誤
     URL 和 HTTP 交談
     使用 RequestDumperValve 除錯
     當 Tomcat 無法關閉時

**9. 從源碼構建 Tomcat**
     安裝 Apache Ant
     獲取源碼
     下載支援庫
     構建 Tomcat

**10. Tomcat 集群**
     集群術語
     HTTP 請求的通信序列
     分佈式 Java Servlet 容器
     Tomcat 6 集群實現
     JDBC 請求分配和故障轉移
     其他資源

**11. 最後的話**
     補充資源
     社群

**A. 安裝 Java**
**B. jbchroot.c**
**C. BadInputValve.java**
**D. BadInputFilter.java**
**E. RPM 套件檔**
**索引**