With the June 2012 release, m-Power now fully supports the use of Tomcat 7.
For your convenience, this has been packaged into an exe file to automatically upgrade your m-Power instances from Tomcat 6 to Tomcat 7.
Note: Running this exe requires your m-Power server to have at least JDK 1.8 running or have an m-Power version of August 2015 or later. mrc strongly recommends installing Tomcat 7 only on development first, testing everything to make sure there are no issues, and then installing Tomcat 7 on production.
- Download the exe file for your server:
- Run the exe and follow the prompts.
- If you had any nightly jobs that stopped and started Tomcat 6 nightly, please adjust them to reference Tomcat 7 (i.e. TC7DEV rather than TC6DEV).
Note: Tomcat 7 requires that every application created must exist in the m-power\mrcjava\WEB-INF\web.xml file. Existing applications will automatically be added by the exe. New applications generated while using Tomcat 7 will automatically add the necessary entries to web.xml on compile. However, this will only handle your development instance. When promoting applications from development to production, you will have to ensure that this web.xml file gets updated in production and Tomcat is restarted after. To update the web.xml in production, you can take either of the following steps:
- Copy this file from development to production. The Application Promotion Utility will do this for you.
- Run the update-webxml.bat file every time you promote a new application. This file can be found in your production m-power folder.
Note: Any customization made to the Tomcat 6 files (such as SSL, context paths, web.xml, etc.) will need to be configured again to the file in the new Tomcat 7 folder. This includes any Tomcat memory allocation changes made. To change your new Tomcat 7 memory, please follow these instructions:
- Open a PC command line.
(Editor’s Note: Use the actual path that m-Power is installed at.)
- Next, type
tomcat7w //ES//TC7DEVwhere TC7DEV is the service name you chose in the previous step.
- A window will pop up. Switch to the Java tab.
- Change the Java Virtual Machine option to:
Note: Make sure this path is pointing to the correct file on your server.
- Add the following six lines to the end of the Java Options window:
- Hit OK.
- Start the service as you usually would.