misc - Tomcat 4 -> 5 Upgrade

Tomcat Upgrade Guide, v4 to v5

Intro

This is a basic guide on how to upgrade Tomcat from version 4 to version 5. (For instructions on setting up Tomcat 5 from scratch, refer to the Tomcat documentation.) It is based mostly on first-hand experience, but it also includes accounts reported on the tomcat-user mailing list.

The goals of this document are few:

This document is not endorsed by the Apache Tomcat crew.

Please report errors to tomcat-upgrade-doc at BrandXDev dot net.

Legalities

This document was written in the hope that it would be useful, but is provided AS IS, WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Follow the steps in this document at your own risk.

Content Copyright © 2004 QM, BrandXDev Software.
Reproduction without express authorization is prohibited.


Before You Start

Should I Upgrade?

Only you can decide that. Reading the Tomcat release notes, which list the new features and bug fixes, should help you make an informed decision. Well-known features include clustering support and implementation of the servlet 2.4/JSP 2.0 specs.

As with any product's major-release upgrade, you do yourself a favor to approach this with a firm test plan and a realistic schedule.

Will It Be Difficult?

If you've maintained a clean, spec-compliant webapp, your upgrade may be as simple as "rebuild" and "adjust the config files."

Please review the servlet spec (2.3, 2.4) and JSP spec (1.2, 2.0) for changes (especially deprecations). These documents are available in PDF from the Sun Java website.

Debunking The Myths

There are several myths surrounding the Tomcat 5 upgrade path. Before you begin, please note the following:


The Upgrade Process

While still at Tomcat4...

Building with Tomcat 5

As Tomcat 5 implements newer versions of the servlet and JSP specs, you must rebuild your app against the newer JAR files. Again, check for deprecations. Note the following:

Making the Switch

Corrections and More...

Please send corrections and/or document contributions to tomcat-upgrade-doc at BrandXDev dot net.