mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • m-Power Administration
  • Instructions for Upgrading to Tomcat 9
Back to Manual

Instructions for Upgrading to Tomcat 9

Tomcat 9 offers m-Power customers the latest security, performance, and stability improvements. As such this document is designed to give system administrators step by step instructions on how to upgrade from Tomcat 7 to Tomcat 9.

Before we begin, please note these instructions are designed for standard installations. If you are utilizing any of the following, please consider engaging m-Power in a services agreements for us to do this conversion for you as we are familiar with these types of customized solutions:

  • Load Balancing
  • Clustering
  • SSL
  • mod_jk to communicate between Tomcat/Apache
  • Custom Contexts
  • Reverse Proxies

Windows Instructions

Uninstall existing Tomcat7 services

  1. Stop Existing Tomcats
  2. Open CMD mode as Administrator
  3. Navigate to c:\program files\mrc\development\m-power\tomcat\bin
  4. Type service remove TC7DEV
  5. Navigate to c:\program files\mrc\production\m-power\tomcat\bin
  6. Type service remove TC7PROD
  7. Repeat for any other services you may have installed

Install Tomcat

  1. Download the Windows version Tomcat 9 from mrc here
  2. Rename existing Tomcat folder to Tomcat 7
  3. Unzip downloaded file into c:\program files\mrc\development\m-power\. When completed you should have a c:\program files\mrc\development\m-power\tomcat folder
  4. Move tools.jar from tomcat7\lib to tomcat\lib
  5. If you connect to MSSQL or MySQL, move over the necessary jar files from tomcat7\lib to tomcat\lib
  6. Examine server.xml in tomcat7\conf. Specifically, note the shutdown port, connector port, and contexts. Ensure these changes are made within the server.xml in tomcat\conf.


  7. Repeat the above process for your production instance (as well as any other instances you may have).

    Note : The "/webapp/mrc" context is only used in your development environment, therefore you should only have the "/mrcjava" context at the bottom of the server.xml file for your production instance(s).

Install Tomcat9 as a service

  1. Open CMD mode as Administrator
  2. Navigate to c:\program files\mrc\development\m-power\tomcat\bin
  3. Type service install TC9DEV
  4. Type tomcat9w //ES//TC9DEV
  5. In the Java tab set the JVM to the appropriate jvm.dll (found in a path similar to C:\Program Files\Java\jdk1.8.X_XX\jre\bin\server\jvm.dll
  6. In Java options, add the following:
    -Xmx512m
    -Xms512m
    (Change the above to match your usuage needs)
  7. Be sure that the Initial Memory Pool, Maximum memory pool, and Thread stack size inputs are all empty
  8. Back in the general tab. ensure that the startup type is Automatic
  9. Press Start

Repeat the above process for your production instance (as well as any other instance you have)

Linux Instructions

  1. Download the Linux version of Tomcat 9 from mrc here
  2. Stop Existing Tomcat
  3. Rename existing Tomcat folder to Tomcat 7
  4. Unzip downloaded file into /m-power. When completed you should have an m-power/tomcat/ folder
  5. Move tools.jar from tomcat7/lib to tomcat/lib
  6. If you connect to MSSQL or MySQL, move over the necessary jar files from tomcat7/lib to tomcat/lib
  7. Examine server.xml in tomcat7/conf. Specifically, note the shutdown port, connector port, and contexts. Ensure these changes are made within the server.xml in tomcat/conf
  8. Ensure that the permission set to /tomcat/bin/catalina.sh allows this file to be executable

Once completed, repeat these steps for any other Tomcat instances you may running on the server (ie….development, UAT, production, etc)

Troubleshooting

  • If Tomcat does not start, check the logs and see if it is complaining about duplicate entries in your web.xml file. If so, rename your /mrcjava/WEB-INF/web.xml to web7.xml. Then download this blank web.xml file into /mrcjava/WEB-INF/web.xml. Finally, run the conversion process located in /m-power named update-webxml.bat (as an Administrator) to populate the file.
  • Any custom entries you made your web.xml will not be brought over in the conversion process. Instead, manually copy and paste the specific entries from web7.xml to web.xml.
  • If you have any nightly processes that automatically restart Tomcat, ensure they are pointing at the new job name (applicable on windows)

Created: June 22, 2018 | Modified: July 18, 2018

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Compiling Admin m-Painter mrc-Productivity Series RPG DB2 Database Production Dropdowns Application Properties Video App Properties Bar Graphs Record Selections Dates SQL Prompt Screens Maintainers Advanced Retrievals Report Administration Java Data Dictionary Performance Tomcat Build Process Reports Graph Properties Maintainer Calculations Excel Graphs Summaries Retrieval Freemarker Getting Started External Objects Graphing Popular Form Validation Parameters Email Bootstrap Templates Security

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.