mrc Documentation
michaels, ross &
cole, ltd.
http://www.mrc-productivity.com/
|
|
There
are certain occasions where, based on convenience/security, users do not wish
to host m-Power directly off of the root of their AS400. Since m-Power ships
pre-configured to run there, a few additional configurations will need to take
place. In this example, we will walk through a process where we reconfigure
m-Power to run within a folder K:\temp\test\m-power:
A.
Install m-Power on any directory on Windows system
1.
Change the server.xml file (in
K:\temp\test\m-power\tomcat\conf) to make these two line point to the new
locations:
<Context
path="/webapp/mrc" docBase="K:/temp/test/m-power/mrcwebgui"
debug="0" reloadable="true" >
<Context path="/mrcjava" docBase="K:/temp/test/m-power/mrcjava"
debug="0" reloadable="true" >
2.
Change the mrctool.properties file (in directory
K:\temp\test\m-power\proddata\conf) to reflect the m-Power location:
target_location=K\:\\\\temp\\test\\m-power\\mrcjava\\WEB-INF
classpath=.;"K:\\\\temp\\test\\m-power\\mrcjava\\WEB-INF\\lib\\mrcjs11.jar";"K:\\\\temp\\test\\m-power\\proddata\\lib\\servlet.jar"
3.
Change the start_tomcat.bat and the end_tomcat.bat files (in K:\temp\test\m-power) to
reflect new m-Power location:
Edit
start_tomcat.bat file contents:
echo off
set JAVA_HOME=C:/j2sdk1.4.2
set CATALINA_HOME=K:\temp\test\m-power\tomcat
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
call "%EXECUTABLE%" start
Edit
end_tomcat.bat file contents:
echo off
set JAVA_HOME=C:/j2sdk1.4.2
set CATALINA_HOME=K:\temp\test\m-power\tomcat
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
call "%EXECUTABLE%" stop
4.
Run MRCPS.MRC00 to set the target location for generated applications. For
example: K:\\temp\test\m-power\mrcjava\WEB-INF.
B.
Install m-power on any directory on AS400
Assume
you want to install m-Power on the IFS directory /home/test/m-power
1.
Change the server.xml file (in
/home/test/m-power/tomcat/conf) to make these two line point to the new
locations:
<Context
path="/webapp/mrc" docBase="/home/test/m-power/mrcwebgui"
debug="0" reloadable="true" >
<Context path="/mrcjava" docBase="/home/test/m-power/mrcjava"
debug="0" reloadable="true" >
2.
Change the mrctool.properties file (in directory K:\temp\test\m-power\proddata\conf)
to reflect the new m-Power location:
target_location=/home/test/m-power/mrcjava\\WEB-INF
classpath=.;/home/test/m-power/mrcjava/WEB-INF/lib\\mrcjs11.jar;/home/test/m-power/proddata/lib/servlet.jar
3.
Use start_tomcat400.sh and end_tomcat400.sh to start/end
tomcat:
4.
Run MRCPS.MRC00 to set the target location for generated applications. For
example: /home/test/m-power/mrcjava/WEB-INF.
Note:
If you are attempting to set up a
new instance of m-Power to serve as a production instance, you will need to do
two additional steps:
1.
Install or copy your current m-Power directory to the /home/test/m-power.
2. Modify the /home/test/m-power/tomcat/conf/server.xml
<Service
name="Catalina">
<Connector port="8011" /> <--- Change the Connector
Port as your development instance of Tomcat already uses this number.