Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

Friday, March 14, 2008

Installing war version of Archiva

Installing war version of Archiva is neither straight forward if $CATACLINA_HOME is NOT owned by you. You only own $CATACLINA_BASE, and there is $CATACLINA_HOME/bin and but no $CATACLINA_BASE/bin

Original

* Create a directory in tomcat called archiva, at the same level as bin, conf, logs and the others.

* Copy the war file into the new directory

* Create a conf/Catalina/localhost/archiva.xml file with the following data (replace the database paths with a suitable location):

It would be more clear to put it

* Create a directory in tomcat called $CATALINA_BASE/archiva

* Copy the war file into $CATALINA_BASE/archiva

* Create a $CATALINA_BASE/conf/Catalina/localhost/archiva.xml …..
Original

Install derby-10.1.3.1.jar and mail-1.4.jar into the Tomcat common/lib.

For Tomcat 6.0.*, there is no more “common/lib”, put them in “$CATALINA_HOME/lib” instead Details of change see here

Apart from mail.jar you also need to be put under $CATALINA_HOME/lib to get mail work
Java Activation Framework 1.1 - activation-1.1.jar

Original

export CATALINA_OPTS="-Dappserver.home=$CATALINA_HOME -Dappserver.base=$CATALINA_HOME"

Again, if $CATACLINA_HOME is not owned by you.
export CATALINA_OPTS="-Dappserver.home=$CATALINA_BASE -Dappserver.base=$CATALINA_BASE" is better

If you use the default Derby DB, the default error log file is put under $HOME, to change it set the following properties in CATALINA_OPTS as well:
-Dderby.stream.error.file=xxxx/logs/derby.log"