1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
3 <!-- ===================================================================== -->
4 <!-- This file contains the default descriptor for web applications. -->
5 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
6 <!-- The intent of this descriptor is to include jetty specific or common -->
7 <!-- configuration for all webapps. If a context has a webdefault.xml -->
8 <!-- descriptor, it is applied before the contexts own web.xml file -->
10 <!-- A context may be assigned a default descriptor by: -->
11 <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
12 <!-- + Passed an arg to addWebApplications -->
14 <!-- This file is used both as the resource within the jetty.jar (which is -->
15 <!-- used as the default if no explicit defaults descriptor is set) and it -->
16 <!-- is copied to the etc directory of the Jetty distro and explicitly -->
17 <!-- by the jetty.xml file. -->
19 <!-- ===================================================================== -->
21 xmlns=
"http://java.sun.com/xml/ns/javaee"
22 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
23 xsi:
schemaLocation=
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24 metadata-complete=
"true"
29 This file is applied to a Web application before it's own WEB_INF/web.xml file
33 <!-- ==================================================================== -->
34 <!-- Context params to control Session Cookies -->
35 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
36 <!-- UNCOMMENT TO ACTIVATE
38 <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
39 <param-value>127.0.0.1</param-value>
43 <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
44 <param-value>/</param-value>
48 <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
49 <param-value>-1</param-value>
54 <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern
</param-name>
55 <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar
</param-value>
60 <!-- ==================================================================== -->
61 <!-- The default servlet. -->
62 <!-- This servlet, normally mapped to /, provides the handling for static -->
63 <!-- content, OPTIONS and TRACE methods for the context. -->
64 <!-- The following initParameters are supported: -->
66 <!-- acceptRanges If true, range requests and responses are -->
69 <!-- dirAllowed If true, directory listings are returned if no -->
70 <!-- welcome file is found. Else 403 Forbidden. -->
72 <!-- redirectWelcome If true, redirect welcome file requests -->
73 <!-- else use request dispatcher forwards -->
75 <!-- gzip If set to true, then static content will be served-->
76 <!-- as gzip content encoded if a matching resource is -->
77 <!-- found ending with ".gz" -->
79 <!-- resoureBase Can be set to replace the context resource base -->
81 <!-- relativeResourceBase -->
82 <!-- Set with a pathname relative to the base of the -->
83 <!-- servlet context root. Useful for only serving -->
84 <!-- static content from only specific subdirectories. -->
86 <!-- useFileMappedBuffer -->
87 <!-- If set to true (the default), a memory mapped -->
88 <!-- file buffer will be used to serve static content -->
89 <!-- when using an NIO connector. Setting this value -->
90 <!-- to false means that a direct buffer will be used -->
91 <!-- instead. If you are having trouble with Windows -->
92 <!-- file locking, set this to false. -->
94 <!-- cacheControl If set, all static content will have this value -->
95 <!-- set as the cache-control header. -->
97 <!-- maxCacheSize Maximum size of the static resource cache -->
99 <!-- maxCachedFileSize Maximum size of any single file in the cache -->
101 <!-- maxCachedFiles Maximum number of files in the cache -->
103 <!-- cacheType "nio", "bio" or "both" to determine the type(s) -->
104 <!-- of resource cache. A bio cached buffer may be used-->
105 <!-- by nio but is not as efficient as a nio buffer. -->
106 <!-- An nio cached buffer may not be used by bio. -->
108 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
110 <servlet-name>default
</servlet-name>
111 <servlet-class>org.mortbay.jetty.servlet.DefaultServlet
</servlet-class>
113 <param-name>acceptRanges
</param-name>
114 <param-value>true
</param-value>
117 <param-name>dirAllowed
</param-name>
118 <param-value>true
</param-value>
121 <param-name>redirectWelcome
</param-name>
122 <param-value>false
</param-value>
125 <param-name>maxCacheSize
</param-name>
126 <param-value>256000000</param-value>
129 <param-name>maxCachedFileSize
</param-name>
130 <param-value>10000000</param-value>
133 <param-name>maxCachedFiles
</param-name>
134 <param-value>1000</param-value>
137 <param-name>cacheType
</param-name>
138 <param-value>both
</param-value>
141 <param-name>gzip
</param-name>
142 <param-value>true
</param-value>
145 <param-name>useFileMappedBuffer
</param-name>
146 <param-value>false
</param-value>
150 <param-name>cacheControl</param-name>
151 <param-value>max-age=3600,public</param-value>
154 <load-on-startup>0</load-on-startup>
157 <servlet-mapping> <servlet-name>default
</servlet-name> <url-pattern>/
</url-pattern> </servlet-mapping>
160 <!-- ==================================================================== -->
162 <!-- This is the jasper JSP servlet from the jakarta project -->
163 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
164 <!-- The JSP page compiler and execution servlet, which is the mechanism -->
165 <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
166 <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
167 <!-- following initialization parameters (default values are in square -->
170 <!-- checkInterval If development is false and reloading is true, -->
171 <!-- background compiles are enabled. checkInterval -->
172 <!-- is the time in seconds between checks to see -->
173 <!-- if a JSP page needs to be recompiled. [300] -->
175 <!-- compiler Which compiler Ant should use to compile JSP -->
176 <!-- pages. See the Ant documenation for more -->
177 <!-- information. [javac] -->
179 <!-- classdebuginfo Should the class file be compiled with -->
180 <!-- debugging information? [true] -->
182 <!-- classpath What class path should I use while compiling -->
183 <!-- generated servlets? [Created dynamically -->
184 <!-- based on the current web application] -->
185 <!-- Set to ? to make the container explicitly set -->
186 <!-- this parameter. -->
188 <!-- development Is Jasper used in development mode (will check -->
189 <!-- for JSP modification on every access)? [true] -->
191 <!-- enablePooling Determines whether tag handler pooling is -->
192 <!-- enabled [true] -->
194 <!-- fork Tell Ant to fork compiles of JSP pages so that -->
195 <!-- a separate JVM is used for JSP page compiles -->
196 <!-- from the one Tomcat is running in. [true] -->
198 <!-- ieClassId The class-id value to be sent to Internet -->
199 <!-- Explorer when using <jsp:plugin> tags. -->
200 <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
202 <!-- javaEncoding Java file encoding to use for generating java -->
203 <!-- source files. [UTF-8] -->
205 <!-- keepgenerated Should we keep the generated Java source code -->
206 <!-- for each page instead of deleting it? [true] -->
208 <!-- logVerbosityLevel The level of detailed messages to be produced -->
209 <!-- by this servlet. Increasing levels cause the -->
210 <!-- generation of more messages. Valid values are -->
211 <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
214 <!-- mappedfile Should we generate static content with one -->
215 <!-- print statement per input line, to ease -->
216 <!-- debugging? [false] -->
219 <!-- reloading Should Jasper check for modified JSPs? [true] -->
221 <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
222 <!-- debugging be suppressed? [false] -->
224 <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
225 <!-- dumped to a file? [false] -->
226 <!-- False if suppressSmap is true -->
228 <!-- scratchdir What scratch directory should we use when -->
229 <!-- compiling JSP pages? [default work directory -->
230 <!-- for the current web application] -->
232 <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
234 <!-- xpoweredBy Determines whether X-Powered-By response -->
235 <!-- header is added by generated servlet [false] -->
237 <!-- If you wish to use Jikes to compile JSP pages: -->
238 <!-- Set the init parameter "compiler" to "jikes". Define -->
239 <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
240 <!-- to cause Jikes to emit error messages in a format compatible with -->
242 <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
243 <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
244 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
246 <servlet-name>jsp
</servlet-name>
247 <servlet-class>org.apache.jasper.servlet.JspServlet
</servlet-class>
249 <param-name>logVerbosityLevel
</param-name>
250 <param-value>DEBUG
</param-value>
253 <param-name>fork
</param-name>
254 <param-value>false
</param-value>
257 <param-name>xpoweredBy
</param-name>
258 <param-value>false
</param-value>
262 <param-name>classpath</param-name>
263 <param-value>?</param-value>
266 <load-on-startup>0</load-on-startup>
270 <servlet-name>jsp
</servlet-name>
271 <url-pattern>*.jsp
</url-pattern>
272 <url-pattern>*.jspf
</url-pattern>
273 <url-pattern>*.jspx
</url-pattern>
274 <url-pattern>*.xsp
</url-pattern>
275 <url-pattern>*.JSP
</url-pattern>
276 <url-pattern>*.JSPF
</url-pattern>
277 <url-pattern>*.JSPX
</url-pattern>
278 <url-pattern>*.XSP
</url-pattern>
281 <!-- ==================================================================== -->
282 <!-- Dynamic Servlet Invoker. -->
283 <!-- This servlet invokes anonymous servlets that have not been defined -->
284 <!-- in the web.xml or by other means. The first element of the pathInfo -->
285 <!-- of a request passed to the envoker is treated as a servlet name for -->
286 <!-- an existing servlet, or as a class name of a new servlet. -->
287 <!-- This servlet is normally mapped to /servlet/* -->
288 <!-- This servlet support the following initParams: -->
290 <!-- nonContextServlets If false, the invoker can only load -->
291 <!-- servlets from the contexts classloader. -->
292 <!-- This is false by default and setting this -->
293 <!-- to true may have security implications. -->
295 <!-- verbose If true, log dynamic loads -->
297 <!-- * All other parameters are copied to the -->
298 <!-- each dynamic servlet as init parameters -->
299 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
300 <!-- Uncomment for dynamic invocation
302 <servlet-name>invoker</servlet-name>
303 <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
305 <param-name>verbose</param-name>
306 <param-value>false</param-value>
309 <param-name>nonContextServlets</param-name>
310 <param-value>false</param-value>
313 <param-name>dynamicParam</param-name>
314 <param-value>anyValue</param-value>
316 <load-on-startup>0</load-on-startup>
319 <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
324 <!-- ==================================================================== -->
326 <session-timeout>30</session-timeout>
329 <!-- ==================================================================== -->
330 <!-- Default MIME mappings -->
331 <!-- The default MIME mappings are provided by the mime.properties -->
332 <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
333 <!-- mappings may be specified here -->
334 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
335 <!-- UNCOMMENT TO ACTIVATE
337 <extension>mysuffix</extension>
338 <mime-type>mymime/type</mime-type>
342 <!-- ==================================================================== -->
344 <welcome-file>index.html
</welcome-file>
345 <welcome-file>index.htm
</welcome-file>
346 <welcome-file>index.jsp
</welcome-file>
349 <!-- ==================================================================== -->
350 <locale-encoding-mapping-list>
351 <locale-encoding-mapping><locale>ar
</locale><encoding>ISO-
8859-
6</encoding></locale-encoding-mapping>
352 <locale-encoding-mapping><locale>be
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
353 <locale-encoding-mapping><locale>bg
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
354 <locale-encoding-mapping><locale>ca
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
355 <locale-encoding-mapping><locale>cs
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
356 <locale-encoding-mapping><locale>da
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
357 <locale-encoding-mapping><locale>de
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
358 <locale-encoding-mapping><locale>el
</locale><encoding>ISO-
8859-
7</encoding></locale-encoding-mapping>
359 <locale-encoding-mapping><locale>en
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
360 <locale-encoding-mapping><locale>es
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
361 <locale-encoding-mapping><locale>et
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
362 <locale-encoding-mapping><locale>fi
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
363 <locale-encoding-mapping><locale>fr
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
364 <locale-encoding-mapping><locale>hr
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
365 <locale-encoding-mapping><locale>hu
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
366 <locale-encoding-mapping><locale>is
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
367 <locale-encoding-mapping><locale>it
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
368 <locale-encoding-mapping><locale>iw
</locale><encoding>ISO-
8859-
8</encoding></locale-encoding-mapping>
369 <locale-encoding-mapping><locale>ja
</locale><encoding>Shift_JIS
</encoding></locale-encoding-mapping>
370 <locale-encoding-mapping><locale>ko
</locale><encoding>EUC-KR
</encoding></locale-encoding-mapping>
371 <locale-encoding-mapping><locale>lt
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
372 <locale-encoding-mapping><locale>lv
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
373 <locale-encoding-mapping><locale>mk
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
374 <locale-encoding-mapping><locale>nl
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
375 <locale-encoding-mapping><locale>no
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
376 <locale-encoding-mapping><locale>pl
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
377 <locale-encoding-mapping><locale>pt
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
378 <locale-encoding-mapping><locale>ro
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
379 <locale-encoding-mapping><locale>ru
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
380 <locale-encoding-mapping><locale>sh
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
381 <locale-encoding-mapping><locale>sk
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
382 <locale-encoding-mapping><locale>sl
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
383 <locale-encoding-mapping><locale>sq
</locale><encoding>ISO-
8859-
2</encoding></locale-encoding-mapping>
384 <locale-encoding-mapping><locale>sr
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
385 <locale-encoding-mapping><locale>sv
</locale><encoding>ISO-
8859-
1</encoding></locale-encoding-mapping>
386 <locale-encoding-mapping><locale>tr
</locale><encoding>ISO-
8859-
9</encoding></locale-encoding-mapping>
387 <locale-encoding-mapping><locale>uk
</locale><encoding>ISO-
8859-
5</encoding></locale-encoding-mapping>
388 <locale-encoding-mapping><locale>zh
</locale><encoding>GB2312
</encoding></locale-encoding-mapping>
389 <locale-encoding-mapping><locale>zh_TW
</locale><encoding>Big5
</encoding></locale-encoding-mapping>
390 </locale-encoding-mapping-list>
392 <security-constraint>
393 <web-resource-collection>
394 <web-resource-name>Disable TRACE
</web-resource-name>
395 <url-pattern>/
</url-pattern>
396 <http-method>TRACE
</http-method>
397 </web-resource-collection>
399 </security-constraint>