Tomcat : Java Glossary

go to home page T words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
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, and the servlet womb part of it as Catalina. Jasper is the JSP engine. Tomcat includes Catalina and the vanilla HTTP server. It is free. It supports JSP. 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. Version 6.0.20 handles Servlets 2.5 and JSP 2.1 Last revised/verified: 2009-04-15 On Windows it comes with an installer. After you have installed, set up the environment in the control panel.
set CATALINA_HOME=J:\Program Files\apache-tomcat-6.0.20
set JAVA_HOME=J:\Program Files\java\jdk1.6.0_17
Then invoke J:\Program Files\apache-tomcat-6.0.20\bin\ startup.bat to launch Tomcat. In your browser type http://localhost:8080 and you will see a web page served by Tomcat if all went according to plan. You can then run the various examples. Use J:\Program Files\apache-tomcat-6.0.20\bin\ shutdown.bat to shut Tomcat down. Glassfish is a common faster alternative that also handles EE.

Directory Structure

You would typically install Tomcat in X:\Program Files\apache-tomcat-6.0.20. Everthing 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/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 drivers.
work Where Tomcat puts the *.java and *.class files it generates from the *.jsp files.

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/tomcat.html J:\mindprod\jgloss\tomcat.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.106]
You are visitor number 12,329.