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/meta/*</url-pattern>
387
    </servlet-mapping>
388

    
389
    <servlet-mapping>
390
        <servlet-name>RestServlet</servlet-name>
391
        <url-pattern>/d1/session/*</url-pattern>
392
    </servlet-mapping>
393

    
394
    <servlet-mapping>
395
        <servlet-name>RestServlet</servlet-name>
396
        <url-pattern>/d1/identifier/*</url-pattern>
397
    </servlet-mapping>
398
    
399
    <servlet-mapping>
400
        <servlet-name>RestServlet</servlet-name>
401
        <url-pattern>/d1/log/*</url-pattern>
402
    </servlet-mapping>
403
    
404
    <servlet-mapping>
405
        <servlet-name>RestServlet</servlet-name>
406
        <url-pattern>/d1/checksum/*</url-pattern>
407
    </servlet-mapping>
408

    
409
    <servlet-mapping>
410
        <servlet-name>RestServlet</servlet-name>
411
        <url-pattern>/d1/*</url-pattern>
412
    </servlet-mapping>
413

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

    
420
  <!-- 
421
   <servlet-mapping>
422
    <servlet-name>DataProvider</servlet-name>
423
    <url-pattern>/dataProvider</url-pattern>
424
  </servlet-mapping>
425
  -->
426

    
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
    <session-config>
458
      <session-timeout>30000</session-timeout>
459
    </session-config>
460

    
461
    
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
  
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
    <welcome-file>index.html</welcome-file>
484
  </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
<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
</web-app>
(43-43/45)