Taming Tomcat, Day 2: Development and Administration

Author and presenter: Simon Brooke.

The full text of this presentation is online at <URL: http://www.weft.co.uk/library/tomcat/>

Written March-April 2006; $Revision: 1.7 $ of $Date: 2006-04-28$

Changes to the presentation since your handouts were printed are highlighted like this.

Simon Brooke, 21 Main Street, Auchencairn, DG7 1QU, Scotland.

backDay 1: The Basics

Day 3: Security and Performance next


Programme for Today


What I'm trying to achieve today


Anatomy of a Webapp


Anatomy of a Webapp (ii): Layout of resources


the Webapp classpath

TODO: in what order?


the web.xml file


DTD and Schema


the <web-app> element


But wait! There's more!

TODO: and more


The icon element


The display-name element


The description element


The distributable element


The context-param element


The servlet element


context-params and servlet-params


The servlet-mapping element


url-pattern: examples


Sorry? The path part?


The session-config element


The mime-mapping element


The welcome-file-list element


The error-page element


The taglib element


The resource-ref element


The security-constraint element


The login-config element


The security-role element


The env-entry element


The ejb-ref element


[Break]


Tomcat and the database


Connections


Connection Lifecycle


Connection Pool: objectives


Connection Pools: options


Introducing Tomcat's connection pool


A very quick introduction to JNDI


The Tomcat Connection Pool


[Lunch]


Administering Tomcat


The Manager Webapp


Manager webapp Security


What I do (and suggest)


Enabling the Manager webapp


Enabling the Web interface


What the Manager Webapp can do (i)


What the Manager Webapp can do (ii)


What the Manager Webapp does not always reliably do


The Admin Webapp


Exercise: Administering Tomcat


Log file analysis


Apache HTTPD logs


The Tomcat logs


The Catalina log


The Host log


Where your debugging output goes


Reading Java exception dumps


When things go wrong

[Break]


Development frameworks for Webapps


Lots and lots of others...


A brief tantrum about buzzwords


Struts


The ActionServlet


The Actions


The Exception Handlers


The ActionForm


Struts: Summary


Tapestry


Jacquard


Three main subpackages


In use


Jacquard: Summary


Questions and Suggestions for tomorrow