Summary

In this chapter, you’ve seen all the configuration files in Tomcat’s CATALINA_HOME/conf directory. server.xml is the main configuration file for Tomcat, and server-minimal.xml is a blank template from which you can create your own custom server.xml configuration.

The tomcat-users.xml file is used by the default user authentication mechanism in Tomcat. In a production system, you should use a more robust implementation of a realm, such as a JDBC realm or a JNDI realm.

The default web.xml file in CATALINA_HOME/conf specifies properties that are used in every Web application running on the server. Many of the default servlets configured here provide Web serverlike features (serving static content, SSI, CGI, and so on) for running Web applications.

Tomcat starts in an unsecured mode, but the catalina.policy file is vitally important in a secured Tomcat installation. It specifies who can access what, and anything else that isn’t specified can’t be accessed. Tomcat takes advantage of the sophisticated, built-in security infrastructure of Java 2.

The other two files in CATALINA_HOME/conf are catalina.properties and jk2.properties. catalina.properties configures Tomcat’s class loaders as well as what classes can be executed by application code. By default, Tomcat internals are barred. jk2.properties defines a connector to the Apache Web server.

In the next chapter, you’ll see how to administer a Web application.



Pro Jakarta Tomcat 5
Pro Apache Tomcat 5/5.5 (Experts Voice in Java)
ISBN: 1590593316
EAN: 2147483647
Year: 2004
Pages: 94

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net