Project

General

Profile

1 2012 cjones
<!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 3104 perry
7
 <display-name>Metacat</display-name>
8
9 2012 cjones
    <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 2799 tao
16 5027 daigle
    <context-param>
17
      <param-name>configFileName</param-name>
18
      <param-value>metacat.properties</param-value>
19
      <description>The main configuration file for application</description>
20
    </context-param>
21
22 3104 perry
23
  <context-param>
24
    <param-name>serviceStratagy</param-name>
25
    <!-- Meaning of the different values :
26
27
    	 PARTIAL-BUFFER
28
    	 - Partially buffers the first xKb to disk. Once that has buffered, the the
29
    	   result is streamed to the user. This will allow for most errors to be caught
30
    	   early.
31
32
         BUFFER
33
         - stores the entire response in memory first, before sending it off to
34
           the user (may run out of memory)
35
36
         SPEED
37
         - outputs directly to the response (and cannot recover in the case of an
38
           error)
39
40
         FILE
41
         - outputs to the local filesystem first, before sending it off to the user
42
      -->
43
    <param-value>PARTIAL-BUFFER</param-value>
44
  </context-param>
45
  <context-param>
46
	<param-name>PARTIAL_BUFFER_STRATEGY_SIZE</param-name>
47
	<param-value>50</param-value>
48
  </context-param>
49
50
51
        <!-- pick up all spring application contexts -->
52
        <context-param>
53
                <param-name>contextConfigLocation</param-name>
54
                <param-value>classpath*:/applicationContext.xml</param-value>
55
        </context-param>
56
57
58
 <filter>
59
    <filter-name>Set Character Encoding</filter-name>
60
    <filter-class>org.vfny.geoserver.filters.SetCharacterEncodingFilter</filter-class>
61
    <init-param>
62
      <param-name>encoding</param-name>
63
      <param-value>UTF-8</param-value>
64
    </init-param>
65
  </filter>
66
67
  <filter-mapping>
68
    <filter-name>Set Character Encoding</filter-name>
69
    <url-pattern>/*</url-pattern>
70
  </filter-mapping>
71
72
73
  <listener>
74
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
75
  </listener>
76
77
78
79
  <!-- MPTODO testing  leave out for geoserver 1.4 and use a spring/geoserver plugin instead??
80
81
 <filter>
82
    <filter-name>WmsFilter</filter-name>
83
    <filter-class>edu.ucsb.nceas.metacat.spatial.WmsFilter</filter-class>
84
 </filter>
85
86
  <filter-mapping>
87
    <filter-name>WmsFilter</filter-name>
88
    <url-pattern>/metacatwms/*</url-pattern>
89
    <dispatcher>REQUEST</dispatcher>
90
  </filter-mapping>
91
  -->
92
93
94 5750 berkley
  <!-- D1 filters -->
95
  <filter>
96
    <filter-name>D1URLFilter</filter-name>
97
    <filter-class>edu.ucsb.nceas.metacat.restservice.D1URLFilter</filter-class>
98
  </filter>
99
100
  <filter-mapping>
101
    <filter-name>D1URLFilter</filter-name>
102
    <url-pattern>/d1/*</url-pattern>
103
    <dispatcher>REQUEST</dispatcher>
104
  </filter-mapping>
105 3104 perry
106
107
  <!-- spring dispatcher servlet, dispatches incoming requests to controllers -->
108
  <servlet>
109
    <servlet-name>dispatcher</servlet-name>
110
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
111
  </servlet>
112
113
   <!-- Struts config needs to load before all the other servlets... except spring-->
114
   <servlet>
115
    <servlet-name>action</servlet-name>
116
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
117
    <init-param>
118
      <param-name>config</param-name>
119
      <param-value>/WEB-INF/struts-config.xml</param-value>
120
    </init-param>
121
    <init-param>
122
      <param-name>debug</param-name>
123
      <param-value>2</param-value>
124
    </init-param>
125
    <init-param>
126
      <param-name>detail</param-name>
127
      <param-value>2</param-value>
128
    </init-param>
129
    <load-on-startup>1</load-on-startup>
130
  </servlet>
131
132
  <servlet>
133
   <servlet-name>TestWfsPost</servlet-name>
134
   <servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
135
  </servlet>
136
137
138
139
  <!-- MPTODO testing -->
140
  <servlet>
141
    <servlet-name>SldFactory</servlet-name>
142
    <servlet-class>edu.ucsb.nceas.metacat.spatial.SldFactory</servlet-class>
143
  </servlet>
144
145 3257 berkley
   <!--<servlet>
146 3194 berkley
      <servlet-name>gwt</servlet-name>
147
      <servlet-class>org.kepler.web.service.KeplerServiceServlet</servlet-class>
148
      <init-param>
149
        <param-name>debug</param-name>
150
        <param-value>1</param-value>
151
      </init-param>
152
      <init-param>
153
        <param-name>listings</param-name>
154
        <param-value>true</param-value>
155
      </init-param>
156
      <load-on-startup>2</load-on-startup>
157 3257 berkley
    </servlet>-->
158 3104 perry
159
160 2012 cjones
    <servlet>
161
      <servlet-name>metacat</servlet-name>
162
      <servlet-class>edu.ucsb.nceas.metacat.MetaCatServlet</servlet-class>
163
      <init-param>
164
        <param-name>debug</param-name>
165
        <param-value>1</param-value>
166
      </init-param>
167
      <init-param>
168
        <param-name>listings</param-name>
169
        <param-value>true</param-value>
170
      </init-param>
171 3104 perry
      <load-on-startup>2</load-on-startup>
172 2012 cjones
    </servlet>
173
174 4080 daigle
    <servlet>
175 5027 daigle
      <servlet-name>MetacatAdmin</servlet-name>
176
      <servlet-class>edu.ucsb.nceas.metacat.admin.MetacatAdminServlet</servlet-class>
177 4080 daigle
      <init-param>
178
        <param-name>debug</param-name>
179
        <param-value>1</param-value>
180
      </init-param>
181
      <init-param>
182
        <param-name>listings</param-name>
183
        <param-value>true</param-value>
184
      </init-param>
185
      <load-on-startup>3</load-on-startup>
186
    </servlet>
187
188 2012 cjones
     <servlet>
189
      <servlet-name>replication</servlet-name>
190 5027 daigle
      <servlet-class>edu.ucsb.nceas.metacat.replication.ReplicationServlet</servlet-class>
191 2012 cjones
      <init-param>
192
        <param-name>debug</param-name>
193
        <param-value>1</param-value>
194
      </init-param>
195
      <init-param>
196
        <param-name>listings</param-name>
197
        <param-value>true</param-value>
198
      </init-param>
199 3104 perry
      <load-on-startup>3</load-on-startup>
200 2012 cjones
    </servlet>
201
202 2295 sgarg
    <servlet>
203
      <servlet-name>HarvesterRegistrationLogin</servlet-name>
204
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</servlet-class>
205
      <init-param>
206
        <param-name>debug</param-name>
207
        <param-value>1</param-value>
208
      </init-param>
209
      <init-param>
210
        <param-name>listings</param-name>
211
        <param-value>true</param-value>
212
      </init-param>
213 3104 perry
      <load-on-startup>3</load-on-startup>
214 2295 sgarg
    </servlet>
215
216
    <servlet>
217
      <servlet-name>HarvesterRegistration</servlet-name>
218
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</servlet-class>
219
      <init-param>
220
        <param-name>debug</param-name>
221
        <param-value>1</param-value>
222
      </init-param>
223
      <init-param>
224
        <param-name>listings</param-name>
225
        <param-value>true</param-value>
226
      </init-param>
227 3104 perry
      <load-on-startup>3</load-on-startup>
228 2295 sgarg
    </servlet>
229
230 2742 costa
    <servlet>
231
        <servlet-name>AdvancedSearchServlet</servlet-name>
232
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
233 3104 perry
        <load-on-startup>3</load-on-startup>
234 2742 costa
    </servlet>
235
236 4078 tao
    <!--
237 2383 costa
    <servlet>
238
      <servlet-name>HarvesterServlet</servlet-name>
239
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
240
      <init-param>
241
        <param-name>debug</param-name>
242
        <param-value>1</param-value>
243
      </init-param>
244
      <init-param>
245
        <param-name>listings</param-name>
246
        <param-value>true</param-value>
247
      </init-param>
248 3104 perry
      <load-on-startup>3</load-on-startup>
249 2383 costa
    </servlet>
250 4080 daigle
    -->
251
252 4943 costa
    <!--
253
    <servlet>
254
      <servlet-name>DataProvider</servlet-name>
255
      <description>Processes OAI verbs for Metacat OAI-PMH Data Provider (MODP)
256
      </description>
257
      <servlet-class>edu.ucsb.nceas.metacat.oaipmh.provider.server.OAIHandler</servlet-class>
258
      <load-on-startup>4</load-on-startup>
259
    </servlet>
260
    -->
261
262 3993 berkley
<servlet>
263 3104 perry
      <servlet-name>AxisServlet</servlet-name>
264
      <display-name>Apache-Axis Servlet</display-name>
265
      <servlet-class>
266
          org.apache.axis.transport.http.AxisServlet
267
      </servlet-class>
268
      <load-on-startup>3</load-on-startup>
269
    </servlet>
270 2383 costa
271 2799 tao
  <servlet>
272
    <servlet-name>AdminServlet</servlet-name>
273
    <display-name>Axis Admin Servlet</display-name>
274
    <servlet-class>
275
        org.apache.axis.transport.http.AdminServlet
276
    </servlet-class>
277
    <load-on-startup>100</load-on-startup>
278
  </servlet>
279
280
  <servlet>
281
    <servlet-name>SOAPMonitorService</servlet-name>
282
    <display-name>SOAPMonitorService</display-name>
283
    <servlet-class>
284
        org.apache.axis.monitor.SOAPMonitorService
285
    </servlet-class>
286
    <init-param>
287
      <param-name>SOAPMonitorPort</param-name>
288
      <param-value>5001</param-value>
289
    </init-param>
290
    <load-on-startup>100</load-on-startup>
291
  </servlet>
292
293 5211 jones
<!-- REST Servlet -->
294
    <servlet>
295
      <servlet-name>RestServlet</servlet-name>
296
      <servlet-class>edu.ucsb.nceas.metacat.restservice.RestServlet</servlet-class>
297
      <init-param>
298
        <param-name>debug</param-name>
299
        <param-value>1</param-value>
300
      </init-param>
301
      <init-param>
302
        <param-name>listings</param-name>
303
        <param-value>true</param-value>
304
      </init-param>
305
      <load-on-startup>10</load-on-startup>
306
    </servlet>
307
308 3257 berkley
  <!--<servlet-mapping>
309 3194 berkley
        <servlet-name>gwt</servlet-name>
310
        <url-pattern>/gwt</url-pattern>
311 3257 berkley
    </servlet-mapping>-->
312 3194 berkley
313 2012 cjones
    <servlet-mapping>
314
        <servlet-name>metacat</servlet-name>
315
        <url-pattern>/metacat</url-pattern>
316
    </servlet-mapping>
317 3243 jones
318
    <servlet-mapping>
319
        <servlet-name>metacat</servlet-name>
320
        <url-pattern>/metacat/*</url-pattern>
321
    </servlet-mapping>
322 2511 tao
323
    <servlet-mapping>
324 3185 tao
        <servlet-name>metacat</servlet-name>
325
        <url-pattern>/servlet/metacat</url-pattern>
326
    </servlet-mapping>
327 4080 daigle
328
329
    <servlet-mapping>
330 5027 daigle
        <servlet-name>MetacatAdmin</servlet-name>
331 4080 daigle
        <url-pattern>/admin</url-pattern>
332
    </servlet-mapping>
333 5027 daigle
334 4080 daigle
    <servlet-mapping>
335 2511 tao
        <servlet-name>replication</servlet-name>
336 2575 tao
        <url-pattern>replication</url-pattern>
337
    </servlet-mapping>
338
339
    <servlet-mapping>
340
        <servlet-name>replication</servlet-name>
341
        <url-pattern>/servlet/replication</url-pattern>
342 2511 tao
    </servlet-mapping>
343 2012 cjones
344 2295 sgarg
    <servlet-mapping>
345
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
346
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
347
    </servlet-mapping>
348
349
    <servlet-mapping>
350
        <servlet-name>HarvesterRegistration</servlet-name>
351
        <url-pattern>/harvesterRegistration</url-pattern>
352
    </servlet-mapping>
353
354 2742 costa
    <servlet-mapping>
355
        <servlet-name>AdvancedSearchServlet</servlet-name>
356
        <url-pattern>/advancedSearchServlet</url-pattern>
357
    </servlet-mapping>
358 2799 tao
359
    <servlet-mapping>
360
    <servlet-name>AxisServlet</servlet-name>
361
    <url-pattern>/servlet/AxisServlet</url-pattern>
362
  </servlet-mapping>
363 2742 costa
364 2799 tao
  <servlet-mapping>
365
    <servlet-name>AxisServlet</servlet-name>
366
    <url-pattern>*.jws</url-pattern>
367
  </servlet-mapping>
368
369
  <servlet-mapping>
370
    <servlet-name>AxisServlet</servlet-name>
371
    <url-pattern>/services/*</url-pattern>
372
  </servlet-mapping>
373
374
  <servlet-mapping>
375
    <servlet-name>SOAPMonitorService</servlet-name>
376
    <url-pattern>/SOAPMonitor</url-pattern>
377
  </servlet-mapping>
378
379 5211 jones
    <servlet-mapping>
380
        <servlet-name>RestServlet</servlet-name>
381 5691 berkley
        <url-pattern>/d1/object/*</url-pattern>
382 5211 jones
    </servlet-mapping>
383 5355 berkley
384
    <servlet-mapping>
385
        <servlet-name>RestServlet</servlet-name>
386 5691 berkley
        <url-pattern>/d1/meta/*</url-pattern>
387 5355 berkley
    </servlet-mapping>
388 5211 jones
389
    <servlet-mapping>
390
        <servlet-name>RestServlet</servlet-name>
391 5691 berkley
        <url-pattern>/d1/session/*</url-pattern>
392 5211 jones
    </servlet-mapping>
393
394
    <servlet-mapping>
395
        <servlet-name>RestServlet</servlet-name>
396 5691 berkley
        <url-pattern>/d1/identifier/*</url-pattern>
397 5211 jones
    </servlet-mapping>
398 5391 berkley
399
    <servlet-mapping>
400
        <servlet-name>RestServlet</servlet-name>
401 5691 berkley
        <url-pattern>/d1/log/*</url-pattern>
402 5391 berkley
    </servlet-mapping>
403 5644 berkley
404
    <servlet-mapping>
405
        <servlet-name>RestServlet</servlet-name>
406 5691 berkley
        <url-pattern>/d1/checksum/*</url-pattern>
407 5644 berkley
    </servlet-mapping>
408 5211 jones
409 5692 berkley
    <servlet-mapping>
410
        <servlet-name>RestServlet</servlet-name>
411
        <url-pattern>/d1/*</url-pattern>
412
    </servlet-mapping>
413 5211 jones
414 2799 tao
 <!-- uncomment this if you want the admin servlet -->
415
  <servlet-mapping>
416
    <servlet-name>AdminServlet</servlet-name>
417
    <url-pattern>/servlet/AdminServlet</url-pattern>
418
  </servlet-mapping>
419 3104 perry
420 4943 costa
  <!--
421
   <servlet-mapping>
422
    <servlet-name>DataProvider</servlet-name>
423
    <url-pattern>/dataProvider</url-pattern>
424
  </servlet-mapping>
425
  -->
426 3104 perry
427
428
 <!-- MPTODO testing -->
429
  <servlet-mapping>
430
    <servlet-name>SldFactory</servlet-name>
431
    <url-pattern>/sldfactory</url-pattern>
432
  </servlet-mapping>
433
434
435
  <servlet-mapping>
436
    <servlet-name>action</servlet-name>
437
    <url-pattern>*.do</url-pattern>
438
   </servlet-mapping>
439
  <servlet-mapping>
440
        <servlet-name>dispatcher</servlet-name>
441
        <url-pattern>/wms/*</url-pattern>
442
  </servlet-mapping>
443
  <servlet-mapping>
444
        <servlet-name>dispatcher</servlet-name>
445
        <url-pattern>/wfs/*</url-pattern>
446
  </servlet-mapping>
447
  <servlet-mapping>
448
        <servlet-name>dispatcher</servlet-name>
449
        <url-pattern>/ows/*</url-pattern>
450
  </servlet-mapping>
451
  <servlet-mapping>
452
   <servlet-name>TestWfsPost</servlet-name>
453
   <url-pattern>/TestWfsPost/*</url-pattern>
454
  </servlet-mapping>
455
456
457 2012 cjones
    <session-config>
458 3104 perry
      <session-timeout>30000</session-timeout>
459 2012 cjones
    </session-config>
460 3104 perry
461 2799 tao
462
   <!-- currently the W3C havent settled on a media type for WSDL;
463
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
464
    for now we go with the basic 'it's XML' response -->
465
  <mime-mapping>
466
    <extension>wsdl</extension>
467
     <mime-type>text/xml</mime-type>
468
  </mime-mapping>
469
470
  <mime-mapping>
471
    <extension>xsd</extension>
472
    <mime-type>text/xml</mime-type>
473
  </mime-mapping>
474 3104 perry
475
  <mime-mapping>
476
   <extension>xsl</extension>
477
   <mime-type>text/xml</mime-type>
478
  </mime-mapping>
479
480
481
  <welcome-file-list>
482
    <welcome-file>index.jsp</welcome-file>
483 3138 tao
    <welcome-file>index.html</welcome-file>
484 3104 perry
  </welcome-file-list>
485
486
487
  <taglib>
488
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
489
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
490
  </taglib>
491
492
  <taglib>
493
    <taglib-uri>/tags/struts-bean</taglib-uri>
494
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
495
  </taglib>
496
497
  <taglib>
498
    <taglib-uri>/tags/struts-html</taglib-uri>
499
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
500
  </taglib>
501
502
  <taglib>
503
    <taglib-uri>/tags/struts-logic</taglib-uri>
504
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
505
  </taglib>
506
507
  <taglib>
508
    <taglib-uri>/tags/struts-nested</taglib-uri>
509
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
510
  </taglib>
511
512
  <taglib>
513
    <taglib-uri>/tags/struts-tiles</taglib-uri>
514
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
515
  </taglib>
516
517
  <!-- spring taglib -->
518
  <taglib>
519
        <taglib-uri>/tags/spring</taglib-uri>
520
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
521
  </taglib>
522
523
<!--
524
  <error-page>
525
        <exception-type>java.lang.Exception</exception-type>
526
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
527
  </error-page>
528
  <error-page>
529
        <exception-type>javax.servlet.ServletException</exception-type>
530
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
531
  </error-page>
532
  <error-page>
533
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
534
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
535
  </error-page>
536
-->
537
538 4724 daigle
<security-constraint>
539
	<web-resource-collection>
540
		<web-resource-name>PROPERTIES</web-resource-name>
541
		<url-pattern>*.properties</url-pattern>
542
	</web-resource-collection>
543
	<auth-constraint/>
544
</security-constraint>
545
546 2012 cjones
</web-app>