Chapter 5: Basic Tomcat Confi guration Attribute Description

Chapter 5: Basic Tomcat Confi guration Attribute Description Required? errorReportValveClass unpackWARs workdir $CATALINA_HOME/conf/// .xml. The default value is true, allowing the processing of the META-INF/context.xmlwithin any web applications deployed on the host. Specifies the Java class that implements the error- reporting Valve used by this host. The default implementation is org.apache.catalina.valves .ErrorReportValve. Set this to false if you want Tomcat 6 to run Web applications without unarchiving the WAR files found at the directory specified by the appBaseattribute. The default is true and Tomcat 6 will unpack these applications. The tradeoff here is typically performance (lower performance when WAR files are not unarchived) versus storage (no need to write to the appBase directory). Specifies a temporary working directory for servlets (and JSPs) that run within this host. These applications can get the temporary directory via a call to get the javax.servlet.context.tempdir property. If this is not specified, a directory under $CATALINA_HOME/ workis used instead. No No Note that there must be at least one entry associated with the element. This makes sense because you must be able to reach the Engine by at least one virtual host name. This means the defaultHostattribute of the element must be assigned with one of the entries. The XML subelements that can be placed inside a element are described in the following table. Subelement Description How Many? Context A can configure a set of property values for a Web application deployed within this host. There can be as many elements as there are Web applications. The default server.xml included with the Tomcat 6 distribution does not include any application Context. This enables a clean separation between server configuration and Web application configuration. Instead, all Web application Contexts can be maintained under the $CATALINA_HOME/conf// directory. In addition, an application can configure its own Context by including a context.xmlfile in the METAINF directory of the Web application WAR. 0 or more Table continued on following page

For high quality jboss hosting services please check jboss web hosting website.

Comments are closed.