m-Power Documentation
![]() |
![]() |
m-Power and Tomcat 6 for Windows
For your convenience, m-Power ships with Tomcat version 5 and Sun's JDK 1.4. However, some users running on an Intel setting may want to upgrade to Tomcat 6. Specifically, Tomcat 6 has much better handling of memory issues. To convert your system from Tomcat 5 to Tomcat 6, you will need the following things:
- Tomcat 6 (downloadable here )
- JDK 1.6 (downloadable here )
1. Rename your Tomcat folder within c:\m-power to TOMCAT5.
2. Download Tomcat 6 and extract it to the c:\m-power folder. You should now have a Tomcat directory within c:\m-Power
3. Download JDK 1.6 and install it to your system.
4. Next, go into c:\m-power\TOMCAT5\common\lib and copy the following files to c:\m-power\mrcwebgui\WEB-INF\lib
o ant.jar
o ant-launcher.jar
o commons-pool-1.2.jar
5. 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
6. Copy tools.jar from C:\Program Files\Java\jdk1.6.0_07\lib to c:\m-power\tomcat\lib.
7. Next, go into c:\m-power\mrcwebgui\WEB-INF\. Edit the web.xml file Find the following text
<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>
8. 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).
9. Next, go into c:\m-power\ and edit the “start_tomcat.bat” file.
o Change this line: set JAVA_HOME=C:\j2sdk1.4.2
o To read this: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07
10. 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.
Now that everything works, how can we install as a service?
1. The first step is right click “My computer” and go to “Properties” Click Advanced and go to Environmental Variables.
o From here, add ;C:\Program Files\Java\jdk1.6.0_07\bin to the PATH.
o This step requires your machine to be restarted.
2. Next, go to a PC command line.
o CD to c:\m-power\tomcat\bin
o Type service.bat install Tomcat6
3. Next, type tomcat6w //ES//Tomcat6
o A window will pop up. Switch to the Java tab.
o Change the Java Virtual Machine option to: C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll
o Add the following four lines to the end of the Java Options window:
-Xmx512m
-Xms512m
-XX:PermSize=256m
-XX:MaxPermSize=256m
o Hit OK.
o Start the service as you usually would
































































































