Free Sample
+ Collection

Apache Tomcat 7 Essentials

Tanuj Khare

This book takes you from beginner to expert in logical stages, covering all the essentials of Tomcat 7 from trouble-free installation to building your own middleware servers. Packed with examples and illustrations.
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849516624
Paperback294 pages

About This Book

  • Readymade solution for web technologies for migration/hosting and supporting environment for Tomcat 7
  • Tips, tricks, and best practices for web hosting solution providers for Tomcat 7
  • Content designed with practical approach and plenty of illustrations

Who This Book Is For

If you are a J2EE administrator, migration administrator, technical architect, or a project manager for a web hosting domain, and are interested in Apache Tomcat 7, then this book is for you. If you are someone responsible for installation, configuration, and management of Tomcat 7, then too, this book will be of help to you.

Table of Contents

Chapter 1: Installation of Tomcat 7
History of Tomcat
Installation of Tomcat 7
Common problems and troubleshooting in installation
Chapter 2: Configuration and Deployment
Configuration files and their usage
Configuration of Tomcat 7
Comparison of the datasource for common databases
Deployment in Tomcat 7
Types of deployment
Common issues in deployment, configuration, and their troubleshooting
Chapter 3: Performance Tuning
Performance tuning for Tomcat 7
How to start performance tuning
Tomcat components tuning
JVM tuning
OS tuning
Chapter 4: Integration of Tomcat with the Apache Web Server
User request flow (web/application level)
Why the Apache HTTP server
Installation of the Apache HTTP
Apache Jserv protocol
IIS integration with Tomcat 7
Common issues and troubleshooting for integration
Chapter 5: Securing Tomcat 7
Tomcat Manager
Tomcat security permissions
Enabling Tomcat Manager
Securing Tomcat 7 for production
SSL configuration on Tomcat 7
Chapter 6: Logging in Tomcat 7
Loggers, appenders, and layouts
Types of logging in Tomcat 7
Types of log levels in Tomcat 7
Values for Tomcat 7
Log analysis
Chapter 7: Troubleshooting in Tomcat
Common problem areas for web administrators
How to troubleshoot a problem
How to obtain a thread dump in Tomcat 7
Web server benchmarking
Chapter 8: Monitoring and Management of Tomcat 7
Different ways of monitoring
Monitoring setup for a web application and database server
Tomcat Manager in Tomcat 7
Monitoring in Tomcat 7
JConsole configuration on Tomcat 7
Chapter 9: Clustering in Tomcat 7
What is a cluster?
Clustering architecture
Vertical clustering in Apache Tomcat 7
Horizontal clustering in Apache Tomcat 7
Testing of the clustered instance
Monitoring of Tomcat clustering
Chapter 10: Tomcat Upgrade
Different types of environment
Life cycle of the upgrade
Tomcat upgrade from 6 to 7
ITIL process implementation
Chapter 11: Advanced Configuration for Apache Tomcat 7
Virtual hosting
Virtual hosting in Tomcat 7
Hostname aliases
Multiple applications hosting on a single Tomcat 7 instance
Multiple Tomcat environments—Development/QA/Stage/Production
Tuning cache
Optimization of Tomcat 7

What You Will Learn

  • Learn to install Tomcat 7 on Windows/Linux step-by-step and resolve any issues faced during installation
  • Deploy multiple applications and troubleshoot any issues that occur during deployment
  • Implement best practices in the production environment and learn tricks to reduce your day to day work load
  • Dig deep into high availability architecture configuration (load balancing and clustering configuration) using front end web server like Apache and IIS
  • Become an expert in tuning the Tomcat for performance
  • Upgrade to Tomcat 7 successfully from the previous versions
  • Configure Tomcat for Dev/QA/stage/production environment and indulge into maintenance tips
  • Get familiar with thread dump analysis, monitoring JVM, database and OS related issues, and diagnose Tomcat 7 issues

In Detail

Apache Tomcat (or simply Tomcat) is an open source servlet container developed by the Apache Software Foundation (ASF). The latest major stable release, Apache Tomcat version 7 implements the Servlet 3 and JavaServer Pages 2 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services.

Apache Tomcat 7 Essentials follows a practical approach to teach installing, configuring, and maintaining Tomcat. It helps you to understand the middle architecture for hosting multiple websites and also provides the confidence to implement middleware support. It imparts to you the capacity to resolve migration issues and also provides regular maintenance solutions. This is the first and only book to cover upgrading to Tomcat 7 from previous versions.

The journey of the reader starts at the beginner level and ends at the expert level. The content is designed in such a way that it balances the theory and practical approach for understanding concepts related to handling middle ware and web issues.

In this book, you will go through a three-phase life cycle. The first cycle consists of installation, configuration of Tomcat 7 on different OS, and other configurations related to JDBC, port, deployment etc.

The second phase deals with the building of enterprise application setup and high availability architecture (clustering load balancing). The third and critical phase will teach you to handle critical issues, performance tuning, and best practices for various environment stacks like dev/QA/stage/production.

This book gives you a wider vision of using Tomcat 7 in web technologies and the skill to optimize their performance using Apache Tomcat 7.


Read More