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

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