{"id":11118,"date":"2022-03-09T16:31:17","date_gmt":"2022-03-09T22:31:17","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/techblog\/?p=11118"},"modified":"2025-03-18T11:37:00","modified_gmt":"2025-03-18T17:37:00","slug":"upgrading-your-tomcat-9-to-a-later-version","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=upgrading-your-tomcat-9-to-a-later-version","title":{"rendered":"Upgrading Your Tomcat 9 to a Later Version"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>Occasionally, Clients contact our support tech team wanting to know what the current version of Tomcat that we support. As I write this document (Mar 2022), we support up to Tomcat 9. While Tomcat 9 is the major version, there are many minor versions of Tomcat 9 that are available to upgrade to.<\/p>\n\n\n\n<p>Clients wishing to upgrade their current Tomcat 9 version (ex. 9.0.8) to Tomcat 9.0.102 should follow the instructions listed below.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong>Note:<\/strong> These instructions are only available for customers currently utilizing Tomcat 9. Customers who wish to migrate from Tomcat 7 should first follow <a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/instructions-for-upgrading-to-tomcat-9\">these<\/a> instructions. Once completed, return to the instructions below.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">These instructions assume you are not using the AJP connector. If you are, please contact mrc Technical support.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<p>Before beginning, check the current version of your Tomcat. The easiest way to check would be to open any m-Power run-time application. In the URL, replace the &#8220;s&#8221; that is located at the end of your application with an &#8220;x&#8221;. This will cause a 404 to appear.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"192\" src=\"https:\/\/www.mrc-productivity.com\/techblog\/images\/TC9404.png\" alt=\"\" class=\"wp-image-11119\" srcset=\"https:\/\/www.mrc-productivity.com\/techblog\/images\/TC9404.png 789w, https:\/\/www.mrc-productivity.com\/techblog\/images\/TC9404-300x73.png 300w, https:\/\/www.mrc-productivity.com\/techblog\/images\/TC9404-768x187.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find the appropriate version from the <a href=\"https:\/\/tomcat.apache.org\/download-90.cgi\" target=\"_blank\" rel=\"noreferrer noopener\">Apache Tomcat 9 Website<\/a>.<\/li>\n\n\n\n<li>Download the zip from the Core distribution.<\/li>\n\n\n\n<li>Extract these files to c:\\temp\\TC9.<\/li>\n\n\n\n<li>Stop Tomcat (Development).<\/li>\n\n\n\n<li>Make a copy of development\\m-power\\tomcat\\ to tomcat_old. In the event the upgrade fails, having a backup will make reverting much easier.<\/li>\n\n\n\n<li>Copy over the c:\\temp\\TC9\\apache-tomcat-9.x.xxx\\bin\\bootstrap.jar file to development\\m-power\\tomcat\\bin. Overwrite the existing file.<\/li>\n\n\n\n<li>On your m-Power server, remove any files that begin with ecj* from development\\m-power\\tomcat\\lib<\/li>\n\n\n\n<li>Copy over all jar files in c:\\temp\\TC9\\apache-tomcat-9.x.xxx\\lib to development\\m-power\\tomcat\\lib. Overwrite all files.<\/li>\n\n\n\n<li>On your m-Power server, edit the development\\m-power\\tomcat\\conf\\server.xml. Find the AJP listener line and comment it out.<br><em>Note:<\/em>The default AJP listener looks like this: &lt;Connector port=&#8221;8009&#8243; protocol=&#8221;AJP\/1.3&#8243; redirectPort=&#8221;8443&#8243; \/&gt;<\/li>\n\n\n\n<li>On your m-Power server, edit the development\\m-power\\tomcat\\conf\\context.xml. Add the following directly before the final <code>&lt;\/Context&gt;<\/code>:<br><code>&lt;Resources cachingAllowed=\"false\"\/&gt;<\/code><\/li>\n\n\n\n<li>Start Tomcat and verify everything is working to your liking. If so, repeat the process above for your production instance(s). You can also remove the tomcat_old folder we created earlier when you feel comfortable doing so.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Overview Occasionally, Clients contact our support tech team wanting to know what the current version of Tomcat that we support. As I write this document (Mar 2022), we support up to Tomcat 9. While Tomcat 9 is the major version, there are many minor versions of Tomcat 9 that are&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[152],"ht-kb-tag":[],"class_list":["post-11118","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-administration"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11118"}],"version-history":[{"count":14,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11118\/revisions"}],"predecessor-version":[{"id":12432,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/11118\/revisions\/12432"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11118"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=11118"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=11118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}