Project

General

Profile

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
    <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
      
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
  <!-- 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

    
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
   <!--<servlet>
146
      <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
    </servlet>-->
158

    
159

    
160
    <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
      <load-on-startup>2</load-on-startup>
172
    </servlet>
173
    
174
    <servlet>
175
      <servlet-name>MetacatAdmin</servlet-name>
176
      <servlet-class>edu.ucsb.nceas.metacat.admin.MetacatAdminServlet</servlet-class>
177
      <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
     <servlet>
189
      <servlet-name>replication</servlet-name>
190
      <servlet-class>edu.ucsb.nceas.metacat.replication.ReplicationServlet</servlet-class>
191
      <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
      <load-on-startup>3</load-on-startup>
200
    </servlet>
201

    
202
    <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
      <load-on-startup>3</load-on-startup>
214
    </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
      <load-on-startup>3</load-on-startup>
228
    </servlet>
229

    
230
    <servlet>
231
        <servlet-name>AdvancedSearchServlet</servlet-name>
232
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
233
        <load-on-startup>3</load-on-startup>
234
    </servlet>
235

    
236
    <!--
237
    <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
      <load-on-startup>3</load-on-startup>
249
    </servlet>
250
    -->
251
    
252
    <!--
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
<servlet>
263
      <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

    
271
  <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
<!-- 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
  <!--<servlet-mapping>
309
        <servlet-name>gwt</servlet-name>
310
        <url-pattern>/gwt</url-pattern>
311
    </servlet-mapping>-->
312
  
313
    <servlet-mapping>
314
        <servlet-name>metacat</servlet-name>
315
        <url-pattern>/metacat</url-pattern>
316
    </servlet-mapping>
317

    
318
    <servlet-mapping>
319
        <servlet-name>metacat</servlet-name>
320
        <url-pattern>/metacat/*</url-pattern>
321
    </servlet-mapping>
322
    
323
    <servlet-mapping>
324
        <servlet-name>metacat</servlet-name>
325
        <url-pattern>/servlet/metacat</url-pattern>
326
    </servlet-mapping>
327

    
328
        
329
    <servlet-mapping>
330
        <servlet-name>MetacatAdmin</servlet-name>
331
        <url-pattern>/admin</url-pattern>
332
    </servlet-mapping>
333
    
334
    <servlet-mapping>
335
        <servlet-name>replication</servlet-name>
336
        <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
    </servlet-mapping>
343

    
344
    <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
    <servlet-mapping>
355
        <servlet-name>AdvancedSearchServlet</servlet-name>
356
        <url-pattern>/advancedSearchServlet</url-pattern>
357
    </servlet-mapping>
358
     
359
    <servlet-mapping>
360
    <servlet-name>AxisServlet</servlet-name>
361
    <url-pattern>/servlet/AxisServlet</url-pattern>
362
  </servlet-mapping>
363

    
364
  <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
    <servlet-mapping>
380
        <servlet-name>RestServlet</servlet-name>
381
        <url-pattern>/d1/object/*</url-pattern>
382
    </servlet-mapping>
383
    
384
    <servlet-mapping>
385
        <servlet-name>RestServlet</servlet-name>
386
        <url-pattern>/d1/replicate/*</url-pattern>
387
    </servlet-mapping>
388
    
389
    <servlet-mapping>
390
        <servlet-name>RestServlet</servlet-name>
391
        <url-pattern>/d1/meta/*</url-pattern>
392
    </servlet-mapping>
393

    
394
    <servlet-mapping>
395
        <servlet-name>RestServlet</servlet-name>
396
        <url-pattern>/d1/session/*</url-pattern>
397
    </servlet-mapping>
398

    
399
    <servlet-mapping>
400
        <servlet-name>RestServlet</servlet-name>
401
        <url-pattern>/d1/identifier/*</url-pattern>
402
    </servlet-mapping>
403
    
404
    <servlet-mapping>
405
        <servlet-name>RestServlet</servlet-name>
406
        <url-pattern>/d1/log/*</url-pattern>
407
    </servlet-mapping>
408
    
409
    <servlet-mapping>
410
        <servlet-name>RestServlet</servlet-name>
411
        <url-pattern>/d1/checksum/*</url-pattern>
412
    </servlet-mapping>
413
    
414
    <servlet-mapping>
415
        <servlet-name>RestServlet</servlet-name>
416
        <url-pattern>/d1/monitor/*</url-pattern>
417
    </servlet-mapping>
418

    
419
    <servlet-mapping>
420
        <servlet-name>RestServlet</servlet-name>
421
        <url-pattern>/d1/*</url-pattern>
422
    </servlet-mapping>
423

    
424
 <!-- uncomment this if you want the admin servlet -->
425
  <servlet-mapping>
426
    <servlet-name>AdminServlet</servlet-name>
427
    <url-pattern>/servlet/AdminServlet</url-pattern>
428
  </servlet-mapping>
429

    
430
  <!-- 
431
   <servlet-mapping>
432
    <servlet-name>DataProvider</servlet-name>
433
    <url-pattern>/dataProvider</url-pattern>
434
  </servlet-mapping>
435
  -->
436

    
437

    
438
 <!-- MPTODO testing -->
439
  <servlet-mapping>
440
    <servlet-name>SldFactory</servlet-name>
441
    <url-pattern>/sldfactory</url-pattern>
442
  </servlet-mapping>
443

    
444

    
445
  <servlet-mapping>
446
    <servlet-name>action</servlet-name>
447
    <url-pattern>*.do</url-pattern>
448
   </servlet-mapping>
449
  <servlet-mapping>
450
        <servlet-name>dispatcher</servlet-name>
451
        <url-pattern>/wms/*</url-pattern>
452
  </servlet-mapping>
453
  <servlet-mapping>
454
        <servlet-name>dispatcher</servlet-name>
455
        <url-pattern>/wfs/*</url-pattern>
456
  </servlet-mapping>
457
  <servlet-mapping>
458
        <servlet-name>dispatcher</servlet-name>
459
        <url-pattern>/ows/*</url-pattern>
460
  </servlet-mapping>
461
  <servlet-mapping>
462
   <servlet-name>TestWfsPost</servlet-name>
463
   <url-pattern>/TestWfsPost/*</url-pattern>
464
  </servlet-mapping>
465

    
466
      
467
    <session-config>
468
      <session-timeout>30000</session-timeout>
469
    </session-config>
470

    
471
    
472
   <!-- currently the W3C havent settled on a media type for WSDL;
473
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
474
    for now we go with the basic 'it's XML' response -->
475
  <mime-mapping>
476
    <extension>wsdl</extension>
477
     <mime-type>text/xml</mime-type>
478
  </mime-mapping>
479
  
480
  <mime-mapping>
481
    <extension>xsd</extension>
482
    <mime-type>text/xml</mime-type>
483
  </mime-mapping>
484
  
485
  <mime-mapping>
486
   <extension>xsl</extension>
487
   <mime-type>text/xml</mime-type>
488
  </mime-mapping>
489

    
490
		      
491
  <welcome-file-list>
492
    <welcome-file>index.jsp</welcome-file>
493
    <welcome-file>index.html</welcome-file>
494
  </welcome-file-list>
495
 
496
 
497
  <taglib>
498
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
499
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
500
  </taglib>   
501

    
502
  <taglib>
503
    <taglib-uri>/tags/struts-bean</taglib-uri>
504
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
505
  </taglib>
506

    
507
  <taglib>
508
    <taglib-uri>/tags/struts-html</taglib-uri>
509
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
510
  </taglib>
511

    
512
  <taglib>
513
    <taglib-uri>/tags/struts-logic</taglib-uri>
514
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
515
  </taglib>
516

    
517
  <taglib>
518
    <taglib-uri>/tags/struts-nested</taglib-uri>
519
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
520
  </taglib>
521

    
522
  <taglib>
523
    <taglib-uri>/tags/struts-tiles</taglib-uri>
524
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
525
  </taglib>  
526
  
527
  <!-- spring taglib -->
528
  <taglib>
529
        <taglib-uri>/tags/spring</taglib-uri>
530
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
531
  </taglib>
532

    
533
<!-- 
534
  <error-page>
535
        <exception-type>java.lang.Exception</exception-type>
536
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
537
  </error-page>
538
  <error-page>
539
        <exception-type>javax.servlet.ServletException</exception-type>
540
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
541
  </error-page>
542
  <error-page>
543
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
544
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
545
  </error-page>
546
-->
547

    
548
<security-constraint>
549
	<web-resource-collection>
550
		<web-resource-name>PROPERTIES</web-resource-name>
551
		<url-pattern>*.properties</url-pattern>
552
	</web-resource-collection>
553
	<auth-constraint/>
554
</security-constraint>
555

    
556
</web-app>
(43-43/45)