Dedicated Tomcat Instance

Skip to end of metadata
Go to start of metadata
Table of Contents

This documentation explains the steps for automatic installation under Unix on a dedicated tomcat instance.
For manual Installation (on either a dedicated or shared instance) please refer to the Generic WAR Installation documentation.

Automatic Installation on a Dedicated Tomcat Instance

You can use the automated install script to set up a dedicated Tomcat server for Artifactory.

These instructions have been verified against Tomcat 6, but should work on Tomcat 5 with minor adjustments.
You can change the directory names to your liking but you'd need to adjust the install scripts accordingly (currently directory names are hard-coded).
  1. Extract the Apache Tomcat download under /opt/tomcat/artifactory.
  2. Extract Artifactory standalone /opt/artifactory/current
  3. Run (or edit and run) the $ARTIFACTORY_HOME/bin/tomcat-install.sh script.
    The script will do the following:
    • Run the $ARTIFACTORY_HOME/bin/install.sh script.
    • Replace /etc/init.d/artifactory with $ARTIFACTORY_HOME/misc/Tomcat/artifactory.
    • Replace tomcat's conf/server.xml with $ARTIFACTORY_HOME/misc/Tomcat/server.xml (change its ports if you wish)
    • Create under Tomcat the conf/Catalina/localhost directory and copy the $ARTIFACTORY_HOME/misc/Tomcat/artifactory.xml into it.
    • Replace tomcat's bin/setenv.sh with $ARTIFACTORY_HOME/misc/Tomcat/setenv.sh
    • Change the Tomcat home owner : chown -R artifactory /opt/tomcat/artifactory
      The script will change the default Tomcat configuration files and is intended to be used on a newly installed Tomcat only.
  4. Start tomcat:
    service artifactory start, or
    /etc/init.d/artifactory start
    Artifactory will be available on this Tomcat instance on port 8081 for HTTP and 8019 for AJP13.
A Note About Pre-packaged Tomcat Distributions
There have been a reports suggesting there are known problems deploying to automatically Tomcat installed as part of various Linux distros with default security settings.
See, for example: http://www.nabble.com/Re%3A-java.lang.NoClassDefFoundError%3A-org-quartz-CronExpression-p13139289.html
Please check the specific Tomcat installation you are using or download and install the "standard" Tomcat from the Apache site.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.