Migrating from Tomcat 4.x to 5.5.x

A few days back my team needed to migrate an old production site. We were using Tomcat 4.1.x and the client wanted to use a more current Tomcat version in order to gain advantage of newer optimizations. Our operating environment is Linux.

The migration happened to be a piece of cake. We needed to do just two things.

  • Made the following changes in my Tomcat startup script:

The earlier startup script was as below:

export CATALINA_BASE=/opt/jakarta-tomcat-4.1.31/instances/application
cd /opt/jakarta-tomcat-4.1.31/bin
sh startup.sh
cd $HOME

The CATALINA_BASE pointed to my web application home, the next line used the earlier version of tomcat. Just change /opt/jakarta-tomcat-4.1.31/bin to opt/apache-tomcat-5.5.23/bin and you will be using the newer tomcat server version.

  • Replaced the 4.1 server.xml file with 5.5 server.xml:

I tried retaining the 4.1 server.xml but it started giving weird errors. I took the 5.5 server.xml made the necessary customizations to it and deployed and started the server.

On the whole the migration has been pretty smooth. Even better than my expectations.

Advertisements

2 thoughts on “Migrating from Tomcat 4.x to 5.5.x

  1. Hey, did u change any web.xml or classpath (.jar file) or something like that.. I’ve been trying to migrate a couple of app.. not working.. :S.
    Any Idea.. I would be glad…

    Do you know what are the requirements to translate apps? tomcat4 -> tomcat 5.5. I read that is necessary to include web.xml in the WEB-INF (well that looks obvious.. but now.. it doesnt work if web.xml doesnt exists…)
    Im looking for .jar compatibility that I use before…

    Any idea.. tnx in advance!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s