Project

General

Profile

1 3032 perry
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
3
<web-app>
4
  <display-name>GeoServer</display-name>
5
  <description>Web Mapping and Feature Services</description>
6
7
  <context-param>
8
    <param-name>serviceStratagy</param-name>
9
    <!-- Meaning of the different values :
10
11
    	 PARTIAL-BUFFER
12
    	 - Partially buffers the first xKb to disk. Once that has buffered, the the
13
    	   result is streamed to the user. This will allow for most errors to be caught
14
    	   early.
15
16
         BUFFER
17
         - stores the entire response in memory first, before sending it off to
18
           the user (may run out of memory)
19
20
         SPEED
21
         - outputs directly to the response (and cannot recover in the case of an
22
           error)
23
24
         FILE
25
         - outputs to the local filesystem first, before sending it off to the user
26
      -->
27
    <param-value>PARTIAL-BUFFER</param-value>
28
  </context-param>
29
30
  <context-param>
31
	<!-- see comments on the PARTIAL-BUFFER strategy -->
32
	<!-- this sets the size of the buffer.  default is "50" = 50kb -->
33
34
	<param-name>PARTIAL_BUFFER_STRATEGY_SIZE</param-name>
35
	<param-value>50</param-value>
36
  </context-param>
37
38
	<!-- pick up all spring application contexts -->
39
	<context-param>
40
		<param-name>contextConfigLocation</param-name>
41
		<param-value>classpath*:/applicationContext.xml</param-value>
42
	</context-param>
43
44
   <!--
45
	  <context-param>
46
		   <param-name>GEOSERVER_DATA_DIR</param-name>
47
		    <param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>
48
	  </context-param>
49
   -->
50
51
  <filter>
52
    <filter-name>Set Character Encoding</filter-name>
53
    <filter-class>org.vfny.geoserver.filters.SetCharacterEncodingFilter</filter-class>
54
    <init-param>
55
      <param-name>encoding</param-name>
56
      <param-value>UTF-8</param-value>
57
    </init-param>
58
  </filter>
59
60
  <filter-mapping>
61
    <filter-name>Set Character Encoding</filter-name>
62
    <url-pattern>/*</url-pattern>
63
  </filter-mapping>
64
65
  <listener>
66
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
67
  </listener>
68
69
  <!-- spring dispatcher servlet, dispatches incoming requests to controllers -->
70
  <servlet>
71
    <servlet-name>dispatcher</servlet-name>
72
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
73
  </servlet>
74
75
   <!-- Struts config needs to load before all the other servlets. -->
76
   <servlet>
77
    <servlet-name>action</servlet-name>
78
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
79
    <init-param>
80
      <param-name>config</param-name>
81
      <param-value>/WEB-INF/struts-config.xml</param-value>
82
    </init-param>
83
    <init-param>
84
      <param-name>debug</param-name>
85
      <param-value>2</param-value>
86
    </init-param>
87
    <init-param>
88
      <param-name>detail</param-name>
89
      <param-value>2</param-value>
90
    </init-param>
91
    <load-on-startup>2</load-on-startup>
92
  </servlet>
93
  <servlet>
94
   <servlet-name>TestWfsPost</servlet-name>
95
   <servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
96
  </servlet>
97
98
	<!-- JD: we dont declare servlets in the web.xml anymore -->
99
  <!--servlet>
100
    <servlet-name>DescribeFeatureType</servlet-name>
101
    <servlet-class>org.vfny.geoserver.wfs.servlets.Describe</servlet-class>
102
  </servlet>
103
  <servlet>
104
    <servlet-name>Dispatcher</servlet-name>
105
    <servlet-class>org.vfny.geoserver.servlets.Dispatcher</servlet-class>
106
  </servlet>
107
  <servlet>
108
    <servlet-name>WmsDispatcher</servlet-name>
109
    <servlet-class>org.vfny.geoserver.wms.servlets.WmsDispatcher</servlet-class>
110
  </servlet>
111
  <servlet>
112
    <servlet-name>WfsDispatcher</servlet-name>
113
    <servlet-class>org.vfny.geoserver.wfs.servlets.WfsDispatcher</servlet-class>
114
  </servlet>
115
  <servlet>
116
    <servlet-name>FreefsLog</servlet-name>
117
    <servlet-class>org.vfny.geoserver.servlets.FreefsLog</servlet-class>
118
    <load-on-startup>1</load-on-startup>
119
  </servlet>
120
  <servlet>
121
    <servlet-name>GetFeature</servlet-name>
122
    <servlet-class>org.vfny.geoserver.wfs.servlets.Feature</servlet-class>
123
  </servlet>
124
  <servlet>
125
    <servlet-name>GetFeatureWithLock</servlet-name>
126
    <servlet-class>org.vfny.geoserver.wfs.servlets.FeatureWithLock</servlet-class>
127
  </servlet>
128
  <servlet>
129
    <servlet-name>GetMap</servlet-name>
130
    <servlet-class>org.vfny.geoserver.wms.servlets.GetMap</servlet-class>
131
  </servlet>
132
  <servlet>
133
    <servlet-name>KMLReflector</servlet-name>
134
    <servlet-class>org.vfny.geoserver.wms.servlets.KMLReflector</servlet-class>
135
  </servlet>
136
  <servlet>
137
    <servlet-name>PutStyles</servlet-name>
138
    <servlet-class>org.vfny.geoserver.sld.servlets.PutStyles</servlet-class>
139
  </servlet>
140
  <servlet>
141
    <servlet-name>LockFeature</servlet-name>
142
    <servlet-class>org.vfny.geoserver.wfs.servlets.Lock</servlet-class>
143
  </servlet>
144
  <servlet>
145
    <servlet-name>Transaction</servlet-name>
146
    <servlet-class>org.vfny.geoserver.wfs.servlets.Transaction</servlet-class>
147
  </servlet>
148
  <servlet>
149
    <servlet-name>WFSGetCapabilities</servlet-name>
150
    <servlet-class>org.vfny.geoserver.wfs.servlets.Capabilities</servlet-class>
151
  </servlet>
152
  <servlet>
153
    <servlet-name>GetFeatureInfo</servlet-name>
154
    <servlet-class>org.vfny.geoserver.wms.servlets.GetFeatureInfo</servlet-class>
155
  </servlet>
156
  <servlet>
157
    <servlet-name>DescribeLayer</servlet-name>
158
    <servlet-class>org.vfny.geoserver.wms.servlets.DescribeLayer</servlet-class>
159
  </servlet>
160
  <servlet>
161
    <servlet-name>WMSGetCapabilities</servlet-name>
162
    <servlet-class>org.vfny.geoserver.wms.servlets.Capabilities</servlet-class>
163
  </servlet>
164
  <servlet>
165
    <servlet-name>GetLegendGraphic</servlet-name>
166
    <servlet-class>org.vfny.geoserver.wms.servlets.GetLegendGraphic</servlet-class>
167
  </servlet-->
168
169
  <servlet-mapping>
170
    <servlet-name>action</servlet-name>
171
    <url-pattern>*.do</url-pattern>
172
   </servlet-mapping>
173
  <servlet-mapping>
174
  	<servlet-name>dispatcher</servlet-name>
175
	<url-pattern>/wms/*</url-pattern>
176
  </servlet-mapping>
177
  <servlet-mapping>
178
  	<servlet-name>dispatcher</servlet-name>
179
	<url-pattern>/wfs/*</url-pattern>
180
  </servlet-mapping>
181
  <servlet-mapping>
182
  	<servlet-name>dispatcher</servlet-name>
183
  	<url-pattern>/ows/*</url-pattern>
184
  </servlet-mapping>
185
  <servlet-mapping>
186
   <servlet-name>TestWfsPost</servlet-name>
187
   <url-pattern>/TestWfsPost/*</url-pattern>
188
  </servlet-mapping>
189
	<!-- the new dispatch system gets all of the following -->
190
  <!--servlet-mapping>
191
    <servlet-name>Dispatcher</servlet-name>
192
    <url-pattern>/dispatcher/*</url-pattern>
193
  </servlet-mapping>
194
  <servlet-mapping>
195
    <servlet-name>WFSGetCapabilities</servlet-name>
196
    <url-pattern>/wfs/GetCapabilities/*</url-pattern>
197
  </servlet-mapping>
198
  <servlet-mapping>
199
    <servlet-name>GetFeature</servlet-name>
200
    <url-pattern>/wfs/GetFeature/*</url-pattern>
201
  </servlet-mapping>
202
  <servlet-mapping>
203
    <servlet-name>GetFeatureWithLock</servlet-name>
204
    <url-pattern>/wfs/GetFeatureWithLock/*</url-pattern>
205
  </servlet-mapping>
206
  <servlet-mapping>
207
    <servlet-name>LockFeature</servlet-name>
208
    <url-pattern>/wfs/LockFeature/*</url-pattern>
209
  </servlet-mapping>
210
  <servlet-mapping>
211
    <servlet-name>Transaction</servlet-name>
212
    <url-pattern>/wfs/Transaction/*</url-pattern>
213
  </servlet-mapping>
214
  <servlet-mapping>
215
    <servlet-name>WMSGetCapabilities</servlet-name>
216
    <url-pattern>/wms/GetCapabilities</url-pattern>
217
  </servlet-mapping>
218
  <servlet-mapping>
219
    <servlet-name>GetMap</servlet-name>
220
    <url-pattern>/wms/GetMap</url-pattern>
221
  </servlet-mapping>
222
  <servlet-mapping>
223
    <servlet-name>KMLReflector</servlet-name>
224
    <url-pattern>/wms/kml_reflect</url-pattern>
225
  </servlet-mapping>
226
  <servlet-mapping>
227
    <servlet-name>DescribeLayer</servlet-name>
228
    <url-pattern>/wms/DescribeLayer</url-pattern>
229
  </servlet-mapping>
230
  <servlet-mapping>
231
    <servlet-name>GetFeatureInfo</servlet-name>
232
    <url-pattern>/wms/GetFeatureInfo</url-pattern>
233
  </servlet-mapping>
234
  <servlet-mapping>
235
    <servlet-name>GetLegendGraphic</servlet-name>
236
    <url-pattern>/wms/GetLegendGraphic</url-pattern>
237
  </servlet-mapping>
238
  <servlet-mapping>
239
    <servlet-name>PutStyles</servlet-name>
240
    <url-pattern>/sld</url-pattern>
241
  </servlet-mapping-->
242
243
  <mime-mapping>
244
   <extension>xsl</extension>
245
   <mime-type>text/xml</mime-type>
246
  </mime-mapping>
247
248
  <welcome-file-list>
249
    <welcome-file>/WEB-INF/pages/index.jsp</welcome-file>
250
  </welcome-file-list>
251
252
  <error-page>
253
  	<exception-type>java.lang.Exception</exception-type>
254
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
255
  </error-page>
256
  <error-page>
257
  	<exception-type>javax.servlet.ServletException</exception-type>
258
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
259
  </error-page>
260
  <error-page>
261
  	<exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
262
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
263
  </error-page>
264
265
  <taglib>
266
    <taglib-uri>/tags/struts-bean</taglib-uri>
267
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
268
  </taglib>
269
270
  <taglib>
271
    <taglib-uri>/tags/struts-html</taglib-uri>
272
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
273
  </taglib>
274
275
  <taglib>
276
    <taglib-uri>/tags/struts-logic</taglib-uri>
277
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
278
  </taglib>
279
280
  <taglib>
281
    <taglib-uri>/tags/struts-nested</taglib-uri>
282
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
283
  </taglib>
284
285
  <taglib>
286
    <taglib-uri>/tags/struts-tiles</taglib-uri>
287
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
288
  </taglib>
289
290
  <!-- spring taglib -->
291
  <taglib>
292
  	<taglib-uri>/tags/spring</taglib-uri>
293
  	<taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
294
  </taglib>
295
</web-app>