How to install m-Power to run on any directory
There are certain occasions where, based on convenience/security, users do not wish to host m-Power directly off of the root of their Development Server. Since m-Power ships pre-configured to run from the root, 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
- Install m-Power in the K:\temp\test folder on your Windows system
- Change the server.xml file (in K:\temp\test\m-power\tomcat\conf) to make these two line point to the new locations:
- 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"
- Install Tomcat as a service, as you normally would.
Install m-power on any directory on AS400
Assume you want to install m-Power on the IFS directory /home/test/m-power
- Change the server.xml file (in /home/test/m-power/tomcat/conf) to make these two line point to the new locations:
- 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
- Use start_tomcat400.sh and end_tomcat400.sh to start/end tomcat:
- Run MRCPS.MRC00 to set the target location for generated applications. For example: /home/test/m-power/mrcjava/WEB-INF.
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:
- Install or copy your current m-Power directory to the /home/test/m-power.
- Modify the /home/test/m-power/tomcat/conf/ server.xml