In our last post we covered how to install Apache Tomcat on IBM i. Now we need to let Apache know about the Mobile Monitor. This means the WAR (Web application Archive) file needs to be deployed in Apache Tomcat. WAR files are like a zip file used to package a collection of JAVA Server pages, JAVA Servlets, JAVA classes, XML files, static web pages (HTML and related files) and other resources that make up a web application. The WAR file for the iCluster Mobile Monitor is provided as part of the zip file that can be downloaded from the Rocket Customer Portal.
One step that we didn’t cover in the last post was how to stop Apache Tomcat. If you want to stop Tomcat, run the /home/download/apache-tomcat-7.0.28/bin/shutdown.sh script in Qshell or set up a job schedule entry to run:
SBMJOB CMD(QSH CMD(‘/home/download/apache-tomcat-7.0.28/bin/shutdown.sh’)) JOB(STRTOMCAT7) JOBQ(QBATCH)
To deploy the Mobile Monitor WAR file, perform either one of the two following steps:
Method 1 (easier):
- Open a web browser and enter the URL http://your.server.name:8080/manager.
- Enter the default user ID and password (admin/admin) when prompted. The manager application is displayed as shown in the following figure :
3. Scroll down until you reach the Deploy section and under WAR file to deploy, click on Browse for Select WAR file to deploy and point to the WAR file that has been provided from the customer portal. Click Deploy.
4. Scroll up to the top and you should see OK
1. FTP the war file in Binary mode up to /home/download/apache-tomcat-7.0.28/webapps
The last step is to register the QUSER user profile for use with the Mobile Monitor, enter the following commands on all iCluster nodes:
DMADDUSR USER(QUSER) AUTH(*ADMIN) DESC(‘Mobile Monitor access user’).
At this point the mobile monitor can be used.
iCluster Tech Tuesday
Latest posts by iCluster Tech Tuesday (see all)
- iCluster and Mobility Part 4: Deploying the Mobile Monitor - July 28, 2015
- iCluster and Mobility Part 3: Apache Tomcat for Dummies - July 21, 2015
- iCluster and Mobility Part 2 Getting Started - July 14, 2015