mrc Documentation

michaels, ross & cole, ltd.

http://www.mrc-productivity.com/

 

 

Installation of Apache Tomcat Application Server

To facilitate the use of Java servlet technology, mrc distributes a pre-configured version of the Apache Tomcat Application Server.

Section 1: Installing Apache Tomcat on the iSeries:

1.     Download the pre-configured version of Apache Tomcat in zip file format here. Unzip the file to create a folder named "mrctomcat". Copy the folder and its contents to your iSeries IFS root.

2.  Next we need to move this file to your AS400. The easiest and quickest way to do this is via FTP.

Click Start -> Run. In the open box, type the letters “CMD.”

A black window will open, type the following:
FTP 999.999.999 where 999.999.999 is the IP address to your AS400.

You will now be prompted for your AS400 username and password.

Type “cd /” (Note: There is a “space” between “cd” and “/”)

Type “binary”

Type “lcd c:\temp”

Type “put mrctomcat.zip

Type “quit”

Type “exit”

From your iSeries 5250 session type QSH, to get into the QSHELL environment.

Type “cd /” (Note: There is a “space” between “cd” and “/”)

Type: “jar -xf mrctomcat.zip” – This will extract your mrctomcat.zip file into a folder named                   mrctomcat.

When you get a $ sign returned your iSeries should be done uncompressing this file and Tomcat will have been installed successfully.

3.  Starting and Stopping Tomcat is straightforward.
Start Tomcat: MRCAPPLLIB/MRCTOMCAT FUNC(*START).
Stop Tomcat: MRCAPPLLIB/MRCTOMCAT FUNC(*END)

 

Section 2: Installing Apache Tomcat on Microsoft Windows:

1.      Download m-Power, which contains the pre-configured version of Apache Tomcat here.  Unzip the contents of m-power.zip to the Windows server root directory, C:\, for example.  A directory named “m-power” will be created for you on the root and a directory named “tomcat” will be created under that.

2.      Install the Java 2 SDK that is needed to run the Tomcat Application Server.  The Windows Java 2 SDK is included in the download.  Execute C:\m-power\jdk\j2sdk-1_4_2-windows-i586.exe and install it to the default location.

3.      To start the Tomcat Web Server, execute C:\m-power\start_tomcat.bat.

4.      Point your browser to http://x.x.x.x:8011/webapp/mrc/  (where x.x.x.x is the IP address of the server running Tomcat). Click the 'm-Power Test Servlet' link to confirm that Tomcat is running properly.  You may substitute 'localhost' instead of the IP address if the server and the client are the same hardware.