Upgrade Tomcat Version

Upgrading Tomcat

This documentation is intended to cover the process of upgrading Tomcat "by hand". As of Railo 3.3, the Railo Installers contain an automatic update process that will trigger if you run the installer and attempt to install to a directory already containing a copy of Railo. The automatic update process is recommended unless you experience problems with it; in which case these instructions will show you how to perform a manual update so you can obtain access to the latest security and performance enhancements even without the automatic upgrade process.

If you experience problems, please remember to contact Railo and let them know!

 

Upgrading the Core Libraries

The core libraries are the easiest part of Tomcat to update, and generally this is all that's needed in order to take advantage of the latest bug fixes, new features, and security updates. Occasionally, more than just the libraries will need to be updated, but this varies by update, so watch the release notes to see if anything outside the core libraries was updated (like the web applications, windows service, controls, etc.).

In order to update the Tomcat libraries, simply take the following steps:

STEP 1 - Shut Down Railo/Tomcat

It could be problematic to copy over libraries while the server that utilizes them is still running, so we're just going to stop the Railo/Tomcat server before we proceed with the Tomcat Upgrade:

RailoService.PNG

STEP 2 - Download and Unzip Tomcat

Go to the Tomcat download page: Tomcat 7 Download Page, and download the tomcat core zip file.  The screenshot below shows the location of the file you need to download.

TCDownload.png

 

Once you download and unzip it, you should see a "lib" directory in the unzipped files:

TCFiles.png

 

STEP 3 - Create a Backup

By default, Railo is installed to C:\railo\, which means that the tomcat libraries are going to be located in C:\railo\tomcat\lib. We need to copy the files from the core lib directory that we just downloaded, to the lib directory inside the installed tomcat. Before we do that, it would be wise to copy the C:\railo\tomcat\lib directory to use as a backup in case anything goes wrong. You can do that by running the following command from the shell:

  cp C:\railo\tomcat\lib\ C:\railo\tomcat\lib-bakup\

TCBack.png

 

STEP 4 - Copy Libraries Over

Notice that our current install of Tomcat has additional files to the jars we will be copying over. You won't want to delete these drivers unless you are upgrading them as well.

STEP 5 - Start Tomcat and Check Version

Start up the Tomcat/Railo service in the services screen the same way we shut it down., From a command prompt, navigate to the main tomcat folder.  By default, this is C:\railo\tomcat.  Run the following command to determine which version is running:

Java.exe –cp lib\catalina.jar org.apache.catalina.util.ServerInfo

The output should be similar to the below screenshot:

tomcatVer.PNG

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.