Context XML file

Context.xml Configuration Parameters....


Paramters for the context.xml file. There can be three... server.xml conf/[enginename]/[host]/context.xml and applications WEB-INF/Context.xml NOTE: The server.xml file is only loaded at startup. It isn't a good place to put context information. The engine/host Context.xml is loaded for all applications in the specified host. Question: What does the [catalinabase]/conf/Context.xml do? All implementations of Context XML support the following attributes:








CREATED 2012-07-03 08:50:55.0

00-13-52

UPDATED 2012-07-07 11:08:31.0

allowCasualMultipartParsing


Set to true if Tomcat should automatically parse multipart/form-data request bodies when HttpServletRequest.getPart* or HttpServletRequest.getParameter* is called, even when the target servlet isn't marked with the @MultipartConfig annotation (See Servlet Specification 3.0, Section 3.2 for details). Note that any setting other than false causes Tomcat to behave in a way that is not technically spec-compliant. The default is false

CREATED 2012-07-03 08:36:55.0

00-13-37

UPDATED 2012-07-03 08:50:20.0

backgroundProcessorDelay


This value represents the delay in seconds between the invocation of the backgroundProcess method on this context and its child containers, including all wrappers. Child containers will not be invoked if their delay value is not negative (which would mean they are using their own processing thread). Setting this to a positive value will cause a thread to be spawn. After waiting the specified amount of time, the thread will invoke the backgroundProcess method on this host and all its child containers. A context will use background processing to perform session expiration and class monitoring for reloading. If not specified, the default value for this attribute is -1, which means the context will rely on the background processing thread of its parent host.

CREATED 2012-07-03 08:37:18.0

00-13-38

UPDATED 2012-07-03 08:50:20.0

className


Java class name of the implementation to use. This class must implement the org.apache.catalina.Context interface. If not specified, the standard value (defined below) will be used.

CREATED 2012-07-03 08:37:50.0

00-13-39

UPDATED 2012-07-03 08:50:21.0

cookies


Set to true if you want cookies to be used for session identifier communication if supported by the client (this is the default). Set to false if you want to disable the use of cookies for session identifier communication, and rely only on URL rewriting by the application.

CREATED 2012-07-03 08:37:53.0

00-13-3A

UPDATED 2012-07-03 08:50:21.0

crossContext


Set to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on this virtual host. Set to false (the default) in security conscious environments, to make getContext() always return null.

CREATED 2012-07-03 08:37:55.0

00-13-3B

UPDATED 2012-07-03 08:50:22.0

docBase


The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly from the WAR file). You may specify an absolute pathname for this directory or WAR file, or a pathname that is relative to the appBase directory of the owning Host. The value of this field must not be set unless the Context element is defined in server.xml or the docBase is not located under the Host's appBase. If a symbolic link is used for docBase then changes to the symbolic link will only be effective after a Tomcat restart or by undeploying and redeploying the context. A context reload is not sufficient.

CREATED 2012-07-03 08:39:03.0

00-13-3C

UPDATED 2012-07-03 08:50:22.0

fireRequestListenersOnForwards


Set to true to fire any configured ServletRequestListeners when Tomcat forwards a request. This is primarily of use to users of CDI frameworks that use ServletRequestListeners to configure the necessary environment for a request. If not specified, the default value of false is used.

CREATED 2012-07-03 08:39:06.0

00-13-3D

UPDATED 2012-07-03 08:50:25.0

logEffectiveWebXml


Set to true if you want the effective web.xml used for a web application to be logged (at INFO level) when the application starts. The effective web.xml is the result of combining the application's web.xml with any defaults configured by Tomcat and any web-fragment.xml files and annotations discovered. If not specified, the default value of false is used.

CREATED 2012-07-03 08:39:09.0

00-13-3E

UPDATED 2012-07-03 08:50:26.0

override


Set to true to ignore any settings in both the global or Host default contexts. By default, settings from a default context will be used but may be overridden by a setting the same attribute explicitly for the Context.

CREATED 2012-07-03 08:39:11.0

00-13-3F

UPDATED 2012-07-03 08:50:29.0

path


The context path of this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particular Host must be unique. If you specify a context path of an empty string (""), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts. This attribute must only be used when statically defining a Context in server.xml. In all other circumstances, the path will be inferred from the filenames used for either the .xml context file or the docBase. Even when statically defining a Context in server.xml, this attribute must not be set unless either the docBase is not located under the Host's appBase or both deployOnStartup and autoDeploy are false. If this rule is not followed, double deployment is likely to result.

CREATED 2012-07-03 08:39:14.0

00-13-40

UPDATED 2012-07-03 08:50:30.0

preemptiveAuthentication


When set to true and the user presents credentials for a resource that is not protected by a security constraint, if the authenticator supports preemptive authentication (the standard authenticators provided with Tomcat do) then the user' credentials will be processed. If not specified, the default of falseis used.

CREATED 2012-07-03 08:40:48.0

00-13-41

UPDATED 2012-07-03 08:50:31.0

privileged


Set to true to allow this context to use container servlets, like the manager servlet. Use of the privileged attribute will change the context's parent class loader to be the Server class loader rather than the Shared class loader. Note that in a default installation, the Common class loader is used for both the Server and the Shared class loaders.

CREATED 2012-07-03 08:40:50.0

00-13-42

UPDATED 2012-07-03 08:50:31.0

reloadable


Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.

CREATED 2012-07-03 08:40:54.0

00-13-43

UPDATED 2012-07-03 08:50:32.0

resourceOnlyServlets


Comma separated list of Servlet names (as used in /WEB-INF/web.xml) that expect a resource to be present. Ensures that welcome files associated with Servlets that expect a resource to be present (such as the JSP Servlet) are not used when there is no resource present. This prevents issues caused by the clarification of welcome file mapping in section 10.10 of the Servlet 3.0 specification. If the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true, the default value of this attribute will be the empty string, else the default value will be jsp.

CREATED 2012-07-03 08:40:54.0

00-13-44

UPDATED 2012-07-03 08:50:33.0

sendRedirectBody


If true, redirect responses will include a short response body that includes details of the redirect as recommended by RFC 2616. This is disabled by default since including a response body may cause problems for some application component such as compression filters.

CREATED 2012-07-03 08:41:02.0

00-13-45

UPDATED 2012-07-03 08:50:34.0

sessionCookieDomain


The domain to be used for all session cookies created for this context. If set, this overrides any domain set by the web application. If not set, the value specified by the web application, if any, will be used.

CREATED 2012-07-03 08:42:11.0

00-13-46

UPDATED 2012-07-03 08:50:36.0

sessionCookieName


The name to be used for all session cookies created for this context. If set, this overrides any name set by the web application. If not set, the value specified by the web application, if any, will be used, or the name JSESSIONID if the web application does not explicitly set one.

CREATED 2012-07-03 08:42:17.0

00-13-47

UPDATED 2012-07-03 08:50:37.0

sessionCookiePath


The path to be used for all session cookies created for this context. If set, this overrides any path set by the web application. If not set, the value specified by the web application will be used, or the context path used if the web application does not explicitly set one. To configure all web application to use an empty path (this can be useful for portlet specification implementations) set this attribute to / in the global CATALINA_BASE/conf/context.xml file.

CREATED 2012-07-03 08:42:19.0

00-13-48

UPDATED 2012-07-03 08:50:41.0

sessionCookiePathUsesTrailingSlash


Some browsers, such as IE, will send a session cookie for a context with a path of /foo with a request to /foobar. To prevent this, Tomcat will add a trailing slash to the path associated with the session cookie so, in the above example, the cookie path becomes /foo/. However, with a cookie path of /foo/, IE will no longer send the cookie with a request to /foo. This should not be a problem unless there is a servlet mapped to /*. In this case this feature will need to be disabled. The default value for this attribute is true. To disable this feature, set the attribute to false.

CREATED 2012-07-03 08:42:21.0

00-13-49

UPDATED 2012-07-03 08:50:43.0

swallowAbortedUploads


Set to false if Tomcat should not read any additional request body data for aborted uploads and instead abort the client connection. This setting is used in the following situations: the size of the request body is larger than the maxPostSize configured in the connector the size limit of a MultiPart upload is reached the servlet sets the response status to 413 (Request Entity Too Large) Not reading the additional data will free the request processing thread more quickly. Unfortunately most HTTP clients will not read the response if they can not write the full request. The default is true, so additional data will be read. Note if an error occurs during the request processing that triggers a 5xx response, any unread request data will always be ignored and the client connection will be closed once the error response has been written.





CREATED 2012-07-03 08:42:24.0

00-13-4A

UPDATED 2012-07-07 11:14:43.0

swallowOutput


If the value of this flag is true, the bytes output to System.out and System.err by the web application will be redirected to the web application logger. If not specified, the default value of the flag is false.

CREATED 2012-07-03 08:44:28.0

00-13-4B

UPDATED 2012-07-03 08:50:45.0

tldNamespaceAware


If the value of this flag is true, the TLD files XML validation will be namespace-aware. If you turn this flag on, you should probably also turn tldValidation on. If the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true, the default value of this attribute will be true, else the default value will be false. Setting this attribute to true will incur a performance penalty.

CREATED 2012-07-03 08:44:31.0

00-13-4C

UPDATED 2012-07-03 08:50:46.0

tldValidation


If the value of this flag is true, the TLD files will be XML validated on context startup. If the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true, the default value of this attribute will be true, else the default value will be false. Setting this attribute to true will incur a performance penalty.

CREATED 2012-07-03 08:44:35.0

00-13-4D

UPDATED 2012-07-03 08:50:47.0

useHttpOnly


Should the HttpOnly flag be set on session cookies to prevent client side script from accessing the session ID? Defaults to true.

CREATED 2012-07-03 08:44:38.0

00-13-4E

UPDATED 2012-07-03 08:50:48.0

wrapperClass


Java class name of the org.apache.catalina.Wrapper implementation class that will be used for servlets managed by this Context. If not specified, a standard default value will be used.

CREATED 2012-07-03 08:44:39.0

00-13-4F

UPDATED 2012-07-03 08:50:49.0

xmlNamespaceAware


If the value of this flag is true, the validation of XML files will be namespace-aware. If you turn this flag on, you should probably also turn xmlValidation on. If the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true, the default value of this attribute will be true, else the default value will be false. Setting this attribute to true will incur a performance penalty.

CREATED 2012-07-03 08:44:41.0

00-13-50

UPDATED 2012-07-03 08:50:52.0

xmlValidation


If the value of this flag is true, the XML files will be validated on context startup. If the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set to true, the default value of this attribute will be true, else the default value will be false. Setting this attribute to true will incur a performance penalty.

CREATED 2012-07-03 08:44:45.0

00-13-51

UPDATED 2012-07-03 08:50:55.0

Additional Configuration Properties


CREATED 2012-07-04 08:11:34.0

00-13-54

UPDATED 2012-07-04 08:12:02.0

Knowledge

L
I
N
K
S

DBID: db.wam

Page Server: Ruger

©2012 Leistware Data Systems

      Hello anonymous