Deploying a WebClient application as a WAR file

Deploying a WebClient application as a WAR file

You can deploy your WebClient application by exporting it to a WAR file and then publish it to a Tomcat server, to do this follow these steps:

  1. Installing the Tomcat server service
    a. Download the Tomcat service installer from the Tomcat official page http://tomcat.apache.org/ , we recommend to use the version Tomcat 8.5 or higher




    IMPORTANT:  Please be sure that you download the Windows Service Installer and not a compressed package from the selected Tomcat version that you will use.


    b. 
    Install the Tomcat service, please take a note of the port numbers that you set in the configuration options during the installation process, these are the port numbers that the Tomcat server will use once its service starts.



    c. Once the installation completes ,you can search for "configure tomcat" and make sure it says the service is running.




  2.  Export your WebClient application to a WAR file 
    a. In Eclipse, make right-click over your web project and then go to Export -> WAR file



    b. 
    In the Export window, select the destination folder in which the WAR file will be created, also check that your web project is selected


    c. Click on the “Finish” button and wait until the export process is completed, check the destination folder to see that the WAR file was created



  3. Publish your WAR file 
    a. 
    Stop the Tomcat service by clicking the option “Stop”.

    b. Copy your WAR file and paste it inside the webapps folder that is located in the installation folder from your Tomcat version (example C:\Program Files\Apache Software Foundation\Tomcat 10.1\webapps)


    c. Starts the Tomcat service by clicking the “Start” button once the service is started a new folder with the same name that your WAR file must be automatically created inside the webapps folder.



    d. Test your application, use the same port number that the one you set on the configuration window during the installation process for the Tomcat service.








    • Related Articles

    • CM WebClient File Upload Setup

      File Upload This guide will show you how to upload files to your Web Server from your WebClient application. 1. Import the attached zip Java Project into your Eclipse Workspace. 2. Right click your Java Project, and select Properties. Under “Java ...
    • Calling WebClient from an External Application

      This section demonstrates how to pass a parameter to WebClient function. The following example is based on wxpcourse60 model calling the function WXwF, which prompts the user to insert an item record. The first step is to create a URL which calls the ...
    • Application Deployment with Android Devices

      The following steps assume you have already created a WebClient Mobile application. The process describes the steps to perform the installation of Cordova/PhoneGap, adding the necessary plugins, configure the application launch, create and setup the ...
    • iSeries Spool File and Operations Menu with WebClient

      Object Location All Plex objects are scoped under the “iSeries Items” entity. If any changes need to be made, then these objects will need to be inherited from. Non-Plex Files To run these processes fully, you will need 3 files (Download the ZIP with ...
    • CM WebClient 1.8.8 Release Notes

      Download current GA Release : Download CM WebClient 1.8.8 WebClient Mobile Updates To see the latest updates of WebClient Mobile, please visit: WebClient Mobile repository. What's New? Support Java 11 Complete functionality of DojoTimePicker.ctrl to ...