Deploying Batch Results

The uploadThis folder

The results of running a batch are contained within the folder batch/uploadThis. The uploadThis folder contains:

Local Deployment

It is a good idea to check the contents by running locally first, at least for the first couple of times you run a batch.

Note that:

Unix

If the default java runtime is not of a late enough version or is a jre and not a jdk then runServer.sh must be edited to state the full path of a jdk java executable.

Windows

Browser Index

Uploading to a server

Note: for Internet Explorer you must provide the http:// prefix

Stopping a remote server

The easiest way to stop a server is to enter

ps aux

In the resulting listing will be one line corresponding to the process for the server you wish to stop: eg

500 27452 0.0 5.9 681688 123168 ? Sl Mar07 0:18 /usr/java/jdk1.6.0_20/bin/java -server -jar jt.jar --port 8078 --path /index Index.war --path /diagrams Diagrams.war --

kill -9 27452

Running on a different port

The default port 8080 can be changed by editing the runServer script.

As the server starts confirm the port number INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8070 STARTING

Once the server is running, you will need to specify the new port number in the url as you access the content:

Browser Index Port

 

Using other webservers

For convenience, Jetty Runner jar is included in the batch result for ease of deployment. However, you do not have to use Jetty if, for example, you prefer a different application server which you already have installed. Alternatives to Jetty include: