m-Power Documentation
![]() |
Upgrade from Tomcat 5 to Tomcat 6 on Windows Server
Current Customers will need to upgrade to JDK 1.6 before commencing with the instructions listed below. This information can be found here.
Current users of m-Power who run Tomcat 5 on Windows now have the option of upgrading to Tomcat 6. The instructions provided below will walk users with the process of upgrading their application server.
- 1. Stop and Remove existing Tomcat service.
- 2. Rename current Tomcat folder (c:\m-power\Tomcat) to TOMCAT5
- 3. Download Tomcat.zip from here and extract to c:\m-power
- 4. If you are using any non-default ports, be sure to modify the c:\m-power\tomcat\conf\server.xml to reflect your customization.
- 5. Next, go into c:\m-power\TOMCAT5\common\lib and copy the following files to c:\m-power\mrcwebgui\WEB-INF\lib
- 6. Next, go into c:\m-power\TOMCAT5\shared\lib and copy all files to c:\m-power\mrcwebgui\WEB-INF\lib and c:\m-power\mrcjava\WEB-INF\lib
- 7. Copy tools.jar from C:\Program Files\Java\jdk1.6.0_07\lib to c:\m-power\tomcat\lib.
- 8. Next, go into c:\m-power\mrcwebgui\WEB-INF\. Edit the web.xml file Find the following text:
- 9. Please repeat the step above, however this time do this to the c:\m-power\mrcjava\WEB-INF\web.xml file. Note: There are two areas that appear similar. Be sure to copy the above code near line 22 (Do not place at the end of the document).
- 10. Next, go into c:\m-power\ and edit the “start_tomcat.bat” file.
- 11. Now that everything is pointing to the new JDK, you can start Tomcat from the batch file to ensure that m-Power is running and that you can build/run applications.
- 1. The first step is right click “My computer” and go to “Properties” Click Advanced and go to Environmental Variables.
- 2. Next, go to a PC command line.
- 3. Next, type tomcat6w //ES//Tomcat6
- - Open a command window and navigate to c:\m-power\tomcat\bin.
- - Type "service.bat remove"
- - Close command window
- - ant.jar
- - ant-launcher.jar
- - commons-pool-1.2.jar
- <servlet>
- <servlet-name> servletToJsp </servlet-name>
- <servlet-class> servletToJsp </servlet-class>
- </servlet>
Directly beneath it, copy this text:
- <servlet>
- <servlet-name>invoker</servlet-name>
- <servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-class>
- <init-param>
- <param-name>debug</param-name>
- <param-value>0</param-value>
- </init-param>
- <load-on-startup>2</load-on-startup>
- </servlet>
- - Change this line: set JAVA_HOME=C:\j2sdk1.4.2
- - To read this: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07
Now that everything works, how can we install as a service?
- - From here, add ;C:\Program Files\Java\jdk1.6.0_07\bin to the PATH. Remove C:\j2sdk1.4.2\bin from the path if the entry exists.
- - This step requires your machine to be restarted.
- - CD to c:\m-power\tomcat\bin
- - Type service.bat install Tomcat6
- - A window will pop up. Switch to the Java tab.
- - Change the Java Virtual Machine option to: C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll
- - Add the following four lines to the end of the Java Options window:
- -Xmx512m
- -Xms512m
- -XX:PermSize=256m
- -XX:MaxPermSize=256m
- - Hit OK.
- - Start the service as you usually would
Congratulations -- you have successfully converted your Tomcat version to Tomcat 6!































































































