«

»

Install m-Power to Run in Any Directory

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
K:\temp\test\m-power:

    1. Install m-Power in the K:\temp\test folder on your Windows system
    2. Change the server.xml file (in K:\temp\test\m-power\tomcat\conf) to make these two line point to the new locations:

    1. 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"

  1. 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

    1. Change the server.xml file (in /home/test/m-power/tomcat/conf) to make these two line point to the new locations:

    1. 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

  1. Use start_tomcat400.sh and end_tomcat400.sh to start/end tomcat:
  2. 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

Related Posts:

Leave a Reply

Your email address will not be published.

* Copy this password:

* Type or paste password here:

297 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>