Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Installing .war file in Tomcat server

Jeffery Antoniuk edited this page Mar 11, 2020 · 10 revisions

See the included Dockerfile for a build example, the following is obsolete.

These instructions assume you have a functioning Tomcat server. The .war file is pre-compiled and can be found in the git repository at '/NerveServer/dist/NerveService.war'.

1a) Checkout repository
git clone [email protected]:cwrc/NERVE.git (with key)
git clone git:/cwrc/NERVE.git (without key)

1b) Download the war file
wget https:/cwrc/NERVE/raw/master/dist/NerveService.war

2) Deploy by copying archive file
Copy the .war file /NERVE/dist/NerveService.war to the $CATALINA_HOME\webapps directory of any Tomcat instance. If the instance is running, the deployment will start instantly as Tomcat unpacks the archive and configures its context path.

3) Access web service
The web service will now be located at http://yourserver.com/NERVESERVER/, which will be the root address for the endpoints.

4) Test deployment
Brows to http://yourserver.com/NERVESERVER/test.html and click on "Run Functional Tests" to test the deployment. Note code coverage will only work if the server has been set up with the jacoco agent.

Clone this wiki locally