-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.xml
447 lines (386 loc) · 19.4 KB
/
web.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<!-- ======================== Introduction ============================== -->
<!-- This document defines default values for *all* web applications -->
<!-- loaded into this instance of Tomcat. As each application is -->
<!-- deployed, this file is processed, followed by the -->
<!-- "/WEB-INF/web.xml" deployment descriptor from your own -->
<!-- applications. -->
<!-- -->
<!-- WARNING: Do not configure application-specific resources here! -->
<!-- They should go in the "/WEB-INF/web.xml" file in your application. -->
<!-- ================== Built In Servlet Definitions ==================== -->
<display-name>Hyrax</display-name>
<description>OPeNDAP Hyrax Server</description>
<!-- The JSP page compiler and execution servlet, which is the mechanism -->
<!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
<!-- is mapped to the URL pattern "*.jsp". This servlet supports the -->
<!-- following initialization parameters (default values are in square -->
<!-- brackets): -->
<!-- -->
<!-- checkInterval If development is false and checkInterval is -->
<!-- greater than zero, background compilations are -->
<!-- enabled. checkInterval is the time in seconds -->
<!-- between checks to see if a JSP page (and its -->
<!-- dependent files) needs to be recompiled. [0] -->
<!-- -->
<!-- classdebuginfo Should the class file be compiled with -->
<!-- debugging information? [true] -->
<!-- -->
<!-- classpath What class path should I use while compiling -->
<!-- generated servlets? [Created dynamically -->
<!-- based on the current web application] -->
<!-- -->
<!-- compiler Which compiler Ant should use to compile JSP -->
<!-- pages. See the jasper documentation for more -->
<!-- information. -->
<!-- -->
<!-- compilerSourceVM Compiler source VM. [1.5] -->
<!-- -->
<!-- compilerTargetVM Compiler target VM. [1.5] -->
<!-- -->
<!-- development Is Jasper used in development mode? If true, -->
<!-- the frequency at which JSPs are checked for -->
<!-- modification may be specified via the -->
<!-- modificationTestInterval parameter. [true] -->
<!-- -->
<!-- displaySourceFragment -->
<!-- Should a source fragment be included in -->
<!-- exception messages? [true] -->
<!-- -->
<!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
<!-- dumped to a file? [false] -->
<!-- False if suppressSmap is true -->
<!-- -->
<!-- enablePooling Determines whether tag handler pooling is -->
<!-- enabled. This is a compilation option. It will -->
<!-- not alter the behaviour of JSPs that have -->
<!-- already been compiled. [true] -->
<!-- -->
<!-- engineOptionsClass Allows specifying the Options class used to -->
<!-- configure Jasper. If not present, the default -->
<!-- EmbeddedServletOptions will be used. -->
<!-- -->
<!-- errorOnUseBeanInvalidClassAttribute -->
<!-- Should Jasper issue an error when the value of -->
<!-- the class attribute in an useBean action is -->
<!-- not a valid bean class? [true] -->
<!-- -->
<!-- fork Tell Ant to fork compiles of JSP pages so that -->
<!-- a separate JVM is used for JSP page compiles -->
<!-- from the one Tomcat is running in. [true] -->
<!-- -->
<!-- genStrAsCharArray Should text strings be generated as char -->
<!-- arrays, to improve performance in some cases? -->
<!-- [false] -->
<!-- -->
<!-- ieClassId The class-id value to be sent to Internet -->
<!-- Explorer when using <jsp:plugin> tags. -->
<!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
<!-- -->
<!-- javaEncoding Java file encoding to use for generating java -->
<!-- source files. [UTF8] -->
<!-- -->
<!-- keepgenerated Should we keep the generated Java source code -->
<!-- for each page instead of deleting it? [true] -->
<!-- -->
<!-- mappedfile Should we generate static content with one -->
<!-- print statement per input line, to ease -->
<!-- debugging? [true] -->
<!-- -->
<!-- modificationTestInterval -->
<!-- Causes a JSP (and its dependent files) to not -->
<!-- be checked for modification during the -->
<!-- specified time interval (in seconds) from the -->
<!-- last time the JSP was checked for -->
<!-- modification. A value of 0 will cause the JSP -->
<!-- to be checked on every access. -->
<!-- Used in development mode only. [4] -->
<!-- -->
<!-- scratchdir What scratch directory should we use when -->
<!-- compiling JSP pages? [default work directory -->
<!-- for the current web application] -->
<!-- -->
<!-- suppressSmap Should the generation of SMAP info for JSR45 -->
<!-- debugging be suppressed? [false] -->
<!-- -->
<!-- trimSpaces Should white spaces in template text between -->
<!-- actions or directives be trimmed? [false] -->
<!-- -->
<!-- xpoweredBy Determines whether X-Powered-By response -->
<!-- header is added by generated servlet [false] -->
<!-- -->
<!-- If you wish to use Jikes to compile JSP pages: -->
<!-- Please see the "Using Jikes" section of the Jasper-HowTo -->
<!-- page in the Tomcat documentation. -->
<filter>
<filter-name>ClickJackFilter</filter-name>
<filter-class>opendap.coreServlet.ClickjackFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ClickJackFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Uncomment These two filters to enable access control. -->
<filter>
<filter-name>ursidp</filter-name>
<filter-class>opendap.auth.IdFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ursidp</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>PEP</filter-name>
<filter-class>opendap.auth.PEPFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PEP</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Catalog Response Cache Updater (worker thread)
-->
<!-- Currently disabled...
<listener>
<listener-class>opendap.bes.caching.CatalogCacheUpdater</listener-class>
</listener>
-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<servlet>
<servlet-name>hyrax</servlet-name>
<servlet-class>opendap.coreServlet.DispatchServlet</servlet-class>
<init-param>
<param-name>DebugOn</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>ConfigFileName</param-name>
<param-value>olfs.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- - - - - - - - - WCS Servlet - - - - - - - - - -->
<servlet>
<servlet-name>wcs</servlet-name>
<servlet-class>opendap.wcs.v2_0.http.Servlet</servlet-class>
<init-param>
<param-name>WCSConfigFileName</param-name>
<param-value>wcs_service.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- - - - - - - - - - - - - - - - - - - - - - - - -->
<servlet>
<servlet-name>w10n</servlet-name>
<servlet-class>opendap.w10n.W10nServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>aggregation</servlet-name>
<servlet-class>opendap.aggregation.AggregationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>adminInterface</servlet-name>
<servlet-class>opendap.hai.DispatchServlet</servlet-class>
<!-- init-param>
<param-name>DeveloperMode</param-name>
<param-value>true</param-value>
</init-param -->
<!-- Most people don't use the HAI, so don't load it by default -->
<!-- load-on-startup>1</load-on-startup -->
</servlet>
<servlet>
<servlet-name>viewers</servlet-name>
<servlet-class>opendap.viewers.ViewersServlet</servlet-class>
<init-param>
<param-name>ConfigFileName</param-name>
<param-value>viewers.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>docs_servlet</servlet-name>
<servlet-class>opendap.coreServlet.DocServlet </servlet-class>
<!--servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class -->
<load-on-startup>1</load-on-startup>
</servlet>
<!-- moved to the robots.txt service -->
<servlet>
<servlet-name>site_map_service</servlet-name>
<servlet-class>opendap.bes.BESSiteMapService</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- servlet>
<servlet-name>echo</servlet-name>
<servlet-class>opendap.experiments.EchoServlet </servlet-class>
<load-on-startup>1</load-on-startup>
</servlet -->
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
<init-param>
<param-name>logLevel</param-name>
<param-value>sysout:DEBUG</param-value>
</init-param>
<init-param>
<param-name>RewriteLog</param-name>
<param-value>slf4j</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<!-- servlet-mapping>
<servlet-name>echo</servlet-name>
<url-pattern>/echo/*</url-pattern>
</servlet-mapping -->
<servlet-mapping>
<servlet-name>site_map_service</servlet-name>
<url-pattern>/siteMap/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>hyrax</servlet-name>
<url-pattern>/hyrax/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>adminInterface</servlet-name>
<url-pattern>/hai/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>viewers</servlet-name>
<url-pattern>/viewers/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>docs_servlet</servlet-name>
<url-pattern>/docs/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>aggregation</servlet-name>
<url-pattern>/aggregation/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>w10n</servlet-name>
<url-pattern>/w10n/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>wcs</servlet-name>
<url-pattern>/wcs/*</url-pattern>
</servlet-mapping>
<!-- ==================== Default Session Configuration ================= -->
<!-- You can set the default session timeout (in minutes) for all newly -->
<!-- created sessions by modifying the value below. -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!-- Default Error Page Definitions -->
<error-page>
<error-code>400</error-code>
<location>/error/error400.jsp</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/error/error401.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/error/error403.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error/error404.jsp</location>
</error-page>
<error-page>
<error-code>406</error-code>
<location>/error/error406.jsp</location>
</error-page>
<error-page>
<error-code>418</error-code>
<location>/error/error418.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/error500.jsp</location>
</error-page>
<error-page>
<error-code>501</error-code>
<location>/error/error501.jsp</location>
</error-page>
<error-page>
<error-code>502</error-code>
<location>/error/error502.jsp</location>
</error-page>
<error-page>
<error-code>504</error-code>
<location>/error/error504.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error/error500.jsp</location>
</error-page>
<!-- ===================== Default MIME Type Mappings =================== -->
<!-- When serving static resources, Tomcat will automatically generate -->
<!-- a "Content-Type" header based on the resource's filename extension, -->
<!-- based on these mappings. Additional mappings can be added here to -->
<!-- apply to your own application's web.xml deployment descriptor. -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<!-- Define a Security Constraint on the Admin command and user interfaces -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Hyrax Admin Interface</web-resource-name>
<url-pattern>/hai/*</url-pattern>
<url-pattern>/admin/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
<user-data-constraint>
<!-- this ensures that all efforts to access the admin interface nd resources must use HTTPS -->
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
<!-- transport-guarantee>NONE</transport-guarantee -->
</user-data-constraint>
</security-constraint>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Hyrax Administration Pages</realm-name>
<form-login-config>
<form-login-page>/admin/jsp/login.jsp</form-login-page>
<form-error-page>/admin/jsp/login-failed.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to login to the Hyrax Administration Application
</description>
<role-name>manager</role-name>
</security-role>
</web-app>