Installing the OpenCms WAR File
As with most open-source projects, OpenCms is available in both source and binary releases. In Appendix A, I cover building OpenCms from source, but in this section, I will refer only to the binary build. Download the 5.0.1 release (opencms_5.0.1.zip
) from http://www.opencms.org/opencms/en/download/index.html, the OpenCms downloads page.
OpenCms, like most Java servlets, is packaged in a WAR file. This file contains all the files necessary for running the application. In Tomcat, all WAR files go under the webapps/
directory (in $CATALINA_HOME/
on Linux and %CATALINA_HOME%\
on Windows).
Once you have downloaded the opencms_5.0.1.zip
file, unzip it to a temporary directory and copy the opencms.war
file into Tomcat's webapps
directory. While Tomcat will eventually automatically detect the new WAR file, it is best to manually restart Tomcat, which will force it to reload all web applications. Note that OpenCms requires that the WAR be unpacked into a directory...