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.

 » Read more..

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.

 » Read more..

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:

 » Read more..

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


 » Read more..

How Do You Install Apache Tomcat an an AWS Instance of SUSE Linux?

Problem scenario
You are running Linux SUSE in AWS.  You want to install and run Apache Tomcat.  How do you do this?

Install it with this command: sudo zypper -n in tomcat
Start it with this command: sudo service tomcat start

 » Read more..

How Do You Install Apache Tomcat an an AWS Instance of RedHat Enterprise Linux?

Problem scenario
Using a RHEL server in AWS, you want to deploy Apache Tomcat.  How do you do this?

Use this command to install it: sudo yum -y install tomcat
To start the service, run this command:  sudo systemctl start tomcat

 » Read more..

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,

 » Read more..