Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Tomcat 6 - Annotated Sample Configuration Files

When you download Tomcat, it's pretty much "plug and play" ... once you've got your PATH and JRE_HOME environment variables set correctly. However, it's very unlikely that the default configuration is what you want, or is secure in the way you would like it to be. So you'll require to change the various configuration files such as context.xml, server.xml, web.xml and perhaps tomcat-users.xml. And being open source, the number of options and facilities you can turn on and off is mindblowing and you need to know what you're doing.

<advert>We can help you on our deploying Apache httpd and Tomcat course</advert>. And we also provide sample files and resources on our web site - in fact I have just uploaded a major new resource - an annotated set of Tomcat 6 configuration files, as we tailor them on our course but with some fairly long explanations and advise embedded within them. And these sample files are available to anyone to download and use at their own risk.

server.xml - this is the main configuration file controlling what connectors are available for users to contact the server, how it deploys applications, what domains it supports, etc.

web.xml - the file which controls what type of Java applications are supported by this Tomcat, and how web addresses (URLs) are mapped onto them.

context.xml - a file with some extra controls, such as security issues concerned with certain types of servlets, and whether or not user's sessions are to survive a reboot of the server.

tomcat-users.xml - this file controls who can log in to various roles; when Tomcat is just installed, it's useful to set this file up so that the Tomcat manager can be used to stop and start individual applications, and to monitor the performance of Tomcat.

Note that - although Servlets and JSPs transfer pretty easily from Tomcat 5.0 and 5.5 up to Tomcat 6, there are quite substantial changes in the sample configuration files provided as part of the distribution, and it's unlikely that your Tomcat 5.5 config files will work on Tomcat 6, or vice versa. (And, yes, we do have 5.5 samples available for training too!)
(written 2009-03-01)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A654 - Web Application Deployment - Configuring and Controlling Tomcat
  [837] Tomcat - Shutdown port - (2006-08-18)
  [907] Browser -> httpd -> Tomcat -> MySQL. Restarting. - (2006-10-28)
  [914] A practical example of roles - (2006-11-04)
  [1351] Compressing web pages sent out from server. Is it worth it? - (2007-09-14)
  [1370] Apache Tomcat Performance Tuning - (2007-09-29)
  [1503] Web page (http) error status 405 - (2008-01-12)
  [1553] Automatic startup and shutdown of Tomcat - (2008-02-24)
  [1762] WEB-INF (Tomcat) and .htaccess (httpd) - (2008-08-20)
  [1943] Port and Glasses - (2008-12-14)
  [1994] tomcat-users.xml; what a difference a space made - (2009-01-16)
  [2039] The Invoker - (2009-02-13)
  [2163] CATALINA_OPTS v JAVA_OPTS - What is the difference? - (2009-05-09)
  [2652] Reading and writing cookies in Java Servlets and JSPs - (2010-02-26)
  [3043] Gathering information - logging - with log4j. First steps. - (2010-11-12)


Back to
Database connection Pooling, SSL, and command line deployment - httpd and Tomcat
Previous and next
or
Horse's mouth home
Forward to
Virtual hosting and mod_proxy forwarding of different domains (httpd)
Some other Articles
Static mirroring through HTTrack, wget and others
East of Melksham Countryside
Internal Dummy Connections on Apache httpd
Virtual hosting and mod_proxy forwarding of different domains (httpd)
Tomcat 6 - Annotated Sample Configuration Files
Database connection Pooling, SSL, and command line deployment - httpd and Tomcat
Sharing the load between servers - httpd and Tomcat
Invoker and cgi servlets on Tomcat 6
Train and Coach fares from London (and airports) to Melksham
Web Site Loading - experiences and some solutions shared
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/2061_Tom ... Files.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb