Pro Apache Tomcat 6 By Matthew Moodie & Kunal Mittal

 

Pro Apache Tomcat 6 By Matthew Moodie & Kunal Mittal
Pro Apache Tomcat 6 By Matthew Moodie & Kunal Mittal


  • Book Title: Pro Apache Tomcat 6
  • Authors: Matthew Moodie & Kunal Mittal
  • Publisher: Dreamtech Press
  • Years: 7 July 2007
  • Pages: 348
  • Download: PDF
  • Size: 6.52 MB

About this Book:
The book provides accurate, detailed information on how to work with Tomcat’s enterprise-class features out of the box for busy system administrators and others using Tomcat 6. Though you will explore the theory of Java-based, multi-tiered system with reference to Tomcat’s place in them, you won’t waste time revisiting JSP or servlets coding skills. Instead, you’ll learn how to obtain, install, and administer Tomcat 6. You’ll also learn how to effectively integrate Tomcat 6 with other popular and necessary systems, including the Apache Web Server 1.3 and 2.0. Microsoft’s IIS web server, MySQL databases, and LDAP and ODBC data sources.

About the Author:
Matthew Moodie was a technical and developmental editor for two and a half years, and recently served as Editor for Beginning JSP 2: From Novice to Professional and Foundations of JSP Design Patterns, both published by Apress. Kunal Mittal is a consultant specializing in Java technology, the J2EE platform, Web services and SOA technologies. He has co-authored and contributed to several books on these topics. Kunal is currently working on a BEA Portal project for Sony Pictures Entertainment.

Table of Contents:
Chapter 1: Introducing Tomcat
  • Understanding the Web Today
  • Looking Beyond CGI
  • Introducing Java on the Web
  • Adding to Servlets: JavaServer Pages
  • Introducing Servlet Containers
  • Looking at Tomcat
  • What's New in Tomcat 6
  • Understanding Tomcat's Architecture
  • Top-Level Components
  • The Connector Components
  • The Container Components
  • The Nested Components

Chapter 2: Installing Tomcat
  • Installing Java
  • Installing Java on Linux
  • Installing Tomcat
  • Installing Tomcat on Windows Using the Installer
  • Installing Tomcat on Windows Using the Zipped File
  • Installing Tomcat on Linux or Mac OS
  • Viewing the Default Installation
  • Running Tomcat with the Server Option
  • Installing Ant
  • Installing Tomcat from Source
  • Troubleshooting and Tips
  • The Tomcat Window Disappears
  • The Port Number Is in Use

Chapter 3: Examining Tomcat's Directories
  • Looking at CATALINA_HOME
  • The bin Directory
  • The conf Directory
  • The logs Directory
  • The lib Directory
  • The temp Directory
  • The webapps Directory
  • The work Directory
  • Understanding Web Application Structure
  • Web Application Context
  • The WEB-INF Directory
  • The META-INF Directory

Chapter 4: Working with Tomcat's Configuration Files
  • Examining Tomcat’s Configuration Files
  • Using catalina.policy for Access Control
  • Using catalina.properties to Configure Tomcat’s Class Loaders
  • Using server.xml to Configure Tomcat
  • Configuring a Server
  • Configuring Global Naming Resources
  • Configuring a Service
  • Configuring a Connector
  • Configuring an Engine
  • Tomcat Logging
  • Configuring a Realm
  • Configuring a Host
  • Configuring a Valve
  • Configuring a Listener
  • Configuring an Alias
  • Understanding Authentication and the tomcat-users. xml File
  • Configuring Web Application Defaults with web.xml
  • Default Servlet Definitions
  • Matching URLs: Servlet Mappings
  • Configuring Session Timeout
  • Configuring MIME Mappings
  • Configuring Welcome Files
  • Changing Service Options on Windows

Chapter 5: Administering Web Applications
  • Configuring Contexts
  • Configuring Default Contexts
  • The Context Element
  • Configuring a Parameter
  • Configuring a Resource Link
  • Examining a Web Application
  • Mapping URLs to Resources
  • Examining the WEB-INF Folder
  • Examining the web.xml File
  • <distributable>
  • <context-param>
  • <filter>
  • <filter-mapping>
  • <servlet>
  • <servlet-mapping>
  • <session-config>
  • <mime-mapping>
  • <welcome-file-list>
  • <error-page>
  • <resource-env-ref>
  • <resource-ref>
  • <security-constraint>
  • <login-config>
  • <security-role>

Chapter 6: Using Tomcat's Administration Tools
  • Using the Manager Application
  • Setting Up the Manager Application
  • Configuring the Manager Application
  • Using the Manager Application
  • Troubleshooting
  • Managing Applications with Ant
  • Using the Tomcat Administration Tool
  • Chapter 7: Configuring Tomcat
  • Using Valves to Intercept User Requests
  • Standard Valves
  • Configuring User Sessions
  • Configuring a Session Manager
  • Configuring a Cluster

Chapter 8: Understanding Tomcat's Class Loaders
  • Examining the Standard Java SE Class Loaders
  • The Bootstrap Class Loader
  • The Extension Class Loader
  • The System Class Loader
  • The Delegation Model
  • The Endorsed Standards Override Mechanism
  • Understanding Class Loader Attributes
  • Loading Classes on Demand
  • Class Caching
  • Separate Namespaces
  • Creating a Custom Class Loader
  • Understanding Security and Class Loaders
  • Class Loader Delegation
  • Core Class Restriction
  • Separate Class Loader Namespaces
  • Security Manager
  • Understanding Tomcat and Class Loaders
  • Tomcat and the System Class Loader
  • Tomcat’s Common Class Loader
  • Tomcat’s Web Application Class Loader
  • Revisiting Class Loader Order
  • Dynamic Class Reloading
  • Avoiding Class Loader Pitfalls
  • Packages Split Among Different Class Loaders
  • Singletons

Chapter 9: Using Tomcat's Connectors
  • Using the HTTP Connector
  • Configuring the HTTP/1.1 Connector
  • Configuring SSL on Tomcat
  • Working with Keystores
  • Running Tomcat Behind a Proxy Server
  • Using the AJP Connector
  • The Apache JServ Protocol
  • Worker Implementations
  • Integrating Tomcat with Apache 1.3 Using mod_jk
  • Integrating Tomcat with IIS
  • Configuring Distributed Networks with Tomcat
  • Understanding Tomcat Load Balancing
  • Preparing for Load Balancing
  • The Workers
  • Configuring Apache 1.3 for Load Balancing
  • Configuring Tomcat for Load Balancing
  • Testing the Load Balancing Behavior

Chapter 10: Connecting to Databases Using JDBC
  • Introducing SQL
  • Introducing JDBC
  • Running Basic JDBC Operations
  • Which JDBC Version?
  • Examining JDBC Driver Types
  • Database Connection Pooling
  • Using Tomcat and JDBC
  • Providing JDBC Data Sources in Tomcat
  • Configuring JNDI JDBC Resources
  • Using the Resource and ResourceParams Elements
  • Transactions and Distributed Transactions Support
  • Testing JNDI Resource Configuration
  • Creating the MySQL Test Database
  • Setting Up the Read-Only User
  • Adding the JDBC JNDI Resource to the Server
  • Using JNDI to Look Up a Data Source

Chapter 11: Working with User Authentication
  • Looking at Realms
  • Understanding Container-Managed Security
  • Storing a Digested Password
  • Configuring Realms
  • Configuring a File-Based Realm
  • Configuring a User Database Realm
  • Protecting a Resource with a Realm
  • Configuring a JDBC Realm
  • Configuring JNDI Realms

Chapter 12: Securing Tomcat
  • Securing the Windows File System
  • Controlling Users, Groups, and Owners in Windows
  • Assigning Permissions in Windows
  • Planning Security Permissions in Windows
  • Configuring File Permissions in Windows
  • Securing the Unix File System
  • Controlling Users, Groups, and Owners in Unix
  • Assigning Permissions in Unix
  • Planning Security Permissions
  • Configuring File Permissions in Unix
  • Examining General Tomcat Security Principles
  • Retaining Tomcat's Administration Tools
  • Read-Only webapps Directory
  • Securing Your Files
  • Knowing If Your Security Has Been Violated
  • Read-Only File Systems
  • Securing Tomcat's Default Configuration
  • Securing Tomcat's Permissions
  • The Java Security Manager
  • Using the Security Manager with Tomcat
  • Tomcat's Policy File
  • Recommended Security Manager Practices
  • Using Security Realms
  • Adding Settings to web.xml
  • Choosing Form-Based Authentication
  • Using Custom Login and Error Pages
  • Using the Secure Sockets Layer
  • Installing JSSE
  • Preparing the Certificate Keystore
  • Installing a Certificate from a Certificate Authority
  • Importing the Certificate
  • Protecting Resources with SSL
  • Configuring the SSL Connector
  • Using SSL with the Apache Web Server

Chapter 13: Implementing Shared Tomcat Hosting
  • Examining Virtual Hosting
  • IP-Based Virtual Hosting
  • Name-Based Virtual Hosting
  • Implementing Virtual Hosting with Tomcat
  • Creating an Example Configuration
  • Setting Up the Virtual Hosting
  • Testing the Virtual Hosting
  • Implementing Virtual Hosting with Apache and Tomcat
  • Setting a JVM for Each Virtual Host
  • Chapter 14: Testing Tomcat's Performance
  • Preparing for Load Testing
  • Configuring the Java Heap Size
  • Configuring Tomcat's Connectors
  • Configuring Application Sessions
  • Altering Tomcat's Deployment Architecture
  • Working with a Developer's Code
  • Load Testing with JMeter
  • Installing and Running JMeter
  • Making and Understanding Test Plans
  • Examining JMeter's Features
  • Interpreting Test Results
  • Examining the Mean
  • Examining the Standard Deviation
  • APPENDIX Installing MySQL
  • Installing MySQL on Windows
  • Installing MySQL on Linux and Unix
  • Creating a User for MySQL
  • Installing MySQL from the RPM Package
  • Installing MySQL from Source
  • Working with MySQL
  • Resources

0 Comments