Installing Tomcat 7 on Windows

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.

  1. Download the exe file for your server:
  2. Run the exe and follow the prompts.
  3. 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:

  1. Open a PC command line.
  2. Type cd \m-power\tomcat\bin
    (Editor’s Note: Use the actual path that m-Power is installed at.)
  3. Next, type tomcat7w //ES//TC7DEV where TC7DEV is the service name you chose in the previous step.
  4. A window will pop up. Switch to the Java tab.
  5. Change the Java Virtual Machine option to: C:\Program Files\Java\jdk1.8.0_40\jre\bin\server\jvm.dll.
    Note: Make sure this path is pointing to the correct file on your server.
  6. Add the following six lines to the end of the Java Options window:
    1. -Xmx1024m
      -Xms1024m
      -XX:PermSize=512m
      -XX:MaxPermSize=512m
      -XX:+CMSClassUnloadingEnabled
      -XX:+CMSPermGenSweepingEnabled

  7. Hit OK.
  8. Start the service as you usually would.

Related Posts:

  • No Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *