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 5027 daigle
    <servlet>
178
      <servlet-name>MetacatWeb</servlet-name>
179
      <servlet-class>edu.ucsb.nceas.metacat.web.MetacatWebServlet</servlet-class>
180
      <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
      <load-on-startup>3</load-on-startup>
189
    </servlet>
190
191 2012 cjones
     <servlet>
192
      <servlet-name>replication</servlet-name>
193 5027 daigle
      <servlet-class>edu.ucsb.nceas.metacat.replication.ReplicationServlet</servlet-class>
194 2012 cjones
      <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 2012 cjones
    </servlet>
204
205 2295 sgarg
    <servlet>
206
      <servlet-name>HarvesterRegistrationLogin</servlet-name>
207
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</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
    <servlet>
220
      <servlet-name>HarvesterRegistration</servlet-name>
221
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</servlet-class>
222
      <init-param>
223
        <param-name>debug</param-name>
224
        <param-value>1</param-value>
225
      </init-param>
226
      <init-param>
227
        <param-name>listings</param-name>
228
        <param-value>true</param-value>
229
      </init-param>
230 3104 perry
      <load-on-startup>3</load-on-startup>
231 2295 sgarg
    </servlet>
232
233 2742 costa
    <servlet>
234
        <servlet-name>AdvancedSearchServlet</servlet-name>
235
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
236 3104 perry
        <load-on-startup>3</load-on-startup>
237 2742 costa
    </servlet>
238
239 4078 tao
    <!--
240 2383 costa
    <servlet>
241
      <servlet-name>HarvesterServlet</servlet-name>
242
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
243
      <init-param>
244
        <param-name>debug</param-name>
245
        <param-value>1</param-value>
246
      </init-param>
247
      <init-param>
248
        <param-name>listings</param-name>
249
        <param-value>true</param-value>
250
      </init-param>
251 3104 perry
      <load-on-startup>3</load-on-startup>
252 2383 costa
    </servlet>
253 4080 daigle
    -->
254
255 4943 costa
    <!--
256
    <servlet>
257
      <servlet-name>DataProvider</servlet-name>
258
      <description>Processes OAI verbs for Metacat OAI-PMH Data Provider (MODP)
259
      </description>
260
      <servlet-class>edu.ucsb.nceas.metacat.oaipmh.provider.server.OAIHandler</servlet-class>
261
      <load-on-startup>4</load-on-startup>
262
    </servlet>
263
    -->
264
265 3993 berkley
<servlet>
266 3104 perry
      <servlet-name>AxisServlet</servlet-name>
267
      <display-name>Apache-Axis Servlet</display-name>
268
      <servlet-class>
269
          org.apache.axis.transport.http.AxisServlet
270
      </servlet-class>
271
      <load-on-startup>3</load-on-startup>
272
    </servlet>
273 2383 costa
274 2799 tao
  <servlet>
275
    <servlet-name>AdminServlet</servlet-name>
276
    <display-name>Axis Admin Servlet</display-name>
277
    <servlet-class>
278
        org.apache.axis.transport.http.AdminServlet
279
    </servlet-class>
280
    <load-on-startup>100</load-on-startup>
281
  </servlet>
282
283
  <servlet>
284
    <servlet-name>SOAPMonitorService</servlet-name>
285
    <display-name>SOAPMonitorService</display-name>
286
    <servlet-class>
287
        org.apache.axis.monitor.SOAPMonitorService
288
    </servlet-class>
289
    <init-param>
290
      <param-name>SOAPMonitorPort</param-name>
291
      <param-value>5001</param-value>
292
    </init-param>
293
    <load-on-startup>100</load-on-startup>
294
  </servlet>
295
296 3257 berkley
  <!--<servlet-mapping>
297 3194 berkley
        <servlet-name>gwt</servlet-name>
298
        <url-pattern>/gwt</url-pattern>
299 3257 berkley
    </servlet-mapping>-->
300 3194 berkley
301 2012 cjones
    <servlet-mapping>
302
        <servlet-name>metacat</servlet-name>
303
        <url-pattern>/metacat</url-pattern>
304
    </servlet-mapping>
305 3243 jones
306
    <servlet-mapping>
307
        <servlet-name>metacat</servlet-name>
308
        <url-pattern>/metacat/*</url-pattern>
309
    </servlet-mapping>
310 2511 tao
311
    <servlet-mapping>
312 3185 tao
        <servlet-name>metacat</servlet-name>
313
        <url-pattern>/servlet/metacat</url-pattern>
314
    </servlet-mapping>
315 4080 daigle
316
317
    <servlet-mapping>
318 5027 daigle
        <servlet-name>MetacatAdmin</servlet-name>
319 4080 daigle
        <url-pattern>/admin</url-pattern>
320
    </servlet-mapping>
321 5027 daigle
322 4080 daigle
    <servlet-mapping>
323 5027 daigle
        <servlet-name>MetacatWeb</servlet-name>
324
        <url-pattern>/metacatweb</url-pattern>
325 4080 daigle
    </servlet-mapping>
326 3185 tao
327
    <servlet-mapping>
328 2511 tao
        <servlet-name>replication</servlet-name>
329 2575 tao
        <url-pattern>replication</url-pattern>
330
    </servlet-mapping>
331
332
    <servlet-mapping>
333
        <servlet-name>replication</servlet-name>
334
        <url-pattern>/servlet/replication</url-pattern>
335 2511 tao
    </servlet-mapping>
336 2012 cjones
337 2295 sgarg
    <servlet-mapping>
338
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
339
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
340
    </servlet-mapping>
341
342
    <servlet-mapping>
343
        <servlet-name>HarvesterRegistration</servlet-name>
344
        <url-pattern>/harvesterRegistration</url-pattern>
345
    </servlet-mapping>
346
347 2742 costa
    <servlet-mapping>
348
        <servlet-name>AdvancedSearchServlet</servlet-name>
349
        <url-pattern>/advancedSearchServlet</url-pattern>
350
    </servlet-mapping>
351 2799 tao
352
    <servlet-mapping>
353
    <servlet-name>AxisServlet</servlet-name>
354
    <url-pattern>/servlet/AxisServlet</url-pattern>
355
  </servlet-mapping>
356 2742 costa
357 2799 tao
  <servlet-mapping>
358
    <servlet-name>AxisServlet</servlet-name>
359
    <url-pattern>*.jws</url-pattern>
360
  </servlet-mapping>
361
362
  <servlet-mapping>
363
    <servlet-name>AxisServlet</servlet-name>
364
    <url-pattern>/services/*</url-pattern>
365
  </servlet-mapping>
366
367
  <servlet-mapping>
368
    <servlet-name>SOAPMonitorService</servlet-name>
369
    <url-pattern>/SOAPMonitor</url-pattern>
370
  </servlet-mapping>
371
372
 <!-- uncomment this if you want the admin servlet -->
373
  <servlet-mapping>
374
    <servlet-name>AdminServlet</servlet-name>
375
    <url-pattern>/servlet/AdminServlet</url-pattern>
376
  </servlet-mapping>
377 3104 perry
378 4943 costa
  <!--
379
   <servlet-mapping>
380
    <servlet-name>DataProvider</servlet-name>
381
    <url-pattern>/dataProvider</url-pattern>
382
  </servlet-mapping>
383
  -->
384 3104 perry
385
386
 <!-- MPTODO testing -->
387
  <servlet-mapping>
388
    <servlet-name>SldFactory</servlet-name>
389
    <url-pattern>/sldfactory</url-pattern>
390
  </servlet-mapping>
391
392
393
  <servlet-mapping>
394
    <servlet-name>action</servlet-name>
395
    <url-pattern>*.do</url-pattern>
396
   </servlet-mapping>
397
  <servlet-mapping>
398
        <servlet-name>dispatcher</servlet-name>
399
        <url-pattern>/wms/*</url-pattern>
400
  </servlet-mapping>
401
  <servlet-mapping>
402
        <servlet-name>dispatcher</servlet-name>
403
        <url-pattern>/wfs/*</url-pattern>
404
  </servlet-mapping>
405
  <servlet-mapping>
406
        <servlet-name>dispatcher</servlet-name>
407
        <url-pattern>/ows/*</url-pattern>
408
  </servlet-mapping>
409
  <servlet-mapping>
410
   <servlet-name>TestWfsPost</servlet-name>
411
   <url-pattern>/TestWfsPost/*</url-pattern>
412
  </servlet-mapping>
413
414
415 2012 cjones
    <session-config>
416 3104 perry
      <session-timeout>30000</session-timeout>
417 2012 cjones
    </session-config>
418 3104 perry
419 2799 tao
420
   <!-- currently the W3C havent settled on a media type for WSDL;
421
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
422
    for now we go with the basic 'it's XML' response -->
423
  <mime-mapping>
424
    <extension>wsdl</extension>
425
     <mime-type>text/xml</mime-type>
426
  </mime-mapping>
427
428
  <mime-mapping>
429
    <extension>xsd</extension>
430
    <mime-type>text/xml</mime-type>
431
  </mime-mapping>
432 3104 perry
433
  <mime-mapping>
434
   <extension>xsl</extension>
435
   <mime-type>text/xml</mime-type>
436
  </mime-mapping>
437
438
439
  <welcome-file-list>
440
    <welcome-file>index.jsp</welcome-file>
441 3138 tao
    <welcome-file>index.html</welcome-file>
442 3104 perry
  </welcome-file-list>
443
444
445
  <taglib>
446
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
447
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
448
  </taglib>
449
450
  <taglib>
451
    <taglib-uri>/tags/struts-bean</taglib-uri>
452
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
453
  </taglib>
454
455
  <taglib>
456
    <taglib-uri>/tags/struts-html</taglib-uri>
457
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
458
  </taglib>
459
460
  <taglib>
461
    <taglib-uri>/tags/struts-logic</taglib-uri>
462
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
463
  </taglib>
464
465
  <taglib>
466
    <taglib-uri>/tags/struts-nested</taglib-uri>
467
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
468
  </taglib>
469
470
  <taglib>
471
    <taglib-uri>/tags/struts-tiles</taglib-uri>
472
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
473
  </taglib>
474
475
  <!-- spring taglib -->
476
  <taglib>
477
        <taglib-uri>/tags/spring</taglib-uri>
478
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
479
  </taglib>
480
481
<!--
482
  <error-page>
483
        <exception-type>java.lang.Exception</exception-type>
484
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
485
  </error-page>
486
  <error-page>
487
        <exception-type>javax.servlet.ServletException</exception-type>
488
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
489
  </error-page>
490
  <error-page>
491
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
492
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
493
  </error-page>
494
-->
495
496 4724 daigle
<security-constraint>
497
	<web-resource-collection>
498
		<web-resource-name>CFG</web-resource-name>
499
			<url-pattern>*.cfg</url-pattern>
500
	</web-resource-collection>
501
	<auth-constraint/>
502
</security-constraint>
503
504
<security-constraint>
505
	<web-resource-collection>
506
		<web-resource-name>PROPERTIES</web-resource-name>
507
		<url-pattern>*.properties</url-pattern>
508
	</web-resource-collection>
509
	<auth-constraint/>
510
</security-constraint>
511
512 2012 cjones
</web-app>