root/greenstone3/trunk/web/WEB-INF/web.xml @ 14555

Revision 14555, 9.8 KB (checked in by anna, 13 years ago)

Changed the default interface from default to classic.

  • 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
12
13  <!-- General description of your web application -->
14 
15  <display-name>GSDL3</display-name>
16  <description>
17    Greenstone digital library version 3.
18  </description>
19 
20 
21  <!-- Context initialization parameters that define shared
22  String constants used within your application, which
23  can be customized by the system administrator who is
24  installing your application.  The values actually
25  assigned to these parameters can be retrieved in a
26  servlet or JSP page by calling:
27 
28  String value =
29  getServletContext().getInitParameter("name");
30 
31  where "name" matches the <param-name> element of
32  one of these initialization parameters.
33 
34  You can define any number of context initialization
35  parameters, including zero.
36  -->
37 
38  <context-param>
39    <param-name>webmaster</param-name>
40    <param-value>greenstone3@list.scms.waikato.ac.nz</param-value>
41    <description>
42      The EMAIL address of the administrator to whom questions
43      and comments about this application should be addressed.
44    </description>
45  </context-param>
46 
47
48  <!-- Servlet definitions for the servlets that make up
49  your web application, including initialization
50  parameters.  With Tomcat, you can also send requests
51  to servlets not listed here with a request like this:
52
53  http://localhost:8080/{context-path}/servlet/{classname}
54 
55  but this usage is not guaranteed to be portable.  It also
56  makes relative references to images and other resources
57  required by your servlet more complicated, so defining
58  all of your servlets (and defining a mapping to them with
59  a servlet-mapping element) is recommended.
60 
61  Servlet initialization parameters can be retrieved in a
62  servlet or JSP page by calling:
63 
64  String value =
65  getServletConfig().getInitParameter("name");
66 
67  where "name" matches the <param-name> element of
68  one of these initialization parameters.
69 
70  You can define any number of servlets, including zero.
71  -->
72
73  <servlet>
74    <servlet-name>tester</servlet-name>
75    <description>a test servlet</description>
76    <servlet-class>TestServlet</servlet-class>
77  </servlet>
78 
79  <servlet>
80    <servlet-name>library</servlet-name>
81    <description>standard gsdl3 library program: uses localsite and the default interface</description>
82    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
83    <init-param>
84      <param-name>library_name</param-name>
85      <param-value>library</param-value>
86    </init-param>
87    <init-param>
88      <param-name>site_name</param-name>
89      <param-value>localsite</param-value>
90    </init-param>
91    <init-param>
92      <param-name>interface_name</param-name>
93      <param-value>classic</param-value>
94    </init-param>
95    <init-param>
96      <param-name>default_lang</param-name>
97      <param-value>en</param-value>
98    </init-param>
99    <init-param>
100      <param-name>session_expiration</param-name>
101      <param-value>1800</param-value>
102    </init-param>
103  </servlet>
104  <servlet>
105    <servlet-name>gateway</servlet-name>
106    <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
107    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
108    <init-param>
109      <param-name>library_name</param-name>
110      <param-value>gateway</param-value>
111    </init-param>
112    <init-param>
113      <param-name>site_name</param-name>
114      <param-value>gateway</param-value>
115    </init-param>
116    <init-param>
117      <param-name>interface_name</param-name>
118      <param-value>default</param-value>
119    </init-param>
120    <init-param>
121      <param-name>default_lang</param-name>
122      <param-value>en</param-value>
123    </init-param>
124  </servlet>
125 
126  <servlet>
127    <servlet-name>classic-library</servlet-name>
128    <description>Greenstone 2 lookalike library program: uses localsite with the classic interface</description>
129    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
130    <init-param>
131      <param-name>library_name</param-name>
132      <param-value>classic</param-value>
133    </init-param>
134    <init-param>
135      <param-name>site_name</param-name>
136      <param-value>localsite</param-value>
137    </init-param>
138    <init-param>
139      <param-name>interface_name</param-name>
140      <param-value>classic</param-value>
141    </init-param>
142    <init-param>
143      <param-name>default_lang</param-name>
144      <param-value>en</param-value>
145    </init-param>
146    <init-param>
147      <param-name>params_class</param-name>
148      <param-value>NZDLParams</param-value>
149    </init-param>
150  </servlet>
151
152  <!-- axis servlets -->
153  <servlet>
154    <servlet-name>AxisServlet</servlet-name>
155    <display-name>Apache-Axis Servlet</display-name>
156    <servlet-class>
157        org.apache.axis.transport.http.AxisServlet
158    </servlet-class>
159  </servlet>
160
161  <servlet>
162    <servlet-name>AdminServlet</servlet-name>
163    <display-name>Axis Admin Servlet</display-name>
164    <servlet-class>
165        org.apache.axis.transport.http.AdminServlet
166    </servlet-class>
167    <load-on-startup>100</load-on-startup>
168  </servlet>
169
170  <servlet>
171    <servlet-name>SOAPMonitorService</servlet-name>
172    <display-name>SOAPMonitorService</display-name>
173    <servlet-class>
174        org.apache.axis.monitor.SOAPMonitorService
175    </servlet-class>
176    <init-param>
177      <param-name>SOAPMonitorPort</param-name>
178      <param-value>5001</param-value>
179    </init-param>
180    <load-on-startup>100</load-on-startup>
181  </servlet>
182<servlet>
183         <servlet-name>oaiserver</servlet-name>
184     <description>an oai servlet</description>
185         <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
186         <init-param>
187           <param-name>default_lang</param-name>
188           <param-value>en</param-value>
189         </init-param>
190         <init-param>
191           <param-name>site_name</param-name>
192           <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
193           <param-value>localsite</param-value>
194         </init-param>
195</servlet>
196<!--
197--> 
198    <!-- Define mappings that are used by the servlet container to
199         translate a particular request URI (context-relative) to a
200         particular servlet.  The examples below correspond to the
201         servlet descriptions above.  Thus, a request URI like:
202
203           http://localhost:8080/{contextpath}/graph
204
205         will be mapped to the "graph" servlet, while a request like:
206
207           http://localhost:8080/{contextpath}/saveCustomer.do
208
209         will be mapped to the "controller" servlet.
210
211     Note: context path is determined by the servlet container -
212     in Tomcat, specified in server.xml -kjdon
213         You may define any number of servlet mappings, including zero.
214         It is also legal to define more than one mapping for the same
215         servlet, if you wish to.
216    -->
217    <!--
218   
219    <servlet-mapping>
220      <servlet-name>controller</servlet-name>
221      <url-pattern>*.do</url-pattern>
222    </servlet-mapping>
223
224    <servlet-mapping>
225      <servlet-name>graph</servlet-name>
226      <url-pattern>/graph</url-pattern>
227    </servlet-mapping>
228    -->
229   
230
231<servlet-mapping>
232      <servlet-name>oaiserver</servlet-name>
233      <url-pattern>/oaiserver</url-pattern>
234</servlet-mapping>
235
236  <servlet-mapping>
237    <servlet-name>tester</servlet-name>
238    <url-pattern>/testing</url-pattern>
239  </servlet-mapping>
240 
241  <servlet-mapping>
242    <servlet-name>library</servlet-name>
243    <url-pattern>/library</url-pattern>
244  </servlet-mapping>
245 
246  <servlet-mapping>
247    <servlet-name>gateway</servlet-name>
248    <url-pattern>/gateway</url-pattern>
249  </servlet-mapping>
250 
251  <servlet-mapping>
252    <servlet-name>classic-library</servlet-name>
253    <url-pattern>/classic</url-pattern>
254  </servlet-mapping>
255 
256  <!-- axis mappings -->
257  <servlet-mapping>
258    <servlet-name>AxisServlet</servlet-name>
259    <url-pattern>/servlet/AxisServlet</url-pattern>
260  </servlet-mapping>
261
262  <servlet-mapping>
263    <servlet-name>AxisServlet</servlet-name>
264    <url-pattern>*.jws</url-pattern>
265  </servlet-mapping>
266
267  <servlet-mapping>
268    <servlet-name>AxisServlet</servlet-name>
269    <url-pattern>/services/*</url-pattern>
270  </servlet-mapping>
271
272  <!-- uncomment this if you want to use the SOAPMonitorService. You will also
273  need to copy the SOAPMonitorApplet*.class files from
274  gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
275  comms/soap/axis/docs/install.html Appendix for details about how to use this -->
276  <!--
277  <servlet-mapping>
278    <servlet-name>SOAPMonitorService</servlet-name>
279    <url-pattern>/SOAPMonitor</url-pattern>
280  </servlet-mapping>
281  -->
282  <!-- uncomment this if you want the admin servlet -->
283  <!--
284  <servlet-mapping>
285    <servlet-name>AdminServlet</servlet-name>
286    <url-pattern>/servlet/AdminServlet</url-pattern>
287  </servlet-mapping>
288  -->
289
290  <!-- Define the default session timeout for your application,
291  in minutes.  From a servlet or JSP page, you can modify
292  the timeout for a particular session dynamically by using
293  HttpSession.getMaxInactiveInterval(). -->
294
295  <session-config>
296    <session-timeout>30</session-timeout>    <!-- 30 minutes -->
297  </session-config>
298
299  <!-- axis mime-mappings -->
300  <mime-mapping>
301    <extension>wsdl</extension>
302    <mime-type>text/xml</mime-type>
303  </mime-mapping>
304 
305  <mime-mapping>
306    <extension>xsd</extension>
307    <mime-type>text/xml</mime-type>
308  </mime-mapping>
309 
310</web-app>
311
312
Note: See TracBrowser for help on using the browser.