| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<web-app |
| 3 |
xmlns="http://xmlns.jcp.org/xml/ns/javaee" |
| 4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" |
| 6 |
metadata-complete="false" |
| 7 |
version="3.1"> |
| 8 |
|
| 9 |
<!-- ===================================================================== --> |
| 10 |
<!-- This file contains the default descriptor for web applications. --> |
| 11 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 12 |
<!-- The intent of this descriptor is to include jetty specific or common --> |
| 13 |
<!-- configuration for all webapps. If a context has a webdefault-ee9.xml --> |
| 14 |
<!-- descriptor, it is applied before the context's own web.xml file --> |
| 15 |
<!-- --> |
| 16 |
<!-- A context may be assigned a default descriptor by calling --> |
| 17 |
<!-- WebAppContext.setDefaultsDescriptor(String). --> |
| 18 |
<!-- --> |
| 19 |
<!-- This file is present in the jetty-webapp.jar, and is used as the --> |
| 20 |
<!-- defaults descriptor if no other is explicitly set on a context. --> |
| 21 |
<!-- --> |
| 22 |
<!-- A copy of this file is also placed into the $JETTY_HOME/etc dir of --> |
| 23 |
<!-- the distribution, and is referenced by some of the other xml files, --> |
| 24 |
<!-- eg the jetty-deploy.xml file. --> |
| 25 |
<!-- ===================================================================== --> |
| 26 |
|
| 27 |
<description> |
| 28 |
Default web.xml file. |
| 29 |
This file is applied to a Web application before its own WEB_INF/web.xml file |
| 30 |
</description> |
| 31 |
|
| 32 |
<!-- ==================================================================== --> |
| 33 |
<!-- Removes static references to beans from javax.el.BeanELResolver to --> |
| 34 |
<!-- ensure webapp classloader can be released on undeploy --> |
| 35 |
<!-- ==================================================================== --> |
| 36 |
<listener> |
| 37 |
<listener-class>org.eclipse.jetty.ee9.servlet.listener.ELContextCleaner</listener-class> |
| 38 |
</listener> |
| 39 |
|
| 40 |
<!-- ==================================================================== --> |
| 41 |
<!-- Removes static cache of Methods from java.beans.Introspector to --> |
| 42 |
<!-- ensure webapp classloader can be released on undeploy --> |
| 43 |
<!-- ==================================================================== --> |
| 44 |
<listener> |
| 45 |
<listener-class>org.eclipse.jetty.ee9.servlet.listener.IntrospectorCleaner</listener-class> |
| 46 |
</listener> |
| 47 |
|
| 48 |
|
| 49 |
<!-- ==================================================================== --> |
| 50 |
<!-- Context params to control Session Cookies --> |
| 51 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 52 |
<!-- |
| 53 |
UNCOMMENT TO ACTIVATE |
| 54 |
<context-param> |
| 55 |
<param-name>org.eclipse.jetty.session.SessionDomain</param-name> |
| 56 |
<param-value>127.0.0.1</param-value> |
| 57 |
</context-param> |
| 58 |
<context-param> |
| 59 |
<param-name>org.eclipse.jetty.session.SessionPath</param-name> |
| 60 |
<param-value>/</param-value> |
| 61 |
</context-param> |
| 62 |
<context-param> |
| 63 |
<param-name>org.eclipse.jetty.session.MaxAge</param-name> |
| 64 |
<param-value>-1</param-value> |
| 65 |
</context-param> |
| 66 |
--> |
| 67 |
|
| 68 |
<!-- ==================================================================== --> |
| 69 |
<!-- The default servlet. --> |
| 70 |
<!-- This servlet, normally mapped to /, provides the handling for static --> |
| 71 |
<!-- content, OPTIONS and TRACE methods for the context. --> |
| 72 |
<!-- The following initParameters are supported: --> |
| 73 |
<!-- |
| 74 |
* acceptRanges If true, range requests and responses are |
| 75 |
* supported |
| 76 |
* |
| 77 |
* dirAllowed If true, directory listings are returned if no |
| 78 |
* welcome file is found. Else 403 Forbidden. |
| 79 |
* |
| 80 |
* welcomeServlets If true, attempt to dispatch to welcome files |
| 81 |
* that are servlets, but only after no matching static |
| 82 |
* resources could be found. If false, then a welcome |
| 83 |
* file must exist on disk. If "exact", then exact |
| 84 |
* servlet matches are supported without an existing file. |
| 85 |
* Default is false. |
| 86 |
* |
| 87 |
* This must be false if you want directory listings, |
| 88 |
* but have index.jsp in your welcome file list. |
| 89 |
* |
| 90 |
* redirectWelcome If true, welcome files are redirected rather than |
| 91 |
* forwarded to. |
| 92 |
* |
| 93 |
* gzip If set to true, then static content will be served as |
| 94 |
* gzip content encoded if a matching resource is |
| 95 |
* found ending with ".gz" (default false) |
| 96 |
* (deprecated: use precompressed) |
| 97 |
* |
| 98 |
* precompressed If set to a comma separated list of encoding types (that may be |
| 99 |
* listed in a requests Accept-Encoding header) to file |
| 100 |
* extension mappings to look for and serve. For example: |
| 101 |
* "br=.br,gzip=.gz,bzip2=.bz". |
| 102 |
* If set to a boolean True, then a default set of compressed formats |
| 103 |
* will be used, otherwise no precompressed formats. |
| 104 |
* |
| 105 |
* baseResource Set to replace the context resource base |
| 106 |
* |
| 107 |
* resourceCache If set, this is a context attribute name, which the servlet |
| 108 |
* will use to look for a shared ResourceCache instance. |
| 109 |
* |
| 110 |
* relativeBaseResource |
| 111 |
* Set with a pathname relative to the base of the |
| 112 |
* servlet context root. Useful for only serving static content out |
| 113 |
* of only specific subdirectories. |
| 114 |
* |
| 115 |
* pathInfoOnly If true, only the path info will be applied to the baseResource |
| 116 |
* |
| 117 |
* stylesheet Set with the location of an optional stylesheet that will be used |
| 118 |
* to decorate the directory listing html. |
| 119 |
* |
| 120 |
* etags If True, weak etags will be generated and handled. |
| 121 |
* |
| 122 |
* maxCacheSize The maximum total size of the cache or 0 for no cache. |
| 123 |
* maxCachedFileSize The maximum size of a file to cache |
| 124 |
* maxCachedFiles The maximum number of files to cache |
| 125 |
* |
| 126 |
* useFileMappedBuffer |
| 127 |
* If set to true, it will use mapped file buffers to serve static content |
| 128 |
* when using an NIO connector. Setting this value to false means that |
| 129 |
* a direct buffer will be used instead of a mapped file buffer. |
| 130 |
* This file sets the value to true. |
| 131 |
* |
| 132 |
* cacheControl If set, all static content will have this value set as the cache-control |
| 133 |
* header. |
| 134 |
* |
| 135 |
* encodingHeaderCacheSize |
| 136 |
* Max entries in a cache of ACCEPT-ENCODING headers. |
| 137 |
* |
| 138 |
* otherGzipFileExtensions |
| 139 |
* defaults to .svgz but a comma separated list of gzip equivalent file extensions can be supplied |
| 140 |
* |
| 141 |
--> |
| 142 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 143 |
<servlet> |
| 144 |
<servlet-name>default</servlet-name> |
| 145 |
<servlet-class>org.eclipse.jetty.ee9.servlet.DefaultServlet</servlet-class> |
| 146 |
<init-param> |
| 147 |
<param-name>acceptRanges</param-name> |
| 148 |
<param-value>true</param-value> |
| 149 |
</init-param> |
| 150 |
<init-param> |
| 151 |
<param-name>dirAllowed</param-name> |
| 152 |
<param-value>true</param-value> |
| 153 |
</init-param> |
| 154 |
<init-param> |
| 155 |
<param-name>welcomeServlets</param-name> |
| 156 |
<param-value>false</param-value> |
| 157 |
</init-param> |
| 158 |
<init-param> |
| 159 |
<param-name>redirectWelcome</param-name> |
| 160 |
<param-value>false</param-value> |
| 161 |
</init-param> |
| 162 |
<init-param> |
| 163 |
<param-name>maxCacheSize</param-name> |
| 164 |
<param-value>256000000</param-value> |
| 165 |
</init-param> |
| 166 |
<init-param> |
| 167 |
<param-name>maxCachedFileSize</param-name> |
| 168 |
<param-value>200000000</param-value> |
| 169 |
</init-param> |
| 170 |
<init-param> |
| 171 |
<param-name>maxCachedFiles</param-name> |
| 172 |
<param-value>2048</param-value> |
| 173 |
</init-param> |
| 174 |
<init-param> |
| 175 |
<param-name>etags</param-name> |
| 176 |
<param-value>false</param-value> |
| 177 |
</init-param> |
| 178 |
<init-param> |
| 179 |
<param-name>useFileMappedBuffer</param-name> |
| 180 |
<param-value>true</param-value> |
| 181 |
</init-param> |
| 182 |
<load-on-startup>0</load-on-startup> |
| 183 |
</servlet> |
| 184 |
|
| 185 |
<servlet-mapping> |
| 186 |
<servlet-name>default</servlet-name> |
| 187 |
<url-pattern>/</url-pattern> |
| 188 |
</servlet-mapping> |
| 189 |
|
| 190 |
|
| 191 |
<!-- ==================================================================== --> |
| 192 |
<!-- JSP Servlet --> |
| 193 |
<!-- This is the jasper JSP servlet. --> |
| 194 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 195 |
<!-- The JSP page compiler and execution servlet, which is the mechanism --> |
| 196 |
<!-- used by the jsp container to support JSP pages. Traditionally, --> |
| 197 |
<!-- this servlet is mapped to URL pattern "*.jsp". --> |
| 198 |
<!-- See https://jetty.org/docs/ --> |
| 199 |
<!-- for applicable configuration params. --> |
| 200 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 201 |
<servlet id="jsp"> |
| 202 |
<servlet-name>jsp</servlet-name> |
| 203 |
<servlet-class>org.eclipse.jetty.ee9.jsp.JettyJspServlet</servlet-class> |
| 204 |
<init-param> |
| 205 |
<param-name>xpoweredBy</param-name> |
| 206 |
<param-value>false</param-value> |
| 207 |
</init-param> |
| 208 |
<init-param> |
| 209 |
<param-name>compilerTargetVM</param-name> |
| 210 |
<param-value>1.8</param-value> |
| 211 |
</init-param> |
| 212 |
<init-param> |
| 213 |
<param-name>compilerSourceVM</param-name> |
| 214 |
<param-value>1.8</param-value> |
| 215 |
</init-param> |
| 216 |
<load-on-startup>0</load-on-startup> |
| 217 |
</servlet> |
| 218 |
|
| 219 |
<servlet-mapping> |
| 220 |
<servlet-name>jsp</servlet-name> |
| 221 |
<url-pattern>*.jsp</url-pattern> |
| 222 |
<url-pattern>*.jspf</url-pattern> |
| 223 |
<url-pattern>*.jspx</url-pattern> |
| 224 |
<url-pattern>*.xsp</url-pattern> |
| 225 |
<url-pattern>*.JSP</url-pattern> |
| 226 |
<url-pattern>*.JSPF</url-pattern> |
| 227 |
<url-pattern>*.JSPX</url-pattern> |
| 228 |
<url-pattern>*.XSP</url-pattern> |
| 229 |
</servlet-mapping> |
| 230 |
|
| 231 |
|
| 232 |
<!-- ==================================================================== --> |
| 233 |
<!-- Default session configuration --> |
| 234 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 235 |
<session-config> |
| 236 |
<session-timeout>30</session-timeout> |
| 237 |
</session-config> |
| 238 |
|
| 239 |
<!-- ==================================================================== --> |
| 240 |
<!-- Default MIME mappings --> |
| 241 |
<!-- The default MIME mappings are provided by the mime.properties --> |
| 242 |
<!-- resource in the jetty-http.jar file. Additional or modified --> |
| 243 |
<!-- mappings may be specified here --> |
| 244 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 245 |
<!-- UNCOMMENT TO ACTIVATE |
| 246 |
<mime-mapping> |
| 247 |
<extension>mysuffix</extension> |
| 248 |
<mime-type>mymime/type</mime-type> |
| 249 |
</mime-mapping> |
| 250 |
--> |
| 251 |
|
| 252 |
<!-- ==================================================================== --> |
| 253 |
<!-- Default welcome files --> |
| 254 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 255 |
<welcome-file-list> |
| 256 |
<welcome-file>index.html</welcome-file> |
| 257 |
<welcome-file>index.htm</welcome-file> |
| 258 |
<welcome-file>index.jsp</welcome-file> |
| 259 |
</welcome-file-list> |
| 260 |
|
| 261 |
<!-- ==================================================================== --> |
| 262 |
<!-- Default locale encodings --> |
| 263 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 264 |
<locale-encoding-mapping-list> |
| 265 |
<locale-encoding-mapping> |
| 266 |
<locale>ar</locale> |
| 267 |
<encoding>ISO-8859-6</encoding> |
| 268 |
</locale-encoding-mapping> |
| 269 |
<locale-encoding-mapping> |
| 270 |
<locale>be</locale> |
| 271 |
<encoding>ISO-8859-5</encoding> |
| 272 |
</locale-encoding-mapping> |
| 273 |
<locale-encoding-mapping> |
| 274 |
<locale>bg</locale> |
| 275 |
<encoding>ISO-8859-5</encoding> |
| 276 |
</locale-encoding-mapping> |
| 277 |
<locale-encoding-mapping> |
| 278 |
<locale>ca</locale> |
| 279 |
<encoding>ISO-8859-1</encoding> |
| 280 |
</locale-encoding-mapping> |
| 281 |
<locale-encoding-mapping> |
| 282 |
<locale>cs</locale> |
| 283 |
<encoding>ISO-8859-2</encoding> |
| 284 |
</locale-encoding-mapping> |
| 285 |
<locale-encoding-mapping> |
| 286 |
<locale>da</locale> |
| 287 |
<encoding>ISO-8859-1</encoding> |
| 288 |
</locale-encoding-mapping> |
| 289 |
<locale-encoding-mapping> |
| 290 |
<locale>de</locale> |
| 291 |
<encoding>ISO-8859-1</encoding> |
| 292 |
</locale-encoding-mapping> |
| 293 |
<locale-encoding-mapping> |
| 294 |
<locale>el</locale> |
| 295 |
<encoding>ISO-8859-7</encoding> |
| 296 |
</locale-encoding-mapping> |
| 297 |
<locale-encoding-mapping> |
| 298 |
<locale>en</locale> |
| 299 |
<encoding>ISO-8859-1</encoding> |
| 300 |
</locale-encoding-mapping> |
| 301 |
<locale-encoding-mapping> |
| 302 |
<locale>es</locale> |
| 303 |
<encoding>ISO-8859-1</encoding> |
| 304 |
</locale-encoding-mapping> |
| 305 |
<locale-encoding-mapping> |
| 306 |
<locale>et</locale> |
| 307 |
<encoding>ISO-8859-1</encoding> |
| 308 |
</locale-encoding-mapping> |
| 309 |
<locale-encoding-mapping> |
| 310 |
<locale>fi</locale> |
| 311 |
<encoding>ISO-8859-1</encoding> |
| 312 |
</locale-encoding-mapping> |
| 313 |
<locale-encoding-mapping> |
| 314 |
<locale>fr</locale> |
| 315 |
<encoding>ISO-8859-1</encoding> |
| 316 |
</locale-encoding-mapping> |
| 317 |
<locale-encoding-mapping> |
| 318 |
<locale>hr</locale> |
| 319 |
<encoding>ISO-8859-2</encoding> |
| 320 |
</locale-encoding-mapping> |
| 321 |
<locale-encoding-mapping> |
| 322 |
<locale>hu</locale> |
| 323 |
<encoding>ISO-8859-2</encoding> |
| 324 |
</locale-encoding-mapping> |
| 325 |
<locale-encoding-mapping> |
| 326 |
<locale>is</locale> |
| 327 |
<encoding>ISO-8859-1</encoding> |
| 328 |
</locale-encoding-mapping> |
| 329 |
<locale-encoding-mapping> |
| 330 |
<locale>it</locale> |
| 331 |
<encoding>ISO-8859-1</encoding> |
| 332 |
</locale-encoding-mapping> |
| 333 |
<locale-encoding-mapping> |
| 334 |
<locale>iw</locale> |
| 335 |
<encoding>ISO-8859-8</encoding> |
| 336 |
</locale-encoding-mapping> |
| 337 |
<locale-encoding-mapping> |
| 338 |
<locale>ja</locale> |
| 339 |
<encoding>Shift_JIS</encoding> |
| 340 |
</locale-encoding-mapping> |
| 341 |
<locale-encoding-mapping> |
| 342 |
<locale>ko</locale> |
| 343 |
<encoding>EUC-KR</encoding> |
| 344 |
</locale-encoding-mapping> |
| 345 |
<locale-encoding-mapping> |
| 346 |
<locale>lt</locale> |
| 347 |
<encoding>ISO-8859-2</encoding> |
| 348 |
</locale-encoding-mapping> |
| 349 |
<locale-encoding-mapping> |
| 350 |
<locale>lv</locale> |
| 351 |
<encoding>ISO-8859-2</encoding> |
| 352 |
</locale-encoding-mapping> |
| 353 |
<locale-encoding-mapping> |
| 354 |
<locale>mk</locale> |
| 355 |
<encoding>ISO-8859-5</encoding> |
| 356 |
</locale-encoding-mapping> |
| 357 |
<locale-encoding-mapping> |
| 358 |
<locale>nl</locale> |
| 359 |
<encoding>ISO-8859-1</encoding> |
| 360 |
</locale-encoding-mapping> |
| 361 |
<locale-encoding-mapping> |
| 362 |
<locale>no</locale> |
| 363 |
<encoding>ISO-8859-1</encoding> |
| 364 |
</locale-encoding-mapping> |
| 365 |
<locale-encoding-mapping> |
| 366 |
<locale>pl</locale> |
| 367 |
<encoding>ISO-8859-2</encoding> |
| 368 |
</locale-encoding-mapping> |
| 369 |
<locale-encoding-mapping> |
| 370 |
<locale>pt</locale> |
| 371 |
<encoding>ISO-8859-1</encoding> |
| 372 |
</locale-encoding-mapping> |
| 373 |
<locale-encoding-mapping> |
| 374 |
<locale>ro</locale> |
| 375 |
<encoding>ISO-8859-2</encoding> |
| 376 |
</locale-encoding-mapping> |
| 377 |
<locale-encoding-mapping> |
| 378 |
<locale>ru</locale> |
| 379 |
<encoding>ISO-8859-5</encoding> |
| 380 |
</locale-encoding-mapping> |
| 381 |
<locale-encoding-mapping> |
| 382 |
<locale>sh</locale> |
| 383 |
<encoding>ISO-8859-5</encoding> |
| 384 |
</locale-encoding-mapping> |
| 385 |
<locale-encoding-mapping> |
| 386 |
<locale>sk</locale> |
| 387 |
<encoding>ISO-8859-2</encoding> |
| 388 |
</locale-encoding-mapping> |
| 389 |
<locale-encoding-mapping> |
| 390 |
<locale>sl</locale> |
| 391 |
<encoding>ISO-8859-2</encoding> |
| 392 |
</locale-encoding-mapping> |
| 393 |
<locale-encoding-mapping> |
| 394 |
<locale>sq</locale> |
| 395 |
<encoding>ISO-8859-2</encoding> |
| 396 |
</locale-encoding-mapping> |
| 397 |
<locale-encoding-mapping> |
| 398 |
<locale>sr</locale> |
| 399 |
<encoding>ISO-8859-5</encoding> |
| 400 |
</locale-encoding-mapping> |
| 401 |
<locale-encoding-mapping> |
| 402 |
<locale>sv</locale> |
| 403 |
<encoding>ISO-8859-1</encoding> |
| 404 |
</locale-encoding-mapping> |
| 405 |
<locale-encoding-mapping> |
| 406 |
<locale>tr</locale> |
| 407 |
<encoding>ISO-8859-9</encoding> |
| 408 |
</locale-encoding-mapping> |
| 409 |
<locale-encoding-mapping> |
| 410 |
<locale>uk</locale> |
| 411 |
<encoding>ISO-8859-5</encoding> |
| 412 |
</locale-encoding-mapping> |
| 413 |
<locale-encoding-mapping> |
| 414 |
<locale>zh</locale> |
| 415 |
<encoding>GB2312</encoding> |
| 416 |
</locale-encoding-mapping> |
| 417 |
<locale-encoding-mapping> |
| 418 |
<locale>zh_TW</locale> |
| 419 |
<encoding>Big5</encoding> |
| 420 |
</locale-encoding-mapping> |
| 421 |
</locale-encoding-mapping-list> |
| 422 |
|
| 423 |
<!-- ==================================================================== --> |
| 424 |
<!-- Disable TRACE method with security constraint --> |
| 425 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 426 |
<security-constraint> |
| 427 |
<web-resource-collection> |
| 428 |
<web-resource-name>Disable TRACE</web-resource-name> |
| 429 |
<url-pattern>/</url-pattern> |
| 430 |
<http-method>TRACE</http-method> |
| 431 |
</web-resource-collection> |
| 432 |
<auth-constraint/> |
| 433 |
</security-constraint> |
| 434 |
<security-constraint> |
| 435 |
<web-resource-collection> |
| 436 |
<web-resource-name>Enable everything but TRACE</web-resource-name> |
| 437 |
<url-pattern>/</url-pattern> |
| 438 |
<http-method-omission>TRACE</http-method-omission> |
| 439 |
</web-resource-collection> |
| 440 |
</security-constraint> |
| 441 |
|
| 442 |
</web-app> |
| 443 |
|