Web Server

How to upgrade Apache Tomcat from One Version to another

Apache Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and WebSocket technologies. Apache Tomcat is the world’s most widely used web application server and is used to power everything from simple one server sites to large enterprise networks.

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 and also download the 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. wee these two reference link1 and link2.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session. I welcome you to follow me on Twitter and Facebook.


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