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