Lesson 5: Deploying the application components

To deploy the components in the application, run the application process on the new environment.

Now that you have an environment and all the necessary processes, you can deploy the components by running the application process.
  1. Open the application page by clicking Applications and then clicking the application name.
  2. In the same row as your environment, click the Request Process icon, as shown in the following figure.

    Clicking Request Process on an environment
  3. In the Create Deployment wizard, select the Deploy JPetStore process.
  4. Go to Choose Component Versions and click Select For All > Latest Available.
    Make sure that version 1.0 is selected for each component, as shown in the following figure:
    Selecting the most recent version of each component
    You must select a version for each component; if you do not select a version, that component is not deployed.
  5. Review the deployment settings and click Submit Deployment.
The web page shows you the progress of the application process request. From this page, you can watch as the processes run. The following figure the application process partially completed. The application component process is finished and the other two component processes are running.
The log for the application process request, showing the component processes that are running
If the process runs successfully, the request shows that each component process is finished, as in the following figure:
The log for the application process request, showing that the component processes ran successfully
In this case, you can view the running application at the following URL, by substituting the host name of your target system for hostname. This is the host name of the agent that you configured in Configuring the agent and target system. In the URL, specify the tomcat.contextroot value that you entered for this environment after the port number.
http://hostname:8081/JPetStoreDev
The application shows a simple online shopping site in the form of a pet store. The following figure shows the home page:
The home page of the JPetStore application, showing a link to enter the store
From the home page, click Enter the Store and then browse the items that are available, as shown in the following figure:
The main menu page of the JPetStore application
If the application process did not run successfully, one of the component processes might have failed. In this case, the process is listed with a status of Failed. To troubleshoot this failed process, expand the log section for the component, and find the step that failed:
The log for the application process request, showing a component process that did not complete
From here, you can look at the command-line output log for each step in the process by clicking the Output Log icon.
If one of your component processes did not complete, identify the step that did not complete. Verify that the properties for that step are correct and that the steps are in the correct order in the process. Then, run the application process again.
Note: If you run the application process again, be sure to clear the Only Changed Versions check box and select the versions of each component. If you leave this check box selected, the server runs the component processes only for components that have new versions.

This application process installed each of the components in the application by running their component processes.

Application processes can also uninstall or update components or run other configuration tasks for the application and its components.