djatoka
Djatoka is a web application running on tomcat installed via apt-get install tomcat6.
common tasks
- start: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 start
- stop: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 stop
- status: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 status
how to test if it's working
location
- web-application: /var/lib/tomcat6/webapps
- application-container:/usr/share/tomcat6/
- config files:
- /opt/access/adore-djatoka/bin/env.sh
- /usr/share/tomcat6/bin/catalina.sh
- djatoka: /var/log/djatoka/djatoka.log
dependencies
modifying config files
- after modifying any config file: restart tomcat
login information if necessary
proxy information
- bhladmin@bhl-proxy1:~$ sudo vi /etc/apache2/sites-enabled/bhl-test
Installation
Djatoka
- Version 1.1 From http://sourceforge.net/projects/djatoka/
- Download Djatoka from http://sourceforge.net/projects/djatoka/files/djatoka/1.1/adore-djatoka-1.1.tar.gz
- untar to /opt/access/adore-djatoka/
- modify /opt/access/adore-djatoka/bin/env.sh
- DJATOKA_HOME=/opt/access/adore-djatoka
- KAKADU_HOME=$DJATOKA_HOME/bin/$PLATFORM
export KAKADU_HOME
JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -Dkakadu.home=$KAKADU_HOME -Djava.library.path=$LIBPATH/$PLATFORM $KAKADU_LIBRARY_PATH"
JAVA_OPTS="$JAVA_OPTS -Dlog.dir=/var/log/djatoka"
export JAVA_OPTS
- modify /usr/share/tomcat6/bin/catalina.sh to call env.sh
- add
# -----------------------------------------------------------------------------
. /opt/access/adore-djatoka/bin/env.sh
# OS specific support. $var _must_ be set to either true or false.
- Deploy adore-djatoka-1.1/dist/adore-djatoka.war to /var/lib/tomcat6/webapps
- Set JAVA_HOME to sun JDK by modifying /etc/default/tomcat6
- #JAVA_HOME=/usr/lib/jvm/openjdk-6-jdk
JAVA_HOME=/usr/lib/jvm/java-6-sun