Setting up and administering the web application

Obtaining the source code

Third-party software and libraries

What you will need:

Setting up the MySQL server

Building and deploying

You probably don't want to run the build process as root (sudo ant deploy); it makes more sense to use sudo just once, to create the deployment directory /opt/tomcat/webapps/md/ , and then transfer its ownership (using chown) to yourself (i.e. the user who'll be doing the deployment).

You can then build and deploy the application with Apache Ant:

cd ~/md/md
ant deploy

Or, to also build and deploy documentation,

cd ~/md/md
ant deploy-javadoc

Building for deployment on a different host

If you build on one host for deployment to another host that runs Tomcat (or a similar web server that supports servlets), run

cd ~/md/md
ant dist
This will create file
~/md/md.war
, which you can then deploy to the remote server using the web-based application manager (https://HOST/manager/html).

Create coordinator accounts

Create accounts for the survey coordinators in the Missed Detection web application.

  • Web accounts for the coordinators: Use ~/md/md/create-roles.sh to create user accounts in the survey management system for the coordinators (or a single coordinator account) as desired. (See edu.rutgers.md.sqltools.CreateRoles for syntax).
    Back to main documentation page