Standalone installation - Install Jaqpot

Compile, Build and Run Jaqpot

We will first use git to download the source code of Jaqpot3 from https://github.com/alphaville/jaqpot3. The source code of Jaqpot3 will be downloaded (the latest version) from the online CVS. This will create a new folder named 'jaqpot3'. We'll show write away how to compile it and run the web application on your computer. In order to download the latest version, run:

$ git clone git://github.com/alphaville/jaqpot3.git

This will create a folder 'jaqpot3' and download the source code and the pom.xml file where all Maven dependencies are defined. The following commands will compile Jaqpot3 and will start it using in Tomcat:

#!/bin/bash
cd jaqpot3/jaqpot3-standalone/;
mvn clean install;
cd ../jaqpot3-servlet/ ;
rm -r ./src/main/webapp/WEB-INF/classes/ ;
mvn clean tomcat:run ;

The first time you run this it will take some time because your local Maven repository needs to be updated but after that it will be much faster. If everything is as expected you should be able to have Jaqpot running on port 8080 (check out http://localhost:8080 ).

The script we are using to start the server is a bit more elaborate as it includes some configuration of the JVM. We publish it here to for the users that want to do some JVM optimization and for completeness as well.

#!/bin/bash
export export MAVEN_OPTS=... # YOUR JVM options here
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.24/;
cd jaqpot3/jaqpot3-standalone/;
mvn -DskipTests=true clean install ;
cd ../ ;
cd jaqpot3-servlet/ ;
rm -r ./src/main/webapp/WEB-INF/classes/ ;
mvn clean tomcat:run ;

The script we are using for opentox.ntua.gr:8080 can be downloaded from here. These are the JVM options we use:

-Xmx2048m 
-Xms2048m
-Xmn788m
-Xss256k
-XX:+UseLargePages -XX:LargePageSizeInBytes=1m
-XX:ParallelGCThreads=4
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:SurvivorRatio=8
-XX:TargetSurvivorRatio=90
-XX:MaxTenuringThreshold=15
-XX:+UseBiasedLocking
-XX:+AggressiveOpts
-XX:CompileThreshold=1500
-XX:+UseFastAccessorMethods
-XX:MaxPermSize=128m
-Xverify:none
-Djava.net.preferIPv6Addresses=false
-Djava.net.preferIPv4Stack=true

You will now need to create policies for certain resources. Open a web browser and navigate to http://your-server-name:8080/login and login using your account credentials (e.g. username guest and password guest). Then go to http://your-server-name:8080/iface/policy and create a policy that determines which individuals and/or groups have the right to access the resource http://your-server-name:8080/shutdown which is used to shut down the server for maintenance. An example policy can be found here