source: main/trunk/greenstone3/web/WEB-INF/web.xml@ 24415

Last change on this file since 24415 was 24415, checked in by sjm84, 11 years ago

The format servlet is no longer needed

  • Property svn:keywords set to Author Date Id Revision
File size: 12.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2<!-- this is based on a sample web.xml file provided by
3http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt
4-->
5<web-app>
6
7 <!-- General description of your web application -->
8
9 <display-name>GSDL3</display-name>
10 <description>
11 Greenstone digital library version 3.
12 </description>
13
14
15 <!-- Context initialization parameters that define shared
16 String constants used within your application, which
17 can be customized by the system administrator who is
18 installing your application. The values actually
19 assigned to these parameters can be retrieved in a
20 servlet or JSP page by calling:
21
22 String value =
23 getServletContext().getInitParameter("name");
24
25 where "name" matches the <param-name> element of
26 one of these initialization parameters.
27
28 You can define any number of context initialization
29 parameters, including zero.
30 -->
31
32 <context-param>
33 <param-name>webmaster</param-name>
34 <param-value>greenstone3@list.scms.waikato.ac.nz</param-value>
35 <description>
36 The EMAIL address of the administrator to whom questions
37 and comments about this application should be addressed.
38 </description>
39 </context-param>
40
41
42 <!-- Servlet definitions for the servlets that make up
43 your web application, including initialization
44 parameters. With Tomcat, you can also send requests
45 to servlets not listed here with a request like this:
46
47 http://localhost:8080/{context-path}/servlet/{classname}
48
49 but this usage is not guaranteed to be portable. It also
50 makes relative references to images and other resources
51 required by your servlet more complicated, so defining
52 all of your servlets (and defining a mapping to them with
53 a servlet-mapping element) is recommended.
54
55 Servlet initialization parameters can be retrieved in a
56 servlet or JSP page by calling:
57
58 String value =
59 getServletConfig().getInitParameter("name");
60
61 where "name" matches the <param-name> element of
62 one of these initialization parameters.
63
64 You can define any number of servlets, including zero.
65 -->
66
67 <servlet>
68 <servlet-name>tester</servlet-name>
69 <description>a test servlet</description>
70 <servlet-class>TestServlet</servlet-class>
71 </servlet>
72
73 <!-- For client side text fetching -->
74 <servlet>
75 <servlet-name>grabtext</servlet-name>
76 <description>Grabs text for client-side display with minimal overhead.</description>
77 <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class>
78 </servlet>
79
80
81 <servlet>
82 <servlet-name>dev</servlet-name>
83 <description>A new skin engine still in development based on the standard gsdl3 library program</description>
84 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
85 <init-param>
86 <param-name>library_name</param-name>
87 <param-value>dev</param-value>
88 </init-param>
89 <init-param>
90 <param-name>site_name</param-name>
91 <param-value>localsite</param-value>
92 </init-param>
93 <init-param>
94 <param-name>interface_name</param-name>
95 <param-value>oran</param-value>
96 </init-param>
97 <init-param>
98 <param-name>receptionist_class</param-name>
99 <param-value>DefaultReceptionist</param-value>
100 </init-param>
101 <init-param>
102 <param-name>default_lang</param-name>
103 <param-value>en</param-value>
104 </init-param>
105 </servlet>
106
107 <servlet>
108 <servlet-name>gs2-library</servlet-name>
109 <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
110 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
111 <init-param>
112 <param-name>library_name</param-name>
113 <param-value>library</param-value>
114 </init-param>
115 <init-param>
116 <param-name>site_name</param-name>
117 <param-value>localsite</param-value>
118 </init-param>
119 <init-param>
120 <param-name>interface_name</param-name>
121 <param-value>gs2</param-value>
122 </init-param>
123 <init-param>
124 <param-name>default_lang</param-name>
125 <param-value>en</param-value>
126 </init-param>
127 <init-param>
128 <param-name>session_expiration</param-name>
129 <param-value>1800</param-value>
130 </init-param>
131 <init-param>
132 <param-name>params_class</param-name>
133 <param-value>GS2Params</param-value>
134 </init-param>
135 </servlet>
136
137 <servlet>
138 <servlet-name>nzdl-library</servlet-name>
139 <description>gsdl3 library program</description>
140 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
141 <init-param>
142 <param-name>library_name</param-name>
143 <param-value>nzdl</param-value>
144 </init-param>
145 <init-param>
146 <param-name>site_name</param-name>
147 <param-value>nzdl</param-value>
148 </init-param>
149 <init-param>
150 <param-name>interface_name</param-name>
151 <param-value>nzdl</param-value>
152 </init-param>
153 <init-param>
154 <param-name>default_lang</param-name>
155 <param-value>en</param-value>
156 </init-param>
157 <init-param>
158 <param-name>params_class</param-name>
159 <param-value>NZDLParams</param-value>
160 </init-param>
161 <init-param>
162 <param-name>session_expiration</param-name>
163 <param-value>600</param-value>
164 </init-param>
165 </servlet>
166
167 <servlet>
168 <servlet-name>gateway</servlet-name>
169 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
170 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
171 <init-param>
172 <param-name>library_name</param-name>
173 <param-value>gateway</param-value>
174 </init-param>
175 <init-param>
176 <param-name>site_name</param-name>
177 <param-value>gateway</param-value>
178 </init-param>
179 <init-param>
180 <param-name>interface_name</param-name>
181 <param-value>default</param-value>
182 </init-param>
183 <init-param>
184 <param-name>default_lang</param-name>
185 <param-value>en</param-value>
186 </init-param>
187 </servlet>
188
189 <servlet>
190 <servlet-name>gs3-library</servlet-name>
191 <description>standard gsdl3 library program: uses localsite and the default interface</description>
192 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
193 <init-param>
194 <param-name>library_name</param-name>
195 <param-value>gs3library</param-value>
196 </init-param>
197 <init-param>
198 <param-name>site_name</param-name>
199 <param-value>localsite</param-value>
200 </init-param>
201 <init-param>
202 <param-name>interface_name</param-name>
203 <param-value>default</param-value>
204 </init-param>
205 <init-param>
206 <param-name>default_lang</param-name>
207 <param-value>en</param-value>
208 </init-param>
209 <!--<init-param>
210 <param-name>allow_client_side_xslt</param-name>
211 <param-value>true</param-value>
212 </init-param>-->
213 </servlet>
214
215 <!-- axis servlets -->
216 <servlet>
217 <servlet-name>AxisServlet</servlet-name>
218 <display-name>Apache-Axis Servlet</display-name>
219 <servlet-class>
220 org.apache.axis.transport.http.AxisServlet
221 </servlet-class>
222 </servlet>
223
224 <servlet>
225 <servlet-name>AdminServlet</servlet-name>
226 <display-name>Axis Admin Servlet</display-name>
227 <servlet-class>
228 org.apache.axis.transport.http.AdminServlet
229 </servlet-class>
230 <load-on-startup>100</load-on-startup>
231 </servlet>
232
233 <servlet>
234 <servlet-name>SOAPMonitorService</servlet-name>
235 <display-name>SOAPMonitorService</display-name>
236 <servlet-class>
237 org.apache.axis.monitor.SOAPMonitorService
238 </servlet-class>
239 <init-param>
240 <param-name>SOAPMonitorPort</param-name>
241 <param-value>5001</param-value>
242 </init-param>
243 <load-on-startup>100</load-on-startup>
244 </servlet>
245<servlet>
246 <servlet-name>oaiserver</servlet-name>
247 <description>an oai servlet</description>
248 <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
249 <init-param>
250 <param-name>default_lang</param-name>
251 <param-value>en</param-value>
252 </init-param>
253 <init-param>
254 <param-name>site_name</param-name>
255 <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
256 <param-value>localsite</param-value>
257 </init-param>
258</servlet>
259<servlet>
260 <servlet-name>mat</servlet-name>
261 <description>Metadata Analysis Tool</description>
262 <servlet-class>org.greenstone.mat.servlet.MatServlet</servlet-class>
263 </servlet>
264
265<!--
266<filter>
267 <filter-name>UrlRewriteFilter</filter-name>
268 <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
269</filter>
270
271<filter-mapping>
272 <filter-name>UrlRewriteFilter</filter-name>
273 <url-pattern>/*</url-pattern>
274</filter-mapping>
275-->
276
277 <!-- Define mappings that are used by the servlet container to
278 translate a particular request URI (context-relative) to a
279 particular servlet. The examples below correspond to the
280 servlet descriptions above. Thus, a request URI like:
281
282 http://localhost:8080/{contextpath}/graph
283
284 will be mapped to the "graph" servlet, while a request like:
285
286 http://localhost:8080/{contextpath}/saveCustomer.do
287
288 will be mapped to the "controller" servlet.
289
290 Note: context path is determined by the servlet container -
291 in Tomcat, specified in server.xml -kjdon
292 You may define any number of servlet mappings, including zero.
293 It is also legal to define more than one mapping for the same
294 servlet, if you wish to.
295 -->
296 <!--
297
298 <servlet-mapping>
299 <servlet-name>controller</servlet-name>
300 <url-pattern>*.do</url-pattern>
301 </servlet-mapping>
302
303 <servlet-mapping>
304 <servlet-name>graph</servlet-name>
305 <url-pattern>/graph</url-pattern>
306 </servlet-mapping>
307 -->
308
309
310<!--There is no need for this mapping, I think -->
311<servlet-mapping>
312 <servlet-name>oaiserver</servlet-name>
313 <url-pattern>/oaiserver</url-pattern>
314</servlet-mapping>
315
316 <servlet-mapping>
317 <servlet-name>nzdl-library</servlet-name>
318 <url-pattern>/nzdl</url-pattern>
319 </servlet-mapping>
320 <servlet-mapping>
321 <servlet-name>tester</servlet-name>
322 <url-pattern>/testing</url-pattern>
323 </servlet-mapping>
324
325 <servlet-mapping>
326 <servlet-name>dev</servlet-name>
327 <url-pattern>/dev</url-pattern>
328 </servlet-mapping>
329
330 <servlet-mapping>
331 <servlet-name>Format</servlet-name>
332 <url-pattern>/format</url-pattern>
333 </servlet-mapping>
334
335 <servlet-mapping>
336 <servlet-name>gs2-library</servlet-name>
337 <url-pattern>/library</url-pattern>
338 </servlet-mapping>
339
340 <servlet-mapping>
341 <servlet-name>gateway</servlet-name>
342 <url-pattern>/gateway</url-pattern>
343 </servlet-mapping>
344
345 <servlet-mapping>
346 <servlet-name>gs3-library</servlet-name>
347 <url-pattern>/gs3library</url-pattern>
348 </servlet-mapping>
349
350 <servlet-mapping>
351 <servlet-name>grabtext</servlet-name>
352 <url-pattern>/grabtext</url-pattern>
353 </servlet-mapping>
354
355 <!-- axis mappings -->
356 <servlet-mapping>
357 <servlet-name>AxisServlet</servlet-name>
358 <url-pattern>/servlet/AxisServlet</url-pattern>
359 </servlet-mapping>
360
361 <servlet-mapping>
362 <servlet-name>AxisServlet</servlet-name>
363 <url-pattern>*.jws</url-pattern>
364 </servlet-mapping>
365
366 <servlet-mapping>
367 <servlet-name>AxisServlet</servlet-name>
368 <url-pattern>/services/*</url-pattern>
369 </servlet-mapping>
370<servlet-mapping>
371 <servlet-name>mat</servlet-name>
372 <url-pattern>/mat</url-pattern>
373 </servlet-mapping>
374
375 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
376 need to copy the SOAPMonitorApplet*.class files from
377 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
378 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
379 <!--
380 <servlet-mapping>
381 <servlet-name>SOAPMonitorService</servlet-name>
382 <url-pattern>/SOAPMonitor</url-pattern>
383 </servlet-mapping>
384 -->
385 <!-- uncomment this if you want the admin servlet -->
386 <!--
387 <servlet-mapping>
388 <servlet-name>AdminServlet</servlet-name>
389 <url-pattern>/servlet/AdminServlet</url-pattern>
390 </servlet-mapping>
391 -->
392
393 <!-- Define the default session timeout for your application,
394 in minutes. From a servlet or JSP page, you can modify
395 the timeout for a particular session dynamically by using
396 HttpSession.getMaxInactiveInterval(). -->
397
398 <session-config>
399 <session-timeout>30</session-timeout> <!-- 30 minutes -->
400 </session-config>
401
402 <!-- axis mime-mappings -->
403 <mime-mapping>
404 <extension>wsdl</extension>
405 <mime-type>text/xml</mime-type>
406 </mime-mapping>
407
408 <mime-mapping>
409 <extension>xsd</extension>
410 <mime-type>text/xml</mime-type>
411 </mime-mapping>
412
413</web-app>
Note: See TracBrowser for help on using the repository browser.