How Do You Find the Default Directory for Tomcat when It Acts as a Web Server?

Problem scenario
Your Tomcat server is has been configured to serve as a web server. You have access to the back-end Linux server. But you do not know what directory corresponds with the URL of the host. How do you find what the default directory is for files that are presented on the web?

From the back-end, run this: sudo find / -name index.html | grep tomcat

Look for a WEB-INF or webapps directory.

How Do You Get Apache Tomcat to Work from the Source Installation Media?

Problem scenario(s)
One of the following problems apply.

1. You are trying to start Tomcat on Linux (e.g., with bash start) and you get this error:

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.apache.catalina.startup.Bootstrap.init(
at org.apache.catalina.startup.Bootstrap.main(

* OR *
2. You have nothing installed on Linux yet. You want to install Apache Tomcat from the source (not binary) installation media here.

How to Do You Install Apache Tomcat on Ubuntu Linux?

Problem scenario
You want to install Apache Tomcat on Ubuntu Linux.  How do you do this?

There are three separate ways of doing this.
Possible solution #1: Run this command: sudo apt-get -y install tomcat8
Possible solution #2: See this posting.
Possible solution #3:  Use these directions with one modification:  Step #3 has a URL that needs to be replaced with this URL:

How Do You Deploy Apache Tomcat in a Docker Instance in an AWS Ubuntu Linux Server?

Problem scenario
You want to deploy Apache Tomcat in a Docker container on an AWS instance of Ubuntu Linux.  How do you do this?

1.  Install Docker.  See this link if you need assistance.
2.  Start the Docker service with this command:  sudo service docker start
3.  Run these two commands:

docker pull consol/tomcat-8.0
docker run consol/tomcat-8.0


A List of Apache Tomcat Books

Apache Jakarta-Tomcat by James Goodwill
Apache Tomcat 7 by Aleksa Vukotic and James Goodwill
Apache Tomcat 7 Essentials by Tanuj Khare
Apache Tomcat 7 User Guide by Apache Software Foundation
Apache TomEE Cookbook: Apache TomEE Administrator Cookbook by Mr Gurkan Erdogdu 
Beginning JSP, JSF and Tomcat: Java Web Development (Expert’s Voice in Java) by Giulio Zambon
Connection Pooling in a Java Web Application with Tomcat and NetBeans by Arthur Buliva
Deploying with JRuby 9k: Deliver Scalable Web Apps Using the JVM by Joe Kutner
Developing a Java Web Application in a Day: Step by step explanations with Eclipse Mars,