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

    
129

    
130
    <servlet>
131
      <servlet-name>metacat</servlet-name>
132
      <servlet-class>edu.ucsb.nceas.metacat.MetaCatServlet</servlet-class>
133
      <init-param>
134
        <param-name>debug</param-name>
135
        <param-value>1</param-value>
136
      </init-param>
137
      <init-param>
138
        <param-name>listings</param-name>
139
        <param-value>true</param-value>
140
      </init-param>
141
      <load-on-startup>2</load-on-startup>
142
    </servlet>
143
    
144
     <servlet>
145
      <servlet-name>replication</servlet-name>
146
      <servlet-class>edu.ucsb.nceas.metacat.MetacatReplication</servlet-class>
147
      <init-param>
148
        <param-name>debug</param-name>
149
        <param-value>1</param-value>
150
      </init-param>
151
      <init-param>
152
        <param-name>listings</param-name>
153
        <param-value>true</param-value>
154
      </init-param>
155
      <load-on-startup>3</load-on-startup>
156
    </servlet>
157

    
158
    <servlet>
159
      <servlet-name>HarvesterRegistrationLogin</servlet-name>
160
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistrationLogin</servlet-class>
161
      <init-param>
162
        <param-name>debug</param-name>
163
        <param-value>1</param-value>
164
      </init-param>
165
      <init-param>
166
        <param-name>listings</param-name>
167
        <param-value>true</param-value>
168
      </init-param>
169
      <load-on-startup>3</load-on-startup>
170
    </servlet>
171

    
172
    <servlet>
173
      <servlet-name>HarvesterRegistration</servlet-name>
174
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterRegistration</servlet-class>
175
      <init-param>
176
        <param-name>debug</param-name>
177
        <param-value>1</param-value>
178
      </init-param>
179
      <init-param>
180
        <param-name>listings</param-name>
181
        <param-value>true</param-value>
182
      </init-param>
183
      <load-on-startup>3</load-on-startup>
184
    </servlet>
185

    
186
    <servlet>
187
        <servlet-name>AdvancedSearchServlet</servlet-name>
188
        <servlet-class>edu.ucsb.nceas.metacat.advancedsearch.AdvancedSearchServlet</servlet-class>
189
        <load-on-startup>3</load-on-startup>
190
    </servlet>
191

    
192
    <!--
193
    <servlet>
194
      <servlet-name>HarvesterServlet</servlet-name>
195
      <servlet-class>edu.ucsb.nceas.metacat.harvesterClient.HarvesterServlet</servlet-class>
196
      <init-param>
197
        <param-name>debug</param-name>
198
        <param-value>1</param-value>
199
      </init-param>
200
      <init-param>
201
        <param-name>listings</param-name>
202
        <param-value>true</param-value>
203
      </init-param>
204
      <load-on-startup>3</load-on-startup>
205
    </servlet>
206
    -->
207
    <servlet>
208
      <servlet-name>AxisServlet</servlet-name>
209
      <display-name>Apache-Axis Servlet</display-name>
210
      <servlet-class>
211
          org.apache.axis.transport.http.AxisServlet
212
      </servlet-class>
213
      <load-on-startup>3</load-on-startup>
214
    </servlet>
215

    
216
  <servlet>
217
    <servlet-name>AdminServlet</servlet-name>
218
    <display-name>Axis Admin Servlet</display-name>
219
    <servlet-class>
220
        org.apache.axis.transport.http.AdminServlet
221
    </servlet-class>
222
    <load-on-startup>100</load-on-startup>
223
  </servlet>
224

    
225
  <servlet>
226
    <servlet-name>SOAPMonitorService</servlet-name>
227
    <display-name>SOAPMonitorService</display-name>
228
    <servlet-class>
229
        org.apache.axis.monitor.SOAPMonitorService
230
    </servlet-class>
231
    <init-param>
232
      <param-name>SOAPMonitorPort</param-name>
233
      <param-value>5001</param-value>
234
    </init-param>
235
    <load-on-startup>100</load-on-startup>
236
  </servlet>
237

    
238
    <servlet-mapping>
239
        <servlet-name>metacat</servlet-name>
240
        <url-pattern>/metacat</url-pattern>
241
    </servlet-mapping>
242
    
243
    <servlet-mapping>
244
        <servlet-name>replication</servlet-name>
245
        <url-pattern>replication</url-pattern>
246
    </servlet-mapping> 
247
   
248
    <servlet-mapping>
249
        <servlet-name>replication</servlet-name>
250
        <url-pattern>/servlet/replication</url-pattern>
251
    </servlet-mapping>
252

    
253
    <servlet-mapping>
254
        <servlet-name>HarvesterRegistrationLogin</servlet-name>
255
        <url-pattern>/harvesterRegistrationLogin</url-pattern>
256
    </servlet-mapping>
257

    
258
    <servlet-mapping>
259
        <servlet-name>HarvesterRegistration</servlet-name>
260
        <url-pattern>/harvesterRegistration</url-pattern>
261
    </servlet-mapping>
262

    
263
    <servlet-mapping>
264
        <servlet-name>AdvancedSearchServlet</servlet-name>
265
        <url-pattern>/advancedSearchServlet</url-pattern>
266
    </servlet-mapping>
267
     
268
    <servlet-mapping>
269
    <servlet-name>AxisServlet</servlet-name>
270
    <url-pattern>/servlet/AxisServlet</url-pattern>
271
  </servlet-mapping>
272

    
273
  <servlet-mapping>
274
    <servlet-name>AxisServlet</servlet-name>
275
    <url-pattern>*.jws</url-pattern>
276
  </servlet-mapping>
277

    
278
  <servlet-mapping>
279
    <servlet-name>AxisServlet</servlet-name>
280
    <url-pattern>/services/*</url-pattern>
281
  </servlet-mapping>
282

    
283
  <servlet-mapping>
284
    <servlet-name>SOAPMonitorService</servlet-name>
285
    <url-pattern>/SOAPMonitor</url-pattern>
286
  </servlet-mapping>
287

    
288
 <!-- uncomment this if you want the admin servlet -->
289
  <servlet-mapping>
290
    <servlet-name>AdminServlet</servlet-name>
291
    <url-pattern>/servlet/AdminServlet</url-pattern>
292
  </servlet-mapping>
293

    
294

    
295

    
296
 <!-- MPTODO testing -->
297
  <servlet-mapping>
298
    <servlet-name>SldFactory</servlet-name>
299
    <url-pattern>/sldfactory</url-pattern>
300
  </servlet-mapping>
301

    
302

    
303
  <servlet-mapping>
304
    <servlet-name>action</servlet-name>
305
    <url-pattern>*.do</url-pattern>
306
   </servlet-mapping>
307
  <servlet-mapping>
308
        <servlet-name>dispatcher</servlet-name>
309
        <url-pattern>/wms/*</url-pattern>
310
  </servlet-mapping>
311
  <servlet-mapping>
312
        <servlet-name>dispatcher</servlet-name>
313
        <url-pattern>/wfs/*</url-pattern>
314
  </servlet-mapping>
315
  <servlet-mapping>
316
        <servlet-name>dispatcher</servlet-name>
317
        <url-pattern>/ows/*</url-pattern>
318
  </servlet-mapping>
319
  <servlet-mapping>
320
   <servlet-name>TestWfsPost</servlet-name>
321
   <url-pattern>/TestWfsPost/*</url-pattern>
322
  </servlet-mapping>
323

    
324
      
325
    <session-config>
326
      <session-timeout>30000</session-timeout>
327
    </session-config>
328

    
329
    
330
   <!-- currently the W3C havent settled on a media type for WSDL;
331
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
332
    for now we go with the basic 'it's XML' response -->
333
  <mime-mapping>
334
    <extension>wsdl</extension>
335
     <mime-type>text/xml</mime-type>
336
  </mime-mapping>
337
  
338
  <mime-mapping>
339
    <extension>xsd</extension>
340
    <mime-type>text/xml</mime-type>
341
  </mime-mapping>
342
  
343
  <mime-mapping>
344
   <extension>xsl</extension>
345
   <mime-type>text/xml</mime-type>
346
  </mime-mapping>
347

    
348
		      
349
  <welcome-file-list>
350
    <welcome-file>index.jsp</welcome-file>
351
  </welcome-file-list>
352
 
353
 
354
  <taglib>
355
     <taglib-uri>http://jakarta.apache.org/taglibs/xtags-1.0</taglib-uri>
356
     <taglib-location>/WEB-INF/xtags.tld</taglib-location>
357
  </taglib>   
358

    
359
  <taglib>
360
    <taglib-uri>/tags/struts-bean</taglib-uri>
361
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
362
  </taglib>
363

    
364
  <taglib>
365
    <taglib-uri>/tags/struts-html</taglib-uri>
366
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
367
  </taglib>
368

    
369
  <taglib>
370
    <taglib-uri>/tags/struts-logic</taglib-uri>
371
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
372
  </taglib>
373

    
374
  <taglib>
375
    <taglib-uri>/tags/struts-nested</taglib-uri>
376
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
377
  </taglib>
378

    
379
  <taglib>
380
    <taglib-uri>/tags/struts-tiles</taglib-uri>
381
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
382
  </taglib>  
383
  
384
  <!-- spring taglib -->
385
  <taglib>
386
        <taglib-uri>/tags/spring</taglib-uri>
387
        <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
388
  </taglib>
389

    
390
<!-- 
391
  <error-page>
392
        <exception-type>java.lang.Exception</exception-type>
393
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
394
  </error-page>
395
  <error-page>
396
        <exception-type>javax.servlet.ServletException</exception-type>
397
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
398
  </error-page>
399
  <error-page>
400
        <exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
401
                <location>/WEB-INF/pages/errors/Exception.jsp</location>
402
  </error-page>
403
-->
404

    
405
</web-app>
(24-24/27)