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 3112 perry
    <param-name>serviceStrategy</param-name>
9 3032 perry
    <!-- 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 3112 perry
44
	<!--
45
	<context-param>
46
	  <param-name>PROXY_BASE_URL</param-name>
47
	  <param-value>http://82.58.146.45/</param-value>
48
	</context-param>
49
	 -->
50
51 3032 perry
52
   <!--
53
	  <context-param>
54
		   <param-name>GEOSERVER_DATA_DIR</param-name>
55
		    <param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>
56
	  </context-param>
57
   -->
58
59
  <filter>
60
    <filter-name>Set Character Encoding</filter-name>
61
    <filter-class>org.vfny.geoserver.filters.SetCharacterEncodingFilter</filter-class>
62
    <init-param>
63
      <param-name>encoding</param-name>
64
      <param-value>UTF-8</param-value>
65
    </init-param>
66
  </filter>
67
68
  <filter-mapping>
69
    <filter-name>Set Character Encoding</filter-name>
70
    <url-pattern>/*</url-pattern>
71
  </filter-mapping>
72
73
  <listener>
74
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
75
  </listener>
76
77
  <!-- spring dispatcher servlet, dispatches incoming requests to controllers -->
78
  <servlet>
79
    <servlet-name>dispatcher</servlet-name>
80
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
81
  </servlet>
82
83
   <!-- Struts config needs to load before all the other servlets. -->
84
   <servlet>
85
    <servlet-name>action</servlet-name>
86
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
87
    <init-param>
88
      <param-name>config</param-name>
89
      <param-value>/WEB-INF/struts-config.xml</param-value>
90
    </init-param>
91
    <init-param>
92
      <param-name>debug</param-name>
93
      <param-value>2</param-value>
94
    </init-param>
95
    <init-param>
96
      <param-name>detail</param-name>
97
      <param-value>2</param-value>
98
    </init-param>
99
    <load-on-startup>2</load-on-startup>
100
  </servlet>
101
  <servlet>
102
   <servlet-name>TestWfsPost</servlet-name>
103
   <servlet-class>org.vfny.geoserver.wfs.servlets.TestWfsPost</servlet-class>
104
  </servlet>
105
106
	<!-- JD: we dont declare servlets in the web.xml anymore -->
107
  <!--servlet>
108
    <servlet-name>DescribeFeatureType</servlet-name>
109
    <servlet-class>org.vfny.geoserver.wfs.servlets.Describe</servlet-class>
110
  </servlet>
111
  <servlet>
112
    <servlet-name>Dispatcher</servlet-name>
113
    <servlet-class>org.vfny.geoserver.servlets.Dispatcher</servlet-class>
114
  </servlet>
115
  <servlet>
116
    <servlet-name>WmsDispatcher</servlet-name>
117
    <servlet-class>org.vfny.geoserver.wms.servlets.WmsDispatcher</servlet-class>
118
  </servlet>
119
  <servlet>
120
    <servlet-name>WfsDispatcher</servlet-name>
121
    <servlet-class>org.vfny.geoserver.wfs.servlets.WfsDispatcher</servlet-class>
122
  </servlet>
123
  <servlet>
124
    <servlet-name>FreefsLog</servlet-name>
125
    <servlet-class>org.vfny.geoserver.servlets.FreefsLog</servlet-class>
126
    <load-on-startup>1</load-on-startup>
127
  </servlet>
128
  <servlet>
129
    <servlet-name>GetFeature</servlet-name>
130
    <servlet-class>org.vfny.geoserver.wfs.servlets.Feature</servlet-class>
131
  </servlet>
132
  <servlet>
133
    <servlet-name>GetFeatureWithLock</servlet-name>
134
    <servlet-class>org.vfny.geoserver.wfs.servlets.FeatureWithLock</servlet-class>
135
  </servlet>
136
  <servlet>
137
    <servlet-name>GetMap</servlet-name>
138
    <servlet-class>org.vfny.geoserver.wms.servlets.GetMap</servlet-class>
139
  </servlet>
140
  <servlet>
141
    <servlet-name>KMLReflector</servlet-name>
142
    <servlet-class>org.vfny.geoserver.wms.servlets.KMLReflector</servlet-class>
143
  </servlet>
144
  <servlet>
145
    <servlet-name>PutStyles</servlet-name>
146
    <servlet-class>org.vfny.geoserver.sld.servlets.PutStyles</servlet-class>
147
  </servlet>
148
  <servlet>
149
    <servlet-name>LockFeature</servlet-name>
150
    <servlet-class>org.vfny.geoserver.wfs.servlets.Lock</servlet-class>
151
  </servlet>
152
  <servlet>
153
    <servlet-name>Transaction</servlet-name>
154
    <servlet-class>org.vfny.geoserver.wfs.servlets.Transaction</servlet-class>
155
  </servlet>
156
  <servlet>
157
    <servlet-name>WFSGetCapabilities</servlet-name>
158
    <servlet-class>org.vfny.geoserver.wfs.servlets.Capabilities</servlet-class>
159
  </servlet>
160
  <servlet>
161
    <servlet-name>GetFeatureInfo</servlet-name>
162
    <servlet-class>org.vfny.geoserver.wms.servlets.GetFeatureInfo</servlet-class>
163
  </servlet>
164
  <servlet>
165
    <servlet-name>DescribeLayer</servlet-name>
166
    <servlet-class>org.vfny.geoserver.wms.servlets.DescribeLayer</servlet-class>
167
  </servlet>
168
  <servlet>
169
    <servlet-name>WMSGetCapabilities</servlet-name>
170
    <servlet-class>org.vfny.geoserver.wms.servlets.Capabilities</servlet-class>
171
  </servlet>
172
  <servlet>
173
    <servlet-name>GetLegendGraphic</servlet-name>
174
    <servlet-class>org.vfny.geoserver.wms.servlets.GetLegendGraphic</servlet-class>
175
  </servlet-->
176
177
  <servlet-mapping>
178
    <servlet-name>action</servlet-name>
179
    <url-pattern>*.do</url-pattern>
180
   </servlet-mapping>
181
  <servlet-mapping>
182
  	<servlet-name>dispatcher</servlet-name>
183
	<url-pattern>/wms/*</url-pattern>
184
  </servlet-mapping>
185
  <servlet-mapping>
186
  	<servlet-name>dispatcher</servlet-name>
187
	<url-pattern>/wfs/*</url-pattern>
188
  </servlet-mapping>
189
  <servlet-mapping>
190
  	<servlet-name>dispatcher</servlet-name>
191
  	<url-pattern>/ows/*</url-pattern>
192
  </servlet-mapping>
193
  <servlet-mapping>
194
   <servlet-name>TestWfsPost</servlet-name>
195
   <url-pattern>/TestWfsPost/*</url-pattern>
196
  </servlet-mapping>
197
	<!-- the new dispatch system gets all of the following -->
198
  <!--servlet-mapping>
199
    <servlet-name>Dispatcher</servlet-name>
200
    <url-pattern>/dispatcher/*</url-pattern>
201
  </servlet-mapping>
202
  <servlet-mapping>
203
    <servlet-name>WFSGetCapabilities</servlet-name>
204
    <url-pattern>/wfs/GetCapabilities/*</url-pattern>
205
  </servlet-mapping>
206
  <servlet-mapping>
207
    <servlet-name>GetFeature</servlet-name>
208
    <url-pattern>/wfs/GetFeature/*</url-pattern>
209
  </servlet-mapping>
210
  <servlet-mapping>
211
    <servlet-name>GetFeatureWithLock</servlet-name>
212
    <url-pattern>/wfs/GetFeatureWithLock/*</url-pattern>
213
  </servlet-mapping>
214
  <servlet-mapping>
215
    <servlet-name>LockFeature</servlet-name>
216
    <url-pattern>/wfs/LockFeature/*</url-pattern>
217
  </servlet-mapping>
218
  <servlet-mapping>
219
    <servlet-name>Transaction</servlet-name>
220
    <url-pattern>/wfs/Transaction/*</url-pattern>
221
  </servlet-mapping>
222
  <servlet-mapping>
223
    <servlet-name>WMSGetCapabilities</servlet-name>
224
    <url-pattern>/wms/GetCapabilities</url-pattern>
225
  </servlet-mapping>
226
  <servlet-mapping>
227
    <servlet-name>GetMap</servlet-name>
228
    <url-pattern>/wms/GetMap</url-pattern>
229
  </servlet-mapping>
230
  <servlet-mapping>
231
    <servlet-name>KMLReflector</servlet-name>
232
    <url-pattern>/wms/kml_reflect</url-pattern>
233
  </servlet-mapping>
234
  <servlet-mapping>
235
    <servlet-name>DescribeLayer</servlet-name>
236
    <url-pattern>/wms/DescribeLayer</url-pattern>
237
  </servlet-mapping>
238
  <servlet-mapping>
239
    <servlet-name>GetFeatureInfo</servlet-name>
240
    <url-pattern>/wms/GetFeatureInfo</url-pattern>
241
  </servlet-mapping>
242
  <servlet-mapping>
243
    <servlet-name>GetLegendGraphic</servlet-name>
244
    <url-pattern>/wms/GetLegendGraphic</url-pattern>
245
  </servlet-mapping>
246
  <servlet-mapping>
247
    <servlet-name>PutStyles</servlet-name>
248
    <url-pattern>/sld</url-pattern>
249
  </servlet-mapping-->
250
251
  <mime-mapping>
252
   <extension>xsl</extension>
253
   <mime-type>text/xml</mime-type>
254
  </mime-mapping>
255
256
  <welcome-file-list>
257 3112 perry
    <welcome-file>index.jsp</welcome-file>
258 3032 perry
  </welcome-file-list>
259
260
  <error-page>
261
  	<exception-type>java.lang.Exception</exception-type>
262
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
263
  </error-page>
264
  <error-page>
265
  	<exception-type>javax.servlet.ServletException</exception-type>
266
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
267
  </error-page>
268
  <error-page>
269
  	<exception-type>org.vfny.geoserver.global.ConfigurationException</exception-type>
270
		<location>/WEB-INF/pages/errors/Exception.jsp</location>
271
  </error-page>
272
273
  <taglib>
274
    <taglib-uri>/tags/struts-bean</taglib-uri>
275
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
276
  </taglib>
277
278
  <taglib>
279
    <taglib-uri>/tags/struts-html</taglib-uri>
280
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
281
  </taglib>
282
283
  <taglib>
284
    <taglib-uri>/tags/struts-logic</taglib-uri>
285
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
286
  </taglib>
287
288
  <taglib>
289
    <taglib-uri>/tags/struts-nested</taglib-uri>
290
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
291
  </taglib>
292
293
  <taglib>
294
    <taglib-uri>/tags/struts-tiles</taglib-uri>
295
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
296
  </taglib>
297
298
  <!-- spring taglib -->
299
  <taglib>
300
  	<taglib-uri>/tags/spring</taglib-uri>
301
  	<taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
302
  </taglib>
303
</web-app>