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

Last change on this file since 22569 was 22569, checked in by sjb48, 14 years ago

More work on javascript DOM manipulation using sortables and draggables

  • Property svn:keywords set to Author Date Id Revision
File size: 12.1 KB
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>[email protected]</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
80 <servlet>
81 <servlet-name>dev</servlet-name>
82 <description>A new skin engine still in development based on the standard gsdl3 library program</description>
83 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
84 <init-param>
85 <param-name>library_name</param-name>
86 <param-value>dev</param-value>
87 </init-param>
88 <init-param>
89 <param-name>site_name</param-name>
90 <param-value>localsite</param-value>
91 </init-param>
92 <init-param>
93 <param-name>interface_name</param-name>
94 <param-value>oran</param-value>
95 </init-param>
96 <init-param>
97 <param-name>receptionist_class</param-name>
98 <param-value>DefaultReceptionist</param-value>
99 </init-param>
100 <init-param>
101 <param-name>default_lang</param-name>
102 <param-value>en</param-value>
103 </init-param>
104 </servlet>
105
106 <servlet>^M
107 <servlet-name>Format</servlet-name>^M
108 <description>A new skin engine still in development based on the standard gsdl3 library program</description>^M
109 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>^M
110 <init-param>^M
111 <param-name>library_name</param-name>^M
112 <param-value>format</param-value>^M
113 </init-param>^M
114 <init-param>^M
115 <param-name>site_name</param-name>^M
116 <param-value>localsite</param-value>^M
117 </init-param>^M
118 <init-param>^M
119 <param-name>interface_name</param-name>^M
120 <param-value>oran</param-value>^M
121 </init-param>^M
122 <init-param>^M
123 <param-name>receptionist_class</param-name>^M
124 <param-value>FormatReceptionist</param-value>^M
125 </init-param>^M
126 <init-param>^M
127 <param-name>default_lang</param-name>^M
128 <param-value>en</param-value>^M
129 </init-param>^M
130 </servlet>^M
131
132
133 <servlet>
134 <servlet-name>gs2-library</servlet-name>
135 <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
136 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
137 <init-param>
138 <param-name>library_name</param-name>
139 <param-value>library</param-value>
140 </init-param>
141 <init-param>
142 <param-name>site_name</param-name>
143 <param-value>localsite</param-value>
144 </init-param>
145 <init-param>
146 <param-name>interface_name</param-name>
147 <param-value>gs2</param-value>
148 </init-param>
149 <init-param>
150 <param-name>default_lang</param-name>
151 <param-value>en</param-value>
152 </init-param>
153 <init-param>
154 <param-name>session_expiration</param-name>
155 <param-value>1800</param-value>
156 </init-param>
157 <init-param>
158 <param-name>params_class</param-name>
159 <param-value>GS2Params</param-value>
160 </init-param>
161 </servlet>
162
163 <servlet>
164 <servlet-name>gateway</servlet-name>
165 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
166 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
167 <init-param>
168 <param-name>library_name</param-name>
169 <param-value>gateway</param-value>
170 </init-param>
171 <init-param>
172 <param-name>site_name</param-name>
173 <param-value>gateway</param-value>
174 </init-param>
175 <init-param>
176 <param-name>interface_name</param-name>
177 <param-value>default</param-value>
178 </init-param>
179 <init-param>
180 <param-name>default_lang</param-name>
181 <param-value>en</param-value>
182 </init-param>
183 </servlet>
184
185 <servlet>
186 <servlet-name>gs3-library</servlet-name>
187 <description>standard gsdl3 library program: uses localsite and the default interface</description>
188 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
189 <init-param>
190 <param-name>library_name</param-name>
191 <param-value>gs3library</param-value>
192 </init-param>
193 <init-param>
194 <param-name>site_name</param-name>
195 <param-value>localsite</param-value>
196 </init-param>
197 <init-param>
198 <param-name>interface_name</param-name>
199 <param-value>default</param-value>
200 </init-param>
201 <init-param>
202 <param-name>default_lang</param-name>
203 <param-value>en</param-value>
204 </init-param>
205 </servlet>
206
207 <!-- axis servlets -->
208 <servlet>
209 <servlet-name>AxisServlet</servlet-name>
210 <display-name>Apache-Axis Servlet</display-name>
211 <servlet-class>
212 org.apache.axis.transport.http.AxisServlet
213 </servlet-class>
214 </servlet>
215
216 <servlet>
217 <servlet-name>AdminServlet</servlet-name>
218 <display-name>Axis Admin Servlet</display-name>
219 <servlet-class>
220 org.apache.axis.transport.http.AdminServlet
221 </servlet-class>
222 <load-on-startup>100</load-on-startup>
223 </servlet>
224
225 <servlet>
226 <servlet-name>SOAPMonitorService</servlet-name>
227 <display-name>SOAPMonitorService</display-name>
228 <servlet-class>
229 org.apache.axis.monitor.SOAPMonitorService
230 </servlet-class>
231 <init-param>
232 <param-name>SOAPMonitorPort</param-name>
233 <param-value>5001</param-value>
234 </init-param>
235 <load-on-startup>100</load-on-startup>
236 </servlet>
237<servlet>
238 <servlet-name>oaiserver</servlet-name>
239 <description>an oai servlet</description>
240 <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
241 <init-param>
242 <param-name>default_lang</param-name>
243 <param-value>en</param-value>
244 </init-param>
245 <init-param>
246 <param-name>site_name</param-name>
247 <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
248 <param-value>localsite</param-value>
249 </init-param>
250</servlet>
251
252<!--
253<filter>
254 <filter-name>UrlRewriteFilter</filter-name>
255 <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
256</filter>
257
258<filter-mapping>
259 <filter-name>UrlRewriteFilter</filter-name>
260 <url-pattern>/*</url-pattern>
261</filter-mapping>
262-->
263
264 <!-- Define mappings that are used by the servlet container to
265 translate a particular request URI (context-relative) to a
266 particular servlet. The examples below correspond to the
267 servlet descriptions above. Thus, a request URI like:
268
269 http://localhost:8080/{contextpath}/graph
270
271 will be mapped to the "graph" servlet, while a request like:
272
273 http://localhost:8080/{contextpath}/saveCustomer.do
274
275 will be mapped to the "controller" servlet.
276
277 Note: context path is determined by the servlet container -
278 in Tomcat, specified in server.xml -kjdon
279 You may define any number of servlet mappings, including zero.
280 It is also legal to define more than one mapping for the same
281 servlet, if you wish to.
282 -->
283 <!--
284
285 <servlet-mapping>
286 <servlet-name>controller</servlet-name>
287 <url-pattern>*.do</url-pattern>
288 </servlet-mapping>
289
290 <servlet-mapping>
291 <servlet-name>graph</servlet-name>
292 <url-pattern>/graph</url-pattern>
293 </servlet-mapping>
294 -->
295
296
297<!--There is no need for this mapping, I think -->
298<servlet-mapping>
299 <servlet-name>oaiserver</servlet-name>
300 <url-pattern>/oaiserver</url-pattern>
301</servlet-mapping>
302
303 <servlet-mapping>
304 <servlet-name>tester</servlet-name>
305 <url-pattern>/testing</url-pattern>
306 </servlet-mapping>
307
308 <servlet-mapping>
309 <servlet-name>dev</servlet-name>
310 <url-pattern>/dev</url-pattern>
311 </servlet-mapping>
312
313 <servlet-mapping>^M
314 <servlet-name>Format</servlet-name>^M
315 <url-pattern>/format</url-pattern>^M
316 </servlet-mapping>^M
317
318 <servlet-mapping>
319 <servlet-name>gs2-library</servlet-name>
320 <url-pattern>/library</url-pattern>
321 </servlet-mapping>
322
323 <servlet-mapping>
324 <servlet-name>gateway</servlet-name>
325 <url-pattern>/gateway</url-pattern>
326 </servlet-mapping>
327
328 <servlet-mapping>
329 <servlet-name>gs3-library</servlet-name>
330 <url-pattern>/gs3library</url-pattern>
331 </servlet-mapping>
332
333
334 <!-- axis mappings -->
335 <servlet-mapping>
336 <servlet-name>AxisServlet</servlet-name>
337 <url-pattern>/servlet/AxisServlet</url-pattern>
338 </servlet-mapping>
339
340 <servlet-mapping>
341 <servlet-name>AxisServlet</servlet-name>
342 <url-pattern>*.jws</url-pattern>
343 </servlet-mapping>
344
345 <servlet-mapping>
346 <servlet-name>AxisServlet</servlet-name>
347 <url-pattern>/services/*</url-pattern>
348 </servlet-mapping>
349
350 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
351 need to copy the SOAPMonitorApplet*.class files from
352 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
353 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
354 <!--
355 <servlet-mapping>
356 <servlet-name>SOAPMonitorService</servlet-name>
357 <url-pattern>/SOAPMonitor</url-pattern>
358 </servlet-mapping>
359 -->
360 <!-- uncomment this if you want the admin servlet -->
361 <!--
362 <servlet-mapping>
363 <servlet-name>AdminServlet</servlet-name>
364 <url-pattern>/servlet/AdminServlet</url-pattern>
365 </servlet-mapping>
366 -->
367
368 <!-- Define the default session timeout for your application,
369 in minutes. From a servlet or JSP page, you can modify
370 the timeout for a particular session dynamically by using
371 HttpSession.getMaxInactiveInterval(). -->
372
373 <session-config>
374 <session-timeout>30</session-timeout> <!-- 30 minutes -->
375 </session-config>
376
377 <!-- axis mime-mappings -->
378 <mime-mapping>
379 <extension>wsdl</extension>
380 <mime-type>text/xml</mime-type>
381 </mime-mapping>
382
383 <mime-mapping>
384 <extension>xsd</extension>
385 <mime-type>text/xml</mime-type>
386 </mime-mapping>
387
388</web-app>
389
390
Note: See TracBrowser for help on using the repository browser.