root/main/branches/64_bit_Greenstone/greenstone3/web/WEB-INF/web.xml @ 24007

Revision 24007, 13.5 KB (checked in by sjm84, 8 years ago)

Updating this branch to match the latest Greenstone3 changes

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