Tomcat : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

tomcat log Tomcat

Apache is a group of people, not a company, who make an opensource webserver. They refer to the open source project as Jakarta. There are several parts to Tomcat. Tomcat itself is the supervisor. It hosts Catalina to serve as a womb for Servlets. It hosts Jasper to handle JSP (Java Server Pages). It hosts Coyote to handle vanilla HTTP (Hypertext Transfer Protocol) serving. However, it is common for people to add on the Apache HTTPD Web server version 2.4.9 Last revised/verified: 2014-03-17 for high performance HTTP serving. It runs beside, not under Tomcat.

All of this is free. It is easy to set up. It does not support EJB. Tomcat is now considered ex-Jakarta, but still Apache. What that means practically, I have no idea. Tomcat is version 8.0.14 Last revised/verified: 2014-10-01 handles Servlets 3.0 and JSP 2.2 Last revised/verified: 2012-12-12 On Windows it comes with an installer. After you have installed, set up the environment in the control panel.

set CATALINA_HOME=X:\Program Files\tomcat-8.0.14\
set JAVA_HOME=J:\Program Files\java\jdk1.8.0_25\

Then invoke X:\Program Files\tomcat-8.0.14\bin\startup.bat to launch Tomcat. In your browser type http://localhost:8080 and you will see a web page served by Tomcat sporting a green and yellow colour scheme, a cat and a feather if all went according to plan. Note that is localhost:8080 not localhost:80. You can then run the various examples. Use X:\Program Files\tomcat-8.0.14\bin\shutdown.bat to shut Tomcat down. Glassfish is a common faster alternative that in addition handles EE (Enterprise Edition).

The main thing you have to configure is a list of file extensions and their corresponding MIME (Multipurpose Internet Mail Extensions) types.

Directory Structure

You would typically install Tomcat in X:\Program Files\tomcat-8.0.14\ . Everything fits in the tree structure under that directory.
Tomcat Directories
Directory Use
bin Executables, startup.bat, shutdown.bat and *.sh files to control taking Tomcat up and down.
conf *.policy, *.properties and *.xml files to configure Tomcat.
lib *.jar files.
logs logs of what Tomcat did.
temp temporary work space.
webapps Has a tree structure like the equivalent statically-served web pages. Instead of *.html files, it mostly has *.jsp files. Also contains *.html, *.gif, *.png, *.jpg, *.svg etc. files served statically.
webapps/docs Where to extract the documentation tar file.
webapps/ROOT/WEB-INF/web.xml The Web Application Deployment Descriptor for your application. This is a *.xml file describing the Servlets and other components that make up your application, along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. This lets your clients use short simple names to invoke your Servlets, which may have long qualified names.
webapps/ROOT/WEB-INF/classes contains any Java class files (and associated resources) required for your application, including both Servlet and non-Servlet classes, that are not combined into *.jar files. This includes your Java source to handle your custom tags. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. For example, a Java class named com.mindprod.practice. MyServlet would need to be stored in a file named /WEB-INF/classes/com/mindprod/practice/ MyServlet.class.
webapps/ROOT/WEB-INF/jsp contains *.tld taglib descriptor files.
webapps/ROOT/WEB-INF/tags contains *.tag files.
webapps/ROOT/WEB-INF/lib Contains *.jar files that contain Java class files (and associated resources) required for your application, including third party class libraries or JDBC (Java Data Base Connectivity) drivers.
work Where Tomcat puts the *.java and *.class files it generates from the *.jsp files.

Books

book cover recommend book⇒Tomcat: The Definitive Guideto book home
by Jason Brittain, Ian F. Darwin 978-0-596-10106-0 paperback
publisher O’Reilly recommended 978-0-613-91215-0 hardcover
published 2007-10-30 978-0-596-55494-1 eBook
  B0043EWU4S kindle
For those who administrate the Tomcat server.
Australian flag abe books anz abe books.co.uk UK flag
Chinese flag amazon.cn amazon.co.uk UK flag
German flag abe books.de abe books.ca Canadian flag
German flag amazon.de amazon.ca Canadian flag
Spanish flag amazon.es Chapters Indigo Canadian flag
Spanish flag iberlibro.com abe books.com American flag
French flag abe books.fr amazon.com American flag
French flag amazon.fr Barnes & Noble American flag
Italian flag abe books.it Google play American flag
Italian flag amazon.it O’Reilly Safari American flag
India flag junglee.com Powells American flag
UN flag Kobo other stores UN flag
book cover recommend book⇒Apache Cookbook: Solutions and Examples for Apache Administratorsto book home
by Rich Bowen, Ken Coar 978-0-596-52994-9 paperback
publisher O’Reilly recommended 978-0-596-55156-8 eBook
published 2008-01-11 B0028N4WH4 kindle
This is for people who have to administer the server, not who write code to run in it.
Australian flag abe books anz abe books.co.uk UK flag
Chinese flag amazon.cn amazon.co.uk UK flag
German flag abe books.de abe books.ca Canadian flag
German flag amazon.de amazon.ca Canadian flag
Spanish flag amazon.es Chapters Indigo Canadian flag
Spanish flag iberlibro.com abe books.com American flag
French flag abe books.fr amazon.com American flag
French flag amazon.fr Barnes & Noble American flag
Italian flag abe books.it Google play American flag
Italian flag amazon.it O’Reilly Safari American flag
India flag junglee.com Powells American flag
UN flag Kobo other stores UN flag
book cover recommend book⇒Apache: The Definitive Guide, third editionto book home
by Ben Laurie, Peter Laurie 978-0-596-00203-9 paperback
publisher O’Reilly recommended 978-1-4493-6654-4 eBook
published 2002-12 B00BIRRRW8 kindle
For Apache administrators.
Australian flag abe books anz abe books.co.uk UK flag
Chinese flag amazon.cn amazon.co.uk UK flag
German flag abe books.de abe books.ca Canadian flag
German flag amazon.de amazon.ca Canadian flag
Spanish flag amazon.es Chapters Indigo Canadian flag
Spanish flag iberlibro.com abe books.com American flag
French flag abe books.fr amazon.com American flag
French flag amazon.fr Barnes & Noble American flag
Italian flag abe books.it Google play American flag
Italian flag amazon.it O’Reilly Safari American flag
India flag junglee.com Powells American flag
UN flag Kobo other stores UN flag

This page is posted
on the web at:

http://mindprod.com/jgloss/tomcat.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\tomcat.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
IP:[65.110.21.43]
Your face IP:[54.237.235.12]
You are visitor number