Deploying Natural Availability Server on Application Server

Natural Availability Server supports the following servlet containers:

  • Tomcat®

  • WildFly®

The NaturalAvailabilityServer.war can be found in the following directory:

/NaturalAvailabilityServer/lib

Follow these steps to run Natural Availability Server on a web server:

  1. Configure the application.properties file (under <installation location>\NaturalAvailabilityServer\conf) following the instructions in the section Configuring the Natural Availability Server.

  2. Encrypt the passwords in the application.properties following the instructions in the section Encrypting Passwords.

  3. Place the application.properties (and, if needed, the license file) in a location visible to the NaturalAvailiablityServer.

    There are two alternatives for this step:

    • Add the file(s) to the .war before deploying the .war:

      Navigate to the folder of the NaturalAvailabilityServer.war file.
      Add the following directory structure WEB-INF/classes to your current directory.
      Under WEB-INF/classes add the configuration files (application.properties and nha<version>.xml)
      Run the command: jar -u -f NaturalAvailabilityServer.war WEB-INF/classes/application.properties WEB-INF/classes/nha93.xml (assuming 9.3 is the version).

    • Or ...

      Follow the instructions described in the section Advanced Configuration.

  4. Copy the .war to the deployment folder in the web server:

    Web Server

    Directory

    Tomcat®

    /Webapp

    WildFly®

    /standalone/deployments

  5. Start the web server application.

  6. The Angular© web application will be available under the following URL:

    http://<server location>:<default port of web server>