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
      
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
   <!--<servlet>
129
      <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
    </servlet>-->
141

    
142

    
143
    <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
      <load-on-startup>2</load-on-startup>
155
    </servlet>
156
    
157
     <servlet>
158
      <servlet-name>replication</servlet-name>
159
      <servlet-class>edu.ucsb.nceas.metacat.MetacatReplication</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
    <servlet>
172
      <servlet-name>HarvesterRegistrationLogin</servlet-name>
173
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</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
      <load-on-startup>3</load-on-startup>
183
    </servlet>
184

    
185
    <servlet>
186
      <servlet-name>HarvesterRegistration</servlet-name>
187
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</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
      <load-on-startup>3</load-on-startup>
197
    </servlet>
198

    
199
    <servlet>
200
        <servlet-name>AdvancedSearchServlet</servlet-name>
201
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
202
        <load-on-startup>3</load-on-startup>
203
    </servlet>
204

    
205
    <servlet>
206
      <servlet-name>HarvesterServlet</servlet-name>
207
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</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
      <load-on-startup>3</load-on-startup>
217
    </servlet>
218
    
219
<servlet>
220
      <servlet-name>AxisServlet</servlet-name>
221
      <display-name>Apache-Axis Servlet</display-name>
222
      <servlet-class>
223
          org.apache.axis.transport.http.AxisServlet
224
      </servlet-class>
225
      <load-on-startup>3</load-on-startup>
226
    </servlet>
227

    
228
  <servlet>
229
    <servlet-name>AdminServlet</servlet-name>
230
    <display-name>Axis Admin Servlet</display-name>
231
    <servlet-class>
232
        org.apache.axis.transport.http.AdminServlet
233
    </servlet-class>
234
    <load-on-startup>100</load-on-startup>
235
  </servlet>
236

    
237
  <servlet>
238
    <servlet-name>SOAPMonitorService</servlet-name>
239
    <display-name>SOAPMonitorService</display-name>
240
    <servlet-class>
241
        org.apache.axis.monitor.SOAPMonitorService
242
    </servlet-class>
243
    <init-param>
244
      <param-name>SOAPMonitorPort</param-name>
245
      <param-value>5001</param-value>
246
    </init-param>
247
    <load-on-startup>100</load-on-startup>
248
  </servlet>
249

    
250
  <!--<servlet-mapping>
251
        <servlet-name>gwt</servlet-name>
252
        <url-pattern>/gwt</url-pattern>
253
    </servlet-mapping>-->
254
  
255
    <servlet-mapping>
256
        <servlet-name>metacat</servlet-name>
257
        <url-pattern>/metacat</url-pattern>
258
    </servlet-mapping>
259

    
260
    <servlet-mapping>
261
        <servlet-name>metacat</servlet-name>
262
        <url-pattern>/metacat/*</url-pattern>
263
    </servlet-mapping>
264
    
265
    <servlet-mapping>
266
        <servlet-name>metacat</servlet-name>
267
        <url-pattern>/servlet/metacat</url-pattern>
268
    </servlet-mapping>
269
    
270
    <servlet-mapping>
271
        <servlet-name>replication</servlet-name>
272
        <url-pattern>replication</url-pattern>
273
    </servlet-mapping> 
274
   
275
    <servlet-mapping>
276
        <servlet-name>replication</servlet-name>
277
        <url-pattern>/servlet/replication</url-pattern>
278
    </servlet-mapping>
279

    
280
    <servlet-mapping>
281
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
282
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
283
    </servlet-mapping>
284

    
285
    <servlet-mapping>
286
        <servlet-name>HarvesterRegistration</servlet-name>
287
        <url-pattern>/harvesterRegistration</url-pattern>
288
    </servlet-mapping>
289

    
290
    <servlet-mapping>
291
        <servlet-name>AdvancedSearchServlet</servlet-name>
292
        <url-pattern>/advancedSearchServlet</url-pattern>
293
    </servlet-mapping>
294
     
295
    <servlet-mapping>
296
    <servlet-name>AxisServlet</servlet-name>
297
    <url-pattern>/servlet/AxisServlet</url-pattern>
298
  </servlet-mapping>
299

    
300
  <servlet-mapping>
301
    <servlet-name>AxisServlet</servlet-name>
302
    <url-pattern>*.jws</url-pattern>
303
  </servlet-mapping>
304

    
305
  <servlet-mapping>
306
    <servlet-name>AxisServlet</servlet-name>
307
    <url-pattern>/services/*</url-pattern>
308
  </servlet-mapping>
309

    
310
  <servlet-mapping>
311
    <servlet-name>SOAPMonitorService</servlet-name>
312
    <url-pattern>/SOAPMonitor</url-pattern>
313
  </servlet-mapping>
314

    
315
 <!-- uncomment this if you want the admin servlet -->
316
  <servlet-mapping>
317
    <servlet-name>AdminServlet</servlet-name>
318
    <url-pattern>/servlet/AdminServlet</url-pattern>
319
  </servlet-mapping>
320

    
321

    
322

    
323
 <!-- MPTODO testing -->
324
  <servlet-mapping>
325
    <servlet-name>SldFactory</servlet-name>
326
    <url-pattern>/sldfactory</url-pattern>
327
  </servlet-mapping>
328

    
329

    
330
  <servlet-mapping>
331
    <servlet-name>action</servlet-name>
332
    <url-pattern>*.do</url-pattern>
333
   </servlet-mapping>
334
  <servlet-mapping>
335
        <servlet-name>dispatcher</servlet-name>
336
        <url-pattern>/wms/*</url-pattern>
337
  </servlet-mapping>
338
  <servlet-mapping>
339
        <servlet-name>dispatcher</servlet-name>
340
        <url-pattern>/wfs/*</url-pattern>
341
  </servlet-mapping>
342
  <servlet-mapping>
343
        <servlet-name>dispatcher</servlet-name>
344
        <url-pattern>/ows/*</url-pattern>
345
  </servlet-mapping>
346
  <servlet-mapping>
347
   <servlet-name>TestWfsPost</servlet-name>
348
   <url-pattern>/TestWfsPost/*</url-pattern>
349
  </servlet-mapping>
350

    
351
      
352
    <session-config>
353
      <session-timeout>30000</session-timeout>
354
    </session-config>
355

    
356
    
357
   <!-- currently the W3C havent settled on a media type for WSDL;
358
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
359
    for now we go with the basic 'it's XML' response -->
360
  <mime-mapping>
361
    <extension>wsdl</extension>
362
     <mime-type>text/xml</mime-type>
363
  </mime-mapping>
364
  
365
  <mime-mapping>
366
    <extension>xsd</extension>
367
    <mime-type>text/xml</mime-type>
368
  </mime-mapping>
369
  
370
  <mime-mapping>
371
   <extension>xsl</extension>
372
   <mime-type>text/xml</mime-type>
373
  </mime-mapping>
374

    
375
		      
376
  <welcome-file-list>
377
    <welcome-file>index.jsp</welcome-file>
378
    <welcome-file>index.html</welcome-file>
379
  </welcome-file-list>
380
 
381
 
382
  <taglib>
383
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
384
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
385
  </taglib>   
386

    
387
  <taglib>
388
    <taglib-uri>/tags/struts-bean</taglib-uri>
389
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
390
  </taglib>
391

    
392
  <taglib>
393
    <taglib-uri>/tags/struts-html</taglib-uri>
394
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
395
  </taglib>
396

    
397
  <taglib>
398
    <taglib-uri>/tags/struts-logic</taglib-uri>
399
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
400
  </taglib>
401

    
402
  <taglib>
403
    <taglib-uri>/tags/struts-nested</taglib-uri>
404
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
405
  </taglib>
406

    
407
  <taglib>
408
    <taglib-uri>/tags/struts-tiles</taglib-uri>
409
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
410
  </taglib>  
411
  
412
  <!-- spring taglib -->
413
  <taglib>
414
        <taglib-uri>/tags/spring</taglib-uri>
415
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
416
  </taglib>
417

    
418
<!-- 
419
  <error-page>
420
        <exception-type>java.lang.Exception</exception-type>
421
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
422
  </error-page>
423
  <error-page>
424
        <exception-type>javax.servlet.ServletException</exception-type>
425
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
426
  </error-page>
427
  <error-page>
428
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
429
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
430
  </error-page>
431
-->
432

    
433
</web-app>
(23-23/26)