Web Server

How to upgrade Tomcat from One Version to another

Navigate to the path in Windows where Tomcat is installed

C:Program FilesApache Software FoundationTomcat 7.0bin

Here we will find the Tomcat executable  as shown below
 Tomcat7w.exe

Double Click on the Tab and take note of all existing settings such as the
– LogOn  (Local System Account or Administrator)
– Java Options (Path and Initial Memory and Maximum Memory Pool)
– Tab “General” set the Startup type to “Automatic”

These parameters will be restored manually after the upgrade is performed.

Next, backup the entire Apache Software Foundation in a different path (location). The reason for this is to be able to restore in-case of any issue such as Tomcat not stating etc.
Note: You will have to stop the service before performing this task.

Download the version of Tomcat you want from https://tomcat.apache.org/download-70.cgi 

Download the service.bat from storix/install/Tomcat/service.bat

Open command line interface and navigate to Tomcat bin directory. Within “Apache Tomcat 7” folder. You will see some this like C:..bin>.
Enter above command to start the service: 

C:..bin>service.bat remove

The will remove the old Tomcat installation and this is only need to uninstall the old Tomcat Service).
– Next: Delete the old Tomcat installation folder: C:Program FilesApache Software FoundationTomcat 7.0
– Now downloaded Tomcat.exe to this path below and
note: It has to be executed from this path

C:Program FilesApache Software FoundationTomcat 7.0bin

Note: Tomcat service must be stopped. (from run, type services.msc) and the above command must be run as an administrator.

Now, run the newly downloaded Tomcat executable below

apache-tomcat-7.0.8x.exe

Follow the prompts
After installation has been completed replace these folders from the old Tomcat backup to the new installation path

  • conf
  • webapps
  • work

Navigate to the path

C:Program FilesApache Software FoundationTomcat 7.0bin

Open the executable shown below by double clicking or right click on it and select properties.

Tomcat7w.exe

Now replace all content with the parameters noted above in the green marked area
 

We are done with the update, navigate to services.msc and have Tomcat service started.
https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Removing_services
https://stackoverflow.com/questions/5920051/installing-tomcat-7-as-service-on-windows-server-2008


Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x