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
     <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 3104 perry
      <load-on-startup>3</load-on-startup>
169 2012 cjones
    </servlet>
170
171 2295 sgarg
    <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 3104 perry
      <load-on-startup>3</load-on-startup>
183 2295 sgarg
    </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 3104 perry
      <load-on-startup>3</load-on-startup>
197 2295 sgarg
    </servlet>
198
199 2742 costa
    <servlet>
200
        <servlet-name>AdvancedSearchServlet</servlet-name>
201
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
202 3104 perry
        <load-on-startup>3</load-on-startup>
203 2742 costa
    </servlet>
204
205 4078 tao
    <!--
206 2383 costa
    <servlet>
207
      <servlet-name>HarvesterServlet</servlet-name>
208
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
209
      <init-param>
210
        <param-name>debug</param-name>
211
        <param-value>1</param-value>
212
      </init-param>
213
      <init-param>
214
        <param-name>listings</param-name>
215
        <param-value>true</param-value>
216
      </init-param>
217 3104 perry
      <load-on-startup>3</load-on-startup>
218 2383 costa
    </servlet>
219 4078 tao
    -->
220
221 3993 berkley
<servlet>
222 3104 perry
      <servlet-name>AxisServlet</servlet-name>
223
      <display-name>Apache-Axis Servlet</display-name>
224
      <servlet-class>
225
          org.apache.axis.transport.http.AxisServlet
226
      </servlet-class>
227
      <load-on-startup>3</load-on-startup>
228
    </servlet>
229 2383 costa
230 2799 tao
  <servlet>
231
    <servlet-name>AdminServlet</servlet-name>
232
    <display-name>Axis Admin Servlet</display-name>
233
    <servlet-class>
234
        org.apache.axis.transport.http.AdminServlet
235
    </servlet-class>
236
    <load-on-startup>100</load-on-startup>
237
  </servlet>
238
239
  <servlet>
240
    <servlet-name>SOAPMonitorService</servlet-name>
241
    <display-name>SOAPMonitorService</display-name>
242
    <servlet-class>
243
        org.apache.axis.monitor.SOAPMonitorService
244
    </servlet-class>
245
    <init-param>
246
      <param-name>SOAPMonitorPort</param-name>
247
      <param-value>5001</param-value>
248
    </init-param>
249
    <load-on-startup>100</load-on-startup>
250
  </servlet>
251
252 3257 berkley
  <!--<servlet-mapping>
253 3194 berkley
        <servlet-name>gwt</servlet-name>
254
        <url-pattern>/gwt</url-pattern>
255 3257 berkley
    </servlet-mapping>-->
256 3194 berkley
257 2012 cjones
    <servlet-mapping>
258
        <servlet-name>metacat</servlet-name>
259
        <url-pattern>/metacat</url-pattern>
260
    </servlet-mapping>
261 3243 jones
262
    <servlet-mapping>
263
        <servlet-name>metacat</servlet-name>
264
        <url-pattern>/metacat/*</url-pattern>
265
    </servlet-mapping>
266 2511 tao
267
    <servlet-mapping>
268 3185 tao
        <servlet-name>metacat</servlet-name>
269
        <url-pattern>/servlet/metacat</url-pattern>
270
    </servlet-mapping>
271
272
    <servlet-mapping>
273 2511 tao
        <servlet-name>replication</servlet-name>
274 2575 tao
        <url-pattern>replication</url-pattern>
275
    </servlet-mapping>
276
277
    <servlet-mapping>
278
        <servlet-name>replication</servlet-name>
279
        <url-pattern>/servlet/replication</url-pattern>
280 2511 tao
    </servlet-mapping>
281 2012 cjones
282 2295 sgarg
    <servlet-mapping>
283
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
284
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
285
    </servlet-mapping>
286
287
    <servlet-mapping>
288
        <servlet-name>HarvesterRegistration</servlet-name>
289
        <url-pattern>/harvesterRegistration</url-pattern>
290
    </servlet-mapping>
291
292 2742 costa
    <servlet-mapping>
293
        <servlet-name>AdvancedSearchServlet</servlet-name>
294
        <url-pattern>/advancedSearchServlet</url-pattern>
295
    </servlet-mapping>
296 2799 tao
297
    <servlet-mapping>
298
    <servlet-name>AxisServlet</servlet-name>
299
    <url-pattern>/servlet/AxisServlet</url-pattern>
300
  </servlet-mapping>
301 2742 costa
302 2799 tao
  <servlet-mapping>
303
    <servlet-name>AxisServlet</servlet-name>
304
    <url-pattern>*.jws</url-pattern>
305
  </servlet-mapping>
306
307
  <servlet-mapping>
308
    <servlet-name>AxisServlet</servlet-name>
309
    <url-pattern>/services/*</url-pattern>
310
  </servlet-mapping>
311
312
  <servlet-mapping>
313
    <servlet-name>SOAPMonitorService</servlet-name>
314
    <url-pattern>/SOAPMonitor</url-pattern>
315
  </servlet-mapping>
316
317
 <!-- uncomment this if you want the admin servlet -->
318
  <servlet-mapping>
319
    <servlet-name>AdminServlet</servlet-name>
320
    <url-pattern>/servlet/AdminServlet</url-pattern>
321
  </servlet-mapping>
322 3104 perry
323
324
325
 <!-- MPTODO testing -->
326
  <servlet-mapping>
327
    <servlet-name>SldFactory</servlet-name>
328
    <url-pattern>/sldfactory</url-pattern>
329
  </servlet-mapping>
330
331
332
  <servlet-mapping>
333
    <servlet-name>action</servlet-name>
334
    <url-pattern>*.do</url-pattern>
335
   </servlet-mapping>
336
  <servlet-mapping>
337
        <servlet-name>dispatcher</servlet-name>
338
        <url-pattern>/wms/*</url-pattern>
339
  </servlet-mapping>
340
  <servlet-mapping>
341
        <servlet-name>dispatcher</servlet-name>
342
        <url-pattern>/wfs/*</url-pattern>
343
  </servlet-mapping>
344
  <servlet-mapping>
345
        <servlet-name>dispatcher</servlet-name>
346
        <url-pattern>/ows/*</url-pattern>
347
  </servlet-mapping>
348
  <servlet-mapping>
349
   <servlet-name>TestWfsPost</servlet-name>
350
   <url-pattern>/TestWfsPost/*</url-pattern>
351
  </servlet-mapping>
352
353
354 2012 cjones
    <session-config>
355 3104 perry
      <session-timeout>30000</session-timeout>
356 2012 cjones
    </session-config>
357 3104 perry
358 2799 tao
359
   <!-- currently the W3C havent settled on a media type for WSDL;
360
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
361
    for now we go with the basic 'it's XML' response -->
362
  <mime-mapping>
363
    <extension>wsdl</extension>
364
     <mime-type>text/xml</mime-type>
365
  </mime-mapping>
366
367
  <mime-mapping>
368
    <extension>xsd</extension>
369
    <mime-type>text/xml</mime-type>
370
  </mime-mapping>
371 3104 perry
372
  <mime-mapping>
373
   <extension>xsl</extension>
374
   <mime-type>text/xml</mime-type>
375
  </mime-mapping>
376
377
378
  <welcome-file-list>
379
    <welcome-file>index.jsp</welcome-file>
380 3138 tao
    <welcome-file>index.html</welcome-file>
381 3104 perry
  </welcome-file-list>
382
383
384
  <taglib>
385
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
386
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
387
  </taglib>
388
389
  <taglib>
390
    <taglib-uri>/tags/struts-bean</taglib-uri>
391
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
392
  </taglib>
393
394
  <taglib>
395
    <taglib-uri>/tags/struts-html</taglib-uri>
396
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
397
  </taglib>
398
399
  <taglib>
400
    <taglib-uri>/tags/struts-logic</taglib-uri>
401
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
402
  </taglib>
403
404
  <taglib>
405
    <taglib-uri>/tags/struts-nested</taglib-uri>
406
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
407
  </taglib>
408
409
  <taglib>
410
    <taglib-uri>/tags/struts-tiles</taglib-uri>
411
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
412
  </taglib>
413
414
  <!-- spring taglib -->
415
  <taglib>
416
        <taglib-uri>/tags/spring</taglib-uri>
417
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
418
  </taglib>
419
420
<!--
421
  <error-page>
422
        <exception-type>java.lang.Exception</exception-type>
423
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
424
  </error-page>
425
  <error-page>
426
        <exception-type>javax.servlet.ServletException</exception-type>
427
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
428
  </error-page>
429
  <error-page>
430
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
431
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
432
  </error-page>
433
-->
434
435 2012 cjones
</web-app>