1
|
<!DOCTYPE web-app
|
2
|
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
|
3
|
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
|
4
|
|
5
|
<web-app>
|
6
|
|
7
|
<display-name>Metacat</display-name>
|
8
|
|
9
|
<context-param>
|
10
|
<param-name>jones</param-name>
|
11
|
<param-value>jones@nceas.ucsb.edu</param-value>
|
12
|
<description>
|
13
|
</description>
|
14
|
</context-param>
|
15
|
|
16
|
|
17
|
<context-param>
|
18
|
<param-name>serviceStratagy</param-name>
|
19
|
<!-- Meaning of the different values :
|
20
|
|
21
|
PARTIAL-BUFFER
|
22
|
- Partially buffers the first xKb to disk. Once that has buffered, the the
|
23
|
result is streamed to the user. This will allow for most errors to be caught
|
24
|
early.
|
25
|
|
26
|
BUFFER
|
27
|
- stores the entire response in memory first, before sending it off to
|
28
|
the user (may run out of memory)
|
29
|
|
30
|
SPEED
|
31
|
- outputs directly to the response (and cannot recover in the case of an
|
32
|
error)
|
33
|
|
34
|
FILE
|
35
|
- outputs to the local filesystem first, before sending it off to the user
|
36
|
-->
|
37
|
<param-value>PARTIAL-BUFFER</param-value>
|
38
|
</context-param>
|
39
|
<context-param>
|
40
|
<param-name>PARTIAL_BUFFER_STRATEGY_SIZE</param-name>
|
41
|
<param-value>50</param-value>
|
42
|
</context-param>
|
43
|
|
44
|
|
45
|
<!-- pick up all spring application contexts -->
|
46
|
<context-param>
|
47
|
<param-name>contextConfigLocation</param-name>
|
48
|
<param-value>classpath*:/applicationContext.xml</param-value>
|
49
|
</context-param>
|
50
|
|
51
|
|
52
|
<filter>
|
53
|
<filter-name>Set Character Encoding</filter-name>
|
54
|
<filter-class>org.vfny.geoserver.filters.SetCharacterEncodingFilter</filter-class>
|
55
|
<init-param>
|
56
|
<param-name>encoding</param-name>
|
57
|
<param-value>UTF-8</param-value>
|
58
|
</init-param>
|
59
|
</filter>
|
60
|
|
61
|
<filter-mapping>
|
62
|
<filter-name>Set Character Encoding</filter-name>
|
63
|
<url-pattern>/*</url-pattern>
|
64
|
</filter-mapping>
|
65
|
|
66
|
|
67
|
<listener>
|
68
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
69
|
</listener>
|
70
|
|
71
|
|
72
|
|
73
|
<!-- MPTODO testing leave out for geoserver 1.4 and use a spring/geoserver plugin instead??
|
74
|
|
75
|
<filter>
|
76
|
<filter-name>WmsFilter</filter-name>
|
77
|
<filter-class>edu.ucsb.nceas.metacat.spatial.WmsFilter</filter-class>
|
78
|
</filter>
|
79
|
|
80
|
<filter-mapping>
|
81
|
<filter-name>WmsFilter</filter-name>
|
82
|
<url-pattern>/metacatwms/*</url-pattern>
|
83
|
<dispatcher>REQUEST</dispatcher>
|
84
|
</filter-mapping>
|
85
|
-->
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
<!-- spring dispatcher servlet, dispatches incoming requests to controllers -->
|
91
|
<servlet>
|
92
|
<servlet-name>dispatcher</servlet-name>
|
93
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
94
|
</servlet>
|
95
|
|
96
|
<!-- Struts config needs to load before all the other servlets... except spring-->
|
97
|
<servlet>
|
98
|
<servlet-name>action</servlet-name>
|
99
|
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
|
100
|
<init-param>
|
101
|
<param-name>config</param-name>
|
102
|
<param-value>/WEB-INF/struts-config.xml</param-value>
|
103
|
</init-param>
|
104
|
<init-param>
|
105
|
<param-name>debug</param-name>
|
106
|
<param-value>2</param-value>
|
107
|
</init-param>
|
108
|
<init-param>
|
109
|
<param-name>detail</param-name>
|
110
|
<param-value>2</param-value>
|
111
|
</init-param>
|
112
|
<load-on-startup>1</load-on-startup>
|
113
|
</servlet>
|
114
|
|
115
|
<servlet>
|
116
|
<servlet-name>TestWfsPost</servlet-name>
|
117
|
<servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
|
118
|
</servlet>
|
119
|
|
120
|
|
121
|
|
122
|
<!-- MPTODO testing -->
|
123
|
<servlet>
|
124
|
<servlet-name>SldFactory</servlet-name>
|
125
|
<servlet-class>edu.ucsb.nceas.metacat.spatial.SldFactory</servlet-class>
|
126
|
</servlet>
|
127
|
|
128
|
<!--<servlet>
|
129
|
<servlet-name>gwt</servlet-name>
|
130
|
<servlet-class>org.kepler.web.service.KeplerServiceServlet</servlet-class>
|
131
|
<init-param>
|
132
|
<param-name>debug</param-name>
|
133
|
<param-value>1</param-value>
|
134
|
</init-param>
|
135
|
<init-param>
|
136
|
<param-name>listings</param-name>
|
137
|
<param-value>true</param-value>
|
138
|
</init-param>
|
139
|
<load-on-startup>2</load-on-startup>
|
140
|
</servlet>-->
|
141
|
|
142
|
|
143
|
<servlet>
|
144
|
<servlet-name>metacat</servlet-name>
|
145
|
<servlet-class>edu.ucsb.nceas.metacat.MetaCatServlet</servlet-class>
|
146
|
<init-param>
|
147
|
<param-name>debug</param-name>
|
148
|
<param-value>1</param-value>
|
149
|
</init-param>
|
150
|
<init-param>
|
151
|
<param-name>listings</param-name>
|
152
|
<param-value>true</param-value>
|
153
|
</init-param>
|
154
|
<load-on-startup>2</load-on-startup>
|
155
|
</servlet>
|
156
|
|
157
|
<servlet>
|
158
|
<servlet-name>replication</servlet-name>
|
159
|
<servlet-class>edu.ucsb.nceas.metacat.MetacatReplication</servlet-class>
|
160
|
<init-param>
|
161
|
<param-name>debug</param-name>
|
162
|
<param-value>1</param-value>
|
163
|
</init-param>
|
164
|
<init-param>
|
165
|
<param-name>listings</param-name>
|
166
|
<param-value>true</param-value>
|
167
|
</init-param>
|
168
|
<load-on-startup>3</load-on-startup>
|
169
|
</servlet>
|
170
|
|
171
|
<servlet>
|
172
|
<servlet-name>HarvesterRegistrationLogin</servlet-name>
|
173
|
<servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</servlet-class>
|
174
|
<init-param>
|
175
|
<param-name>debug</param-name>
|
176
|
<param-value>1</param-value>
|
177
|
</init-param>
|
178
|
<init-param>
|
179
|
<param-name>listings</param-name>
|
180
|
<param-value>true</param-value>
|
181
|
</init-param>
|
182
|
<load-on-startup>3</load-on-startup>
|
183
|
</servlet>
|
184
|
|
185
|
<servlet>
|
186
|
<servlet-name>HarvesterRegistration</servlet-name>
|
187
|
<servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</servlet-class>
|
188
|
<init-param>
|
189
|
<param-name>debug</param-name>
|
190
|
<param-value>1</param-value>
|
191
|
</init-param>
|
192
|
<init-param>
|
193
|
<param-name>listings</param-name>
|
194
|
<param-value>true</param-value>
|
195
|
</init-param>
|
196
|
<load-on-startup>3</load-on-startup>
|
197
|
</servlet>
|
198
|
|
199
|
<servlet>
|
200
|
<servlet-name>AdvancedSearchServlet</servlet-name>
|
201
|
<servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
|
202
|
<load-on-startup>3</load-on-startup>
|
203
|
</servlet>
|
204
|
|
205
|
<!--
|
206
|
<servlet>
|
207
|
<servlet-name>HarvesterServlet</servlet-name>
|
208
|
<servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
|
209
|
<init-param>
|
210
|
<param-name>debug</param-name>
|
211
|
<param-value>1</param-value>
|
212
|
</init-param>
|
213
|
<init-param>
|
214
|
<param-name>listings</param-name>
|
215
|
<param-value>true</param-value>
|
216
|
</init-param>
|
217
|
<load-on-startup>3</load-on-startup>
|
218
|
</servlet>
|
219
|
-->
|
220
|
<servlet>
|
221
|
<servlet-name>AxisServlet</servlet-name>
|
222
|
<display-name>Apache-Axis Servlet</display-name>
|
223
|
<servlet-class>
|
224
|
org.apache.axis.transport.http.AxisServlet
|
225
|
</servlet-class>
|
226
|
<load-on-startup>3</load-on-startup>
|
227
|
</servlet>
|
228
|
|
229
|
<servlet>
|
230
|
<servlet-name>AdminServlet</servlet-name>
|
231
|
<display-name>Axis Admin Servlet</display-name>
|
232
|
<servlet-class>
|
233
|
org.apache.axis.transport.http.AdminServlet
|
234
|
</servlet-class>
|
235
|
<load-on-startup>100</load-on-startup>
|
236
|
</servlet>
|
237
|
|
238
|
<servlet>
|
239
|
<servlet-name>SOAPMonitorService</servlet-name>
|
240
|
<display-name>SOAPMonitorService</display-name>
|
241
|
<servlet-class>
|
242
|
org.apache.axis.monitor.SOAPMonitorService
|
243
|
</servlet-class>
|
244
|
<init-param>
|
245
|
<param-name>SOAPMonitorPort</param-name>
|
246
|
<param-value>5001</param-value>
|
247
|
</init-param>
|
248
|
<load-on-startup>100</load-on-startup>
|
249
|
</servlet>
|
250
|
|
251
|
<!--<servlet-mapping>
|
252
|
<servlet-name>gwt</servlet-name>
|
253
|
<url-pattern>/gwt</url-pattern>
|
254
|
</servlet-mapping>-->
|
255
|
|
256
|
<servlet-mapping>
|
257
|
<servlet-name>metacat</servlet-name>
|
258
|
<url-pattern>/metacat</url-pattern>
|
259
|
</servlet-mapping>
|
260
|
|
261
|
<servlet-mapping>
|
262
|
<servlet-name>metacat</servlet-name>
|
263
|
<url-pattern>/metacat/*</url-pattern>
|
264
|
</servlet-mapping>
|
265
|
|
266
|
<servlet-mapping>
|
267
|
<servlet-name>metacat</servlet-name>
|
268
|
<url-pattern>/servlet/metacat</url-pattern>
|
269
|
</servlet-mapping>
|
270
|
|
271
|
<servlet-mapping>
|
272
|
<servlet-name>replication</servlet-name>
|
273
|
<url-pattern>replication</url-pattern>
|
274
|
</servlet-mapping>
|
275
|
|
276
|
<servlet-mapping>
|
277
|
<servlet-name>replication</servlet-name>
|
278
|
<url-pattern>/servlet/replication</url-pattern>
|
279
|
</servlet-mapping>
|
280
|
|
281
|
<servlet-mapping>
|
282
|
<servlet-name>HarvesterRegistrationLogin</servlet-name>
|
283
|
<url-pattern>/harvesterRegistrationLogin</url-pattern>
|
284
|
</servlet-mapping>
|
285
|
|
286
|
<servlet-mapping>
|
287
|
<servlet-name>HarvesterRegistration</servlet-name>
|
288
|
<url-pattern>/harvesterRegistration</url-pattern>
|
289
|
</servlet-mapping>
|
290
|
|
291
|
<servlet-mapping>
|
292
|
<servlet-name>AdvancedSearchServlet</servlet-name>
|
293
|
<url-pattern>/advancedSearchServlet</url-pattern>
|
294
|
</servlet-mapping>
|
295
|
|
296
|
<servlet-mapping>
|
297
|
<servlet-name>AxisServlet</servlet-name>
|
298
|
<url-pattern>/servlet/AxisServlet</url-pattern>
|
299
|
</servlet-mapping>
|
300
|
|
301
|
<servlet-mapping>
|
302
|
<servlet-name>AxisServlet</servlet-name>
|
303
|
<url-pattern>*.jws</url-pattern>
|
304
|
</servlet-mapping>
|
305
|
|
306
|
<servlet-mapping>
|
307
|
<servlet-name>AxisServlet</servlet-name>
|
308
|
<url-pattern>/services/*</url-pattern>
|
309
|
</servlet-mapping>
|
310
|
|
311
|
<servlet-mapping>
|
312
|
<servlet-name>SOAPMonitorService</servlet-name>
|
313
|
<url-pattern>/SOAPMonitor</url-pattern>
|
314
|
</servlet-mapping>
|
315
|
|
316
|
<!-- uncomment this if you want the admin servlet -->
|
317
|
<servlet-mapping>
|
318
|
<servlet-name>AdminServlet</servlet-name>
|
319
|
<url-pattern>/servlet/AdminServlet</url-pattern>
|
320
|
</servlet-mapping>
|
321
|
|
322
|
|
323
|
|
324
|
<!-- MPTODO testing -->
|
325
|
<servlet-mapping>
|
326
|
<servlet-name>SldFactory</servlet-name>
|
327
|
<url-pattern>/sldfactory</url-pattern>
|
328
|
</servlet-mapping>
|
329
|
|
330
|
|
331
|
<servlet-mapping>
|
332
|
<servlet-name>action</servlet-name>
|
333
|
<url-pattern>*.do</url-pattern>
|
334
|
</servlet-mapping>
|
335
|
<servlet-mapping>
|
336
|
<servlet-name>dispatcher</servlet-name>
|
337
|
<url-pattern>/wms/*</url-pattern>
|
338
|
</servlet-mapping>
|
339
|
<servlet-mapping>
|
340
|
<servlet-name>dispatcher</servlet-name>
|
341
|
<url-pattern>/wfs/*</url-pattern>
|
342
|
</servlet-mapping>
|
343
|
<servlet-mapping>
|
344
|
<servlet-name>dispatcher</servlet-name>
|
345
|
<url-pattern>/ows/*</url-pattern>
|
346
|
</servlet-mapping>
|
347
|
<servlet-mapping>
|
348
|
<servlet-name>TestWfsPost</servlet-name>
|
349
|
<url-pattern>/TestWfsPost/*</url-pattern>
|
350
|
</servlet-mapping>
|
351
|
|
352
|
|
353
|
<session-config>
|
354
|
<session-timeout>30000</session-timeout>
|
355
|
</session-config>
|
356
|
|
357
|
|
358
|
<!-- currently the W3C havent settled on a media type for WSDL;
|
359
|
http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
|
360
|
for now we go with the basic 'it's XML' response -->
|
361
|
<mime-mapping>
|
362
|
<extension>wsdl</extension>
|
363
|
<mime-type>text/xml</mime-type>
|
364
|
</mime-mapping>
|
365
|
|
366
|
<mime-mapping>
|
367
|
<extension>xsd</extension>
|
368
|
<mime-type>text/xml</mime-type>
|
369
|
</mime-mapping>
|
370
|
|
371
|
<mime-mapping>
|
372
|
<extension>xsl</extension>
|
373
|
<mime-type>text/xml</mime-type>
|
374
|
</mime-mapping>
|
375
|
|
376
|
|
377
|
<welcome-file-list>
|
378
|
<welcome-file>index.jsp</welcome-file>
|
379
|
<welcome-file>index.html</welcome-file>
|
380
|
</welcome-file-list>
|
381
|
|
382
|
|
383
|
<taglib>
|
384
|
<taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
|
385
|
<taglib-location>/WEB-INF/xtags.tld</taglib-location>
|
386
|
</taglib>
|
387
|
|
388
|
<taglib>
|
389
|
<taglib-uri>/tags/struts-bean</taglib-uri>
|
390
|
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
|
391
|
</taglib>
|
392
|
|
393
|
<taglib>
|
394
|
<taglib-uri>/tags/struts-html</taglib-uri>
|
395
|
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
|
396
|
</taglib>
|
397
|
|
398
|
<taglib>
|
399
|
<taglib-uri>/tags/struts-logic</taglib-uri>
|
400
|
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
|
401
|
</taglib>
|
402
|
|
403
|
<taglib>
|
404
|
<taglib-uri>/tags/struts-nested</taglib-uri>
|
405
|
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
|
406
|
</taglib>
|
407
|
|
408
|
<taglib>
|
409
|
<taglib-uri>/tags/struts-tiles</taglib-uri>
|
410
|
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
|
411
|
</taglib>
|
412
|
|
413
|
<!-- spring taglib -->
|
414
|
<taglib>
|
415
|
<taglib-uri>/tags/spring</taglib-uri>
|
416
|
<taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
|
417
|
</taglib>
|
418
|
|
419
|
<!--
|
420
|
<error-page>
|
421
|
<exception-type>java.lang.Exception</exception-type>
|
422
|
<location>/WEB-INF/pages/errors/Exception.jsp</location>
|
423
|
</error-page>
|
424
|
<error-page>
|
425
|
<exception-type>javax.servlet.ServletException</exception-type>
|
426
|
<location>/WEB-INF/pages/errors/Exception.jsp</location>
|
427
|
</error-page>
|
428
|
<error-page>
|
429
|
<exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
|
430
|
<location>/WEB-INF/pages/errors/Exception.jsp</location>
|
431
|
</error-page>
|
432
|
-->
|
433
|
|
434
|
</web-app>
|