2 .\" Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
3 .TH tomcat8 1M "May 2015" "SunOS 5.11" "System Administration Commands"
5 tomcat \- Apache Tomcat Version 8 overview
9 Apache Tomcat Version 8 (Tomcat) is implementation of
10 the Java Servlet and JavaServer Pages technologies.
12 Tomcat can be enabled by authorized user within the service
13 management facility (SMF), using the following fault management
14 resource identifier (FMRI):
18 svc:/network/http:tomcat8
22 Tomcat enabled via SMF is executed for better security with "webserv"
23 user credentials and with added "net_privaddr" privilege so it can be
24 configured to listen on privileged TCP ports (e.g. 80). With default
25 configuration Tomcat listens on TCP port 8080.
27 Unauthorized user can start Tomcat with his or her credentials using
28 ordinary startup scripts and by setting CATALINA_BASE environment
29 variable to path with his or her conf/, webapp/ and logs/ subdirectories
30 (see Tomcat directory structure bellow).
32 Similarly it's possible to run multiple SMF Tomcat instances by setting
33 CATALINA_BASE for both start and stop methods for newly created Tomcat
40 The following files specify the installation locations for Tomcat 6:
42 \fB\fB/etc/tomcat8/\fR\fR
46 Symbolic link to directory containing Tomcat 8 configuration files (/var/tomcat8/conf).
53 \fB\fB/usr/tomcat8/bin/\fR\fR
57 Contains Tomcat startup scripts.
64 \fB\fB/usr/tomcat8/lib/\fR\fR
68 Contains Tomcat private libraries.
75 \fB\fB/usr/tomvat8/docs/\fR\fR
79 Contains Tomcat documentation in HTML format. The directory has classical
80 WEBAPP structure and it's symbolically linked as /var/tomcat8/webapps/docs
81 (the link is part of web/java-servlet/tomcat/tomcat-examples packages).
88 \fB\fB/var/tomcat8/conf/\fR\fR
92 Contains Tomcat configuration files. A newly-installed Tomcat
93 contains a default \fBserver.xml\fR file. This is the main configuration file.
94 For setting Tomcat environment variables it's possible to create here
95 \fBsetenv.sh\fR file which is sourced during start by catalina.sh.
102 \fB\fB/var/tomcat8/logs/\fR\fR
106 Contains Tomcat log and output files.
113 \fB\fB/var/tomcat8/temp/\fR\fR
117 Directory used by the JVM for temporary files (java.io.tmpdir).
124 \fB\fB/var/tomcat8/webapps/\fR\fR
128 Tomcat Web Application Directory where are WAR files put for deployment.
135 \fB\fB/var/tomcat8/webapps/ROOT/\fR\fR
139 Directory with default (ROOT) web application which is served when URL
140 is requested without further path specifier (http://hostname/). After
141 Tomcat packages installation this directory is intentionally left empty
142 with just index.jsp and index.htm files. The HTML file redirects
143 requester to Tomcat home page which is in ROOT.example/ directory (this
144 file is part of web/java-servlet/tomcat/tomcat-examples package). The JSP file is default home
145 page which is shown when web/java-servlet/tomcat/tomcat-examples (and thus HTML file) is not
146 installed. This shall allow better deployment of custom ROOT web
147 application while maintain upgrade ability via packaging system (without
155 \fB\fB/var/tomcat8/webapps/ROOT.example/\fR\fR
159 Tomcat home web application (part of web/java-servlet/tomcat/tomcat-examples package).
166 \fB\fB/var/tomcat8/webapps/examples/\fR\fR
170 This directory contains web application with various ServLets and JSP
171 examples. The directory is part of web/java-servlet/tomcat/tomcat-examples package which can
172 be removed if it's required (to permanently disable this web
180 \fB\fB/var/tomcat8/work/\fR\fR
184 Directory where Tomcat places for web applications intermediate files
185 (such as compiled JSP files) during its work.
191 http://tomcat.apache.org/tomcat-8.0-doc