Though Apache Tomcat could be installed via package managers and installers available; we would follow a platform-independent approach, which gives the user more freedom to configure and administer it. Apache Tomcat requires the JDK installed on your system to work. Download the latest version .zip
or .tar.gz
version from http://tomcat.apache.org/download-70.cgi, and extract at a convenient location. Browse into the directory, and you will find various subdirectories. Here is a short description for these:
bin
: Location for the binary executablesconf
: Location for the configuration fileslib
: Location for the external librarieslogs
: Default location for the log filestemp
: Default location for the temporary fileswebapps
: Location for web application or.war
files deploymentwork
: Contains generated application-specific servlet files for various JSPs
Tomcat is ready to use after this installation. The packaged .war
files (present as code samples from Chapter 4 to Chapter 8) could be deployed here.