- Apache Tomcat - http://tomcat.apache.org/
- Note: Always do a fresh install of Tomcat
- Note: Windows users should ensure that there are no spaces in the complete tomcat path as this causes errors with JSF tools in Sakai
GOOD: C:\opt\tomcat\, C:\sakaistuff\installs\tomcat\
BAD: C:\program files\tomcat\, C:\opt\apache tomcat 7.0.1\
- Download tomcat 7 - http://tomcat.apache.org/download-70.cgi
Windows users should get the zip file instead of installing a service
It makes viewing the tomcat logs easier and it is easier to configureIf you're running the tag of Sakai 2.9.1 or earlier you need to be running Tomcat 7.0.21 or earlier. If you go any higher Webdav and Sitestats will have errors and not work. A better solution is to upgrade to the latest version of Sakai and Tomcat.Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.
- Extract to /opt (symlink the apache-tomcat-7.0.x directory to tomcat after extracting)
- Windows users should just rename the directory since they cannot symlink
- Extract the files to the same location as tomcat itself
- Modify conf/server.xml for international character support
- Add URIEncoding="UTF-8" to the Connector element
- <Connector port="8080" URIEncoding="UTF-8" ...
- Add URIEncoding="UTF-8" to the Connector element
- Set environment variable: CATALINA_HOME=/opt/tomcat
- Add $CATALINA_HOME/bin to PATH
- Setup the SETENV file in the tomcat/bin directory with JAVA_OPTS (from Install Java 1.7+)
Mac/Linux: Create a file called setenv.sh with the following (alternately, you can put this into your .bashrc file so they're automatically executed):
export JAVA_OPTS="-server -Xmx1028m -XX:MaxPermSize=320m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsun.lang.ClassLoader.allowArraySyntax=true"
Windows(PC): Create a file called setenv.bat with the following:
set JAVA_OPTS=-server -Xmx1028m -XX:MaxPermSize=320m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsun.lang.ClassLoader.allowArraySyntax=true
[OPTIONAL] Delete the default webapps from the webapps dir
rm -rf webapps/*
- Configure tomcat 7 to use the old tomcat 5.5 classloader dirs
- Edit conf/catalina.properties
Add the following to the line that begins with "common.loader=..."
,${catalina.base}/common/classes/,${catalina.base}/common/lib/*.jar
Add the following to the line that begins with "shared.loader=..."
${catalina.base}/shared/classes/,${catalina.base}/shared/lib/*.jar
Add the following to the line that begins with "server.loader=..."
${catalina.base}/server/classes/,${catalina.base}/server/lib/*.jar
[OPTIONAL] Create the directories
mkdir -p shared/classes shared/lib common/classes common/lib server/classes server/lib
- Edit conf/catalina.properties