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
95
96
  <!-- spring dispatcher servlet, dispatches incoming requests to controllers -->
97
  <servlet>
98
    <servlet-name>dispatcher</servlet-name>
99
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
100
  </servlet>
101
102
   <!-- Struts config needs to load before all the other servlets... except spring-->
103
   <servlet>
104
    <servlet-name>action</servlet-name>
105
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
106
    <init-param>
107
      <param-name>config</param-name>
108
      <param-value>/WEB-INF/struts-config.xml</param-value>
109
    </init-param>
110
    <init-param>
111
      <param-name>debug</param-name>
112
      <param-value>2</param-value>
113
    </init-param>
114
    <init-param>
115
      <param-name>detail</param-name>
116
      <param-value>2</param-value>
117
    </init-param>
118
    <load-on-startup>1</load-on-startup>
119
  </servlet>
120
121
  <servlet>
122
   <servlet-name>TestWfsPost</servlet-name>
123
   <servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
124
  </servlet>
125
126
127
128
  <!-- MPTODO testing -->
129
  <servlet>
130
    <servlet-name>SldFactory</servlet-name>
131
    <servlet-class>edu.ucsb.nceas.metacat.spatial.SldFactory</servlet-class>
132
  </servlet>
133
134 3257 berkley
   <!--<servlet>
135 3194 berkley
      <servlet-name>gwt</servlet-name>
136
      <servlet-class>org.kepler.web.service.KeplerServiceServlet</servlet-class>
137
      <init-param>
138
        <param-name>debug</param-name>
139
        <param-value>1</param-value>
140
      </init-param>
141
      <init-param>
142
        <param-name>listings</param-name>
143
        <param-value>true</param-value>
144
      </init-param>
145
      <load-on-startup>2</load-on-startup>
146 3257 berkley
    </servlet>-->
147 3104 perry
148
149 2012 cjones
    <servlet>
150
      <servlet-name>metacat</servlet-name>
151
      <servlet-class>edu.ucsb.nceas.metacat.MetaCatServlet</servlet-class>
152
      <init-param>
153
        <param-name>debug</param-name>
154
        <param-value>1</param-value>
155
      </init-param>
156
      <init-param>
157
        <param-name>listings</param-name>
158
        <param-value>true</param-value>
159
      </init-param>
160 3104 perry
      <load-on-startup>2</load-on-startup>
161 2012 cjones
    </servlet>
162
163 4080 daigle
    <servlet>
164 5027 daigle
      <servlet-name>MetacatAdmin</servlet-name>
165
      <servlet-class>edu.ucsb.nceas.metacat.admin.MetacatAdminServlet</servlet-class>
166 4080 daigle
      <init-param>
167
        <param-name>debug</param-name>
168
        <param-value>1</param-value>
169
      </init-param>
170
      <init-param>
171
        <param-name>listings</param-name>
172
        <param-value>true</param-value>
173
      </init-param>
174
      <load-on-startup>3</load-on-startup>
175
    </servlet>
176
177 2012 cjones
     <servlet>
178
      <servlet-name>replication</servlet-name>
179 5027 daigle
      <servlet-class>edu.ucsb.nceas.metacat.replication.ReplicationServlet</servlet-class>
180 2012 cjones
      <init-param>
181
        <param-name>debug</param-name>
182
        <param-value>1</param-value>
183
      </init-param>
184
      <init-param>
185
        <param-name>listings</param-name>
186
        <param-value>true</param-value>
187
      </init-param>
188 3104 perry
      <load-on-startup>3</load-on-startup>
189 2012 cjones
    </servlet>
190
191 2295 sgarg
    <servlet>
192
      <servlet-name>HarvesterRegistrationLogin</servlet-name>
193
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</servlet-class>
194
      <init-param>
195
        <param-name>debug</param-name>
196
        <param-value>1</param-value>
197
      </init-param>
198
      <init-param>
199
        <param-name>listings</param-name>
200
        <param-value>true</param-value>
201
      </init-param>
202 3104 perry
      <load-on-startup>3</load-on-startup>
203 2295 sgarg
    </servlet>
204
205
    <servlet>
206
      <servlet-name>HarvesterRegistration</servlet-name>
207
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</servlet-class>
208
      <init-param>
209
        <param-name>debug</param-name>
210
        <param-value>1</param-value>
211
      </init-param>
212
      <init-param>
213
        <param-name>listings</param-name>
214
        <param-value>true</param-value>
215
      </init-param>
216 3104 perry
      <load-on-startup>3</load-on-startup>
217 2295 sgarg
    </servlet>
218
219 2742 costa
    <servlet>
220
        <servlet-name>AdvancedSearchServlet</servlet-name>
221
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
222 3104 perry
        <load-on-startup>3</load-on-startup>
223 2742 costa
    </servlet>
224
225 4078 tao
    <!--
226 2383 costa
    <servlet>
227
      <servlet-name>HarvesterServlet</servlet-name>
228
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
229
      <init-param>
230
        <param-name>debug</param-name>
231
        <param-value>1</param-value>
232
      </init-param>
233
      <init-param>
234
        <param-name>listings</param-name>
235
        <param-value>true</param-value>
236
      </init-param>
237 3104 perry
      <load-on-startup>3</load-on-startup>
238 2383 costa
    </servlet>
239 4080 daigle
    -->
240
241 4943 costa
    <!--
242
    <servlet>
243
      <servlet-name>DataProvider</servlet-name>
244
      <description>Processes OAI verbs for Metacat OAI-PMH Data Provider (MODP)
245
      </description>
246
      <servlet-class>edu.ucsb.nceas.metacat.oaipmh.provider.server.OAIHandler</servlet-class>
247
      <load-on-startup>4</load-on-startup>
248
    </servlet>
249
    -->
250
251 3993 berkley
<servlet>
252 3104 perry
      <servlet-name>AxisServlet</servlet-name>
253
      <display-name>Apache-Axis Servlet</display-name>
254
      <servlet-class>
255
          org.apache.axis.transport.http.AxisServlet
256
      </servlet-class>
257
      <load-on-startup>3</load-on-startup>
258
    </servlet>
259 2383 costa
260 2799 tao
  <servlet>
261
    <servlet-name>AdminServlet</servlet-name>
262
    <display-name>Axis Admin Servlet</display-name>
263
    <servlet-class>
264
        org.apache.axis.transport.http.AdminServlet
265
    </servlet-class>
266
    <load-on-startup>100</load-on-startup>
267
  </servlet>
268
269
  <servlet>
270
    <servlet-name>SOAPMonitorService</servlet-name>
271
    <display-name>SOAPMonitorService</display-name>
272
    <servlet-class>
273
        org.apache.axis.monitor.SOAPMonitorService
274
    </servlet-class>
275
    <init-param>
276
      <param-name>SOAPMonitorPort</param-name>
277
      <param-value>5001</param-value>
278
    </init-param>
279
    <load-on-startup>100</load-on-startup>
280
  </servlet>
281
282 5211 jones
<!-- REST Servlet -->
283
    <servlet>
284
      <servlet-name>RestServlet</servlet-name>
285
      <servlet-class>edu.ucsb.nceas.metacat.restservice.RestServlet</servlet-class>
286
      <init-param>
287
        <param-name>debug</param-name>
288
        <param-value>1</param-value>
289
      </init-param>
290
      <init-param>
291
        <param-name>listings</param-name>
292
        <param-value>true</param-value>
293
      </init-param>
294
      <load-on-startup>10</load-on-startup>
295
    </servlet>
296
297 3257 berkley
  <!--<servlet-mapping>
298 3194 berkley
        <servlet-name>gwt</servlet-name>
299
        <url-pattern>/gwt</url-pattern>
300 3257 berkley
    </servlet-mapping>-->
301 3194 berkley
302 2012 cjones
    <servlet-mapping>
303
        <servlet-name>metacat</servlet-name>
304
        <url-pattern>/metacat</url-pattern>
305
    </servlet-mapping>
306 3243 jones
307
    <servlet-mapping>
308
        <servlet-name>metacat</servlet-name>
309
        <url-pattern>/metacat/*</url-pattern>
310
    </servlet-mapping>
311 2511 tao
312
    <servlet-mapping>
313 3185 tao
        <servlet-name>metacat</servlet-name>
314
        <url-pattern>/servlet/metacat</url-pattern>
315
    </servlet-mapping>
316 4080 daigle
317
318
    <servlet-mapping>
319 5027 daigle
        <servlet-name>MetacatAdmin</servlet-name>
320 4080 daigle
        <url-pattern>/admin</url-pattern>
321
    </servlet-mapping>
322 5027 daigle
323 4080 daigle
    <servlet-mapping>
324 2511 tao
        <servlet-name>replication</servlet-name>
325 2575 tao
        <url-pattern>replication</url-pattern>
326
    </servlet-mapping>
327
328
    <servlet-mapping>
329
        <servlet-name>replication</servlet-name>
330
        <url-pattern>/servlet/replication</url-pattern>
331 2511 tao
    </servlet-mapping>
332 2012 cjones
333 2295 sgarg
    <servlet-mapping>
334
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
335
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
336
    </servlet-mapping>
337
338
    <servlet-mapping>
339
        <servlet-name>HarvesterRegistration</servlet-name>
340
        <url-pattern>/harvesterRegistration</url-pattern>
341
    </servlet-mapping>
342
343 2742 costa
    <servlet-mapping>
344
        <servlet-name>AdvancedSearchServlet</servlet-name>
345
        <url-pattern>/advancedSearchServlet</url-pattern>
346
    </servlet-mapping>
347 2799 tao
348
    <servlet-mapping>
349
    <servlet-name>AxisServlet</servlet-name>
350
    <url-pattern>/servlet/AxisServlet</url-pattern>
351
  </servlet-mapping>
352 2742 costa
353 2799 tao
  <servlet-mapping>
354
    <servlet-name>AxisServlet</servlet-name>
355
    <url-pattern>*.jws</url-pattern>
356
  </servlet-mapping>
357
358
  <servlet-mapping>
359
    <servlet-name>AxisServlet</servlet-name>
360
    <url-pattern>/services/*</url-pattern>
361
  </servlet-mapping>
362
363
  <servlet-mapping>
364
    <servlet-name>SOAPMonitorService</servlet-name>
365
    <url-pattern>/SOAPMonitor</url-pattern>
366
  </servlet-mapping>
367
368 5211 jones
    <servlet-mapping>
369
        <servlet-name>RestServlet</servlet-name>
370 5224 jones
        <url-pattern>/object/*</url-pattern>
371 5211 jones
    </servlet-mapping>
372
373
    <servlet-mapping>
374
        <servlet-name>RestServlet</servlet-name>
375
        <url-pattern>/session/*</url-pattern>
376
    </servlet-mapping>
377
378
    <servlet-mapping>
379
        <servlet-name>RestServlet</servlet-name>
380
        <url-pattern>/identifier/*</url-pattern>
381
    </servlet-mapping>
382
383
384 2799 tao
 <!-- uncomment this if you want the admin servlet -->
385
  <servlet-mapping>
386
    <servlet-name>AdminServlet</servlet-name>
387
    <url-pattern>/servlet/AdminServlet</url-pattern>
388
  </servlet-mapping>
389 3104 perry
390 4943 costa
  <!--
391
   <servlet-mapping>
392
    <servlet-name>DataProvider</servlet-name>
393
    <url-pattern>/dataProvider</url-pattern>
394
  </servlet-mapping>
395
  -->
396 3104 perry
397
398
 <!-- MPTODO testing -->
399
  <servlet-mapping>
400
    <servlet-name>SldFactory</servlet-name>
401
    <url-pattern>/sldfactory</url-pattern>
402
  </servlet-mapping>
403
404
405
  <servlet-mapping>
406
    <servlet-name>action</servlet-name>
407
    <url-pattern>*.do</url-pattern>
408
   </servlet-mapping>
409
  <servlet-mapping>
410
        <servlet-name>dispatcher</servlet-name>
411
        <url-pattern>/wms/*</url-pattern>
412
  </servlet-mapping>
413
  <servlet-mapping>
414
        <servlet-name>dispatcher</servlet-name>
415
        <url-pattern>/wfs/*</url-pattern>
416
  </servlet-mapping>
417
  <servlet-mapping>
418
        <servlet-name>dispatcher</servlet-name>
419
        <url-pattern>/ows/*</url-pattern>
420
  </servlet-mapping>
421
  <servlet-mapping>
422
   <servlet-name>TestWfsPost</servlet-name>
423
   <url-pattern>/TestWfsPost/*</url-pattern>
424
  </servlet-mapping>
425
426
427 2012 cjones
    <session-config>
428 3104 perry
      <session-timeout>30000</session-timeout>
429 2012 cjones
    </session-config>
430 3104 perry
431 2799 tao
432
   <!-- currently the W3C havent settled on a media type for WSDL;
433
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
434
    for now we go with the basic 'it's XML' response -->
435
  <mime-mapping>
436
    <extension>wsdl</extension>
437
     <mime-type>text/xml</mime-type>
438
  </mime-mapping>
439
440
  <mime-mapping>
441
    <extension>xsd</extension>
442
    <mime-type>text/xml</mime-type>
443
  </mime-mapping>
444 3104 perry
445
  <mime-mapping>
446
   <extension>xsl</extension>
447
   <mime-type>text/xml</mime-type>
448
  </mime-mapping>
449
450
451
  <welcome-file-list>
452
    <welcome-file>index.jsp</welcome-file>
453 3138 tao
    <welcome-file>index.html</welcome-file>
454 3104 perry
  </welcome-file-list>
455
456
457
  <taglib>
458
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
459
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
460
  </taglib>
461
462
  <taglib>
463
    <taglib-uri>/tags/struts-bean</taglib-uri>
464
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
465
  </taglib>
466
467
  <taglib>
468
    <taglib-uri>/tags/struts-html</taglib-uri>
469
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
470
  </taglib>
471
472
  <taglib>
473
    <taglib-uri>/tags/struts-logic</taglib-uri>
474
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
475
  </taglib>
476
477
  <taglib>
478
    <taglib-uri>/tags/struts-nested</taglib-uri>
479
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
480
  </taglib>
481
482
  <taglib>
483
    <taglib-uri>/tags/struts-tiles</taglib-uri>
484
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
485
  </taglib>
486
487
  <!-- spring taglib -->
488
  <taglib>
489
        <taglib-uri>/tags/spring</taglib-uri>
490
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
491
  </taglib>
492
493
<!--
494
  <error-page>
495
        <exception-type>java.lang.Exception</exception-type>
496
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
497
  </error-page>
498
  <error-page>
499
        <exception-type>javax.servlet.ServletException</exception-type>
500
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
501
  </error-page>
502
  <error-page>
503
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
504
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
505
  </error-page>
506
-->
507
508 4724 daigle
<security-constraint>
509
	<web-resource-collection>
510
		<web-resource-name>CFG</web-resource-name>
511
			<url-pattern>*.cfg</url-pattern>
512
	</web-resource-collection>
513
	<auth-constraint/>
514
</security-constraint>
515
516
<security-constraint>
517
	<web-resource-collection>
518
		<web-resource-name>PROPERTIES</web-resource-name>
519
		<url-pattern>*.properties</url-pattern>
520
	</web-resource-collection>
521
	<auth-constraint/>
522
</security-constraint>
523
524 2012 cjones
</web-app>