CTS2-LE Installation and Deployment in JBOSS v2

Aus CTS2-LE
Zur Navigation springen Zur Suche springen

This section describes how to install and deploy a CTS2-LE server in a JBOSS application server in a standalone mode. It has to be ensured that the system fulfils the defined prerequisites. The following steps are aligned to the recommended system environment and hence offer commands on the basis of an Ubuntu-like OS and an installed JBOSS Wildfly 10.

Preparation

  • Two zip files are shipped with CTS2LE:
    • WebCts2LE-V-x.x.x-resource-root.zip: a pre-configured directory comprising the vocabularies and the store content (denoted by <RESOURCE_ROOT> in the following)
    • WebCts2LE-V-x.x.x.war: the war file to be deployed (denoted by <SERVER-ZIP> in the following)
    • SuperLoader-V-x.x.x.jar: the executable jar file used to initiate the vocabulary loading process

!!! Ensure that you have sufficient privileges and a distinguished owner for all directories and files created below

!!! Ensure that Java 8 (>= 1.8.0_92) is installed on the target machine

Navigator-URL (to see the initial state and content after setup):

http://<host>:<port>/WebCts2LE


Installation

  1. Create a directory <x> where the terminology store will be located
  2. Create an environment variable called CTS2LE_RESOURCE_ROOT and set it to <x>/resources-custom
  3. Extract <RESOURCE_ROOT> to <x>
  4. run java -Xmx3000m -Xms1000m -XX:-UseGCOverheadLimit -Dfile.encoding=UTF-8 -jar SuperLoader-V-x.x.x.jar

This will initiate the vocabulary loading process. Please note that this may take some time depending on the number of imported vocabularies.

  1. Copy <SERVER-ZIP> to $JBOSS_HOME/standalone/deployments/
  2. Rename <SERVER-ZIP> to WebCts2LE.war
  3. Start the server: ./$JBOSS_HOME/bin/standalone.sh
  4. Stop the server: ./$JBOSS_HOME/bin/jboss-cli.sh --connect --command=:shutdown