Thank you for visiting us. We are currently updating our shopping cart and regret to advise that it will be unavailable until September 1, 2014. We apologise for any inconvenience and look forward to serving you again.

Wiley
Wiley.com
Print this page Share

Professional Apache Tomcat 5

ISBN: 978-0-7645-5902-0
624 pages
May 2004
Professional Apache Tomcat 5 (0764559028) cover image
What is this book about?

The Apache Tomcat server and related technologies give Java developers a rich set of tools to quickly build more sophisticated Web applications. Tomcat version 5 supports the latest JSP and Servlet specifications, JSP 2.0, and Servlets 2.4. This completely updated volume offers you a thorough education in Tomcat 5 as well as 4.1.

What does this book cover?

You will learn to solve the problems that arise with installation and configuration, security, system testing, and more. This edition also introduces you to Tomcat clustering for planning and deploying installations in mission-critical production environments, and explores the new support for Tomcat in popular IDEs, such as IntelliJ IDEA, Eclipse, NetBeans/Sun Java Studio, and JBuilder.

You’ll discover how to manage class loaders and Connectors, understand how to use IIS as a Web server front-end for Tomcat, examine JDBC-related issues in Tomcat, and be ready to put this technology to work.

Here are some other things you'll learn from this book:

  • Techniques and troubleshooting tips for installing JVM and Tomcat on Windows and UNIX/Linux systems
  • Detailed Tomcat configuration, such as Access log administration, Single Sign-on across Web applications, request filtering, the Persistent Session Manager, and JavaMail session setup
  • How to resolve JDBC connectivity issues, including connection pooling, JNDI emulation, configuring a data source, and alternative JDBC configurations
  • How to use Web servers like Apache and IIS with Tomcat to serve static content
  • A wide range of security issues, from securing Tomcat installations to configuring security policies for Web applications that run on them
  • How to configure Tomcat for virtual hosting environments
  • Procedures for load-testing Web applications deployed in Tomcat using the open source JMeter framework
  • How to set up Tomcat clustering to provide scalability and high availability to Web applications
  • How to embed Tomcat within custom applications

Who is this book for?

This book is for J2EE system administrators and Java developers with responsibilities for Tomcat configuration, performance tuning, system security, or deployment architecture.

See More
Acknowledgments.

Introduction.

Chapter 1: Apache and Jakarta Tomcat.

Chapter 2: JSP and Servlets.

Chapter 3: Tomcat Installation.

Chapter 4: Tomcat Architecture.

Chapter 5: Basic Tomcat Configuration.

Chapter 6: Web Application Configuration.

Chapter 7: Web Application Administration.

Chapter 8: Advanced Tomcat Features.

Chapter 9: Class Loaders.

Chapter 10: HTTP Connectors.

Chapter 11: Web Server Connectors.

Chapter 12: Tomcat and Apache Server.

Chapter 13: Tomcat and IIS.

Chapter 14: JDBC Connectivity.

Chapter 15: Tomcat Security.

Chapter 16: Shared Tomcat Hosting.

Chapter 17: Server Load Testing.

Chapter 18: JMX Support.

Chapter 19: Tomcat 5 Clustering.

Chapter 20: Embedded Tomcat.

Appendix A: Log4J.

Appendix B: Tomcat and IDEs.

Appendix C: Apache Ant.

Index.

See More
Vivek Chopra has over nine years of experience as a software developer, architect, and team lead, and is currently working on Web Services, J2EE, and middleware technologies. He has worked and consulted at a number of Silicon Valley companies (including Hewlett-Packard, Sun, and currently Sony) and startups. He actively writes about technology and has co-authored half a dozen books on topics such as Apache/open-source software, XML, and Web services. He is also a committer for UDDI4J, an opensource Java API for UDDI. His other areas of experience and interest include compilers, middleware, clustering, GNU/Linux, RFID systems, and mobile computing.

Sing Li, bitten by the microcomputer bug since 1978, has grown up with the Microprocessor Age. His first personal computer was a $99 do-it-yourself Netronics COSMIC ELF computer with 256 bytes of memory, mail-ordered from the back pages of Popular Electronics magazine. Currently, Sing is a consultant, system designer, open-source software contributor, and freelance writer specializing in Java technology, as well as embedded and distributed systems architecture. He writes for several popular technical journals and e-zines, and is the creator of the “Internet Global Phone,” one of the very first Internet telephones available. He has authored and co-authored a number of books across diverse technical topics, including Tomcat, JSP, Servlets, XML, Jini, and JXTA.

Ben Galbraith was introduced to Java in 1999, and has since become something of a Java enthusiast. He has written dozens of Java/J2EE applications for numerous clients, and has built his share of Web sites. He actively tinkers on several open-source projects and participates in the Java Community Process. He has also co-authored a gaggle of books on various Java/XML-related topics, including the one you’re holding now. He is president of the Utah Java User’s Group (www.ujug.org) and Director of Software Development for Amirsys (www.amirsys.com).

Jon Eaves is the Chief Technology Officer of ThoughtWorks Australia and has more than 15 years of software development experience in a wide variety of application domains and languages. He can be   reached at jon@eaves.org.

Amit Bakore is a Sun-certified Web component developer and Java programmer. He works at Veritas Software R&D center, Pune (India). Earlier, he was a part of the Server Technologies group at Oracle, Bangalore (India), as a Senior Member Technical Staff. He has been working primarily on Java, J2EE, XML, and Linux. His areas of interest include open-source technologies and satellite-launching vehicles. He can be reached at bakoreamit@yahoo.com. Amit dedicates this work to his parents, Dr. Ramkrishna and Sau. Vaijayanti.

Chanoch Wiggers is a senior developer with Kiwi DMD, U.K., programming with J2EE and VB. He previously worked as a technical architect with Wrox Press, editing, architecting, and contributing to Java books.

See More
Download TitleSizeDownload
Download the code for the book in .zip format. 83.44 KB Click to Download
Download the code for the book in .rar format at less than 1/2 the size of the .zip.
Go to www.rarlabs.com if your archive software doesn't support the .rar format.
36.32 KB Click to Download
See More

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
Admin Web Application No Longer Budndled w/ Tomcat 5.5
The admin web application is not bundled along with Tomcat 5.5 anymore to enhance out-of-box security. Instead, users can download the admin application separately as jakarta-tomcat-VERSION-admin.zip/tar.gz.

Tomcat 5.0 continues to bundle the admin application as of date.
3/22/05
3 39 Errors in Text
In the first paragraph of the "Assigning Port Numbers" section (top of page), there are a few incorrect port assignments. The corrections are below:

POP3 uses port 110, not 25

AND

SMTP uses port 25, not 110

AND

The protocol for port 21 is SSH, not SSL.
05/30/2006
5 61 Nesting example beneath second paragraph
The nesting for the default configuration of Tomcat is incorrect.
It should be:
Server
-Service
--Connector
--Connector
--Engine
---Logger
---Realm
---Host
----Logger
11/23/04
62 First sentence under "The Server Component"
service.xml should read server.xml
under 'The Server Component' First sentence
2/28/05
124 Error in Code
Under the welcome-file-list section, the source code reads:

<welcome-file-list>
<welcome-file>index.jsp<welcome-file>
<welcome-file>index.html<welcome-file>
<welcome-file>home.html<welcome-file>
</welcome-file-list>

However, it should read:

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>home.html</welcome-file>
</welcome-file-list>
06/05/2006
184 Change in Path
In the "Adding a Resource Definition to the Application Context Descriptor" section, the path in parenthesis should be:

$CATALINA_HOME/conf/Catalina/localhost/jsp-examples.xml

instead of the current:

$CATALINA_HOME/Catalina/localhost/jsp-examples.xml
2/28/05
307 Unit wrong for parameter removeAbandonedTimeout
In server.xml, the unit of time in the parameter removeAbandonedTimeout is shown in minutes, it should be seconds.
1/25/05
308 Error in Step 2
Step 2 (<resource-ref> entry in web.xml)not needed IF:
the JNDI resource is set as global.
Having the resource defined in the <DefaultContext> means that the <resource-ref> is not necessary in the web.xml file.
10/03/06
15 350 "CREATE TABLE user_roles" does not create dual primary
Code should read:
create table user_roles (
user_name varchar(15) not null,
role_name varchar(15) not null,
primary key (user_name, role_name)
);
11/23/04
13 Chapter 13 Error of Connector
Tomcat's JK2 Connector was deprecated after the book was released. The latest versions of Tomcat recommend using the JK connector. This Connector will be covered in detail in the next edition of this book ("Professional Apache Tomcat 6").
08/14/06
See More

Related Titles

Back to Top