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

Last change on this file since 21000 was 19998, checked in by oranfry, 15 years ago

last commit was a mistake, just tidying up after myself

  • Property svn:keywords set to Author Date Id Revision
File size: 11.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>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<!--
226<filter>
227 <filter-name>UrlRewriteFilter</filter-name>
228 <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
229</filter>
230
231<filter-mapping>
232 <filter-name>UrlRewriteFilter</filter-name>
233 <url-pattern>/*</url-pattern>
234</filter-mapping>
235-->
236
237 <!-- Define mappings that are used by the servlet container to
238 translate a particular request URI (context-relative) to a
239 particular servlet. The examples below correspond to the
240 servlet descriptions above. Thus, a request URI like:
241
242 http://localhost:8080/{contextpath}/graph
243
244 will be mapped to the "graph" servlet, while a request like:
245
246 http://localhost:8080/{contextpath}/saveCustomer.do
247
248 will be mapped to the "controller" servlet.
249
250 Note: context path is determined by the servlet container -
251 in Tomcat, specified in server.xml -kjdon
252 You may define any number of servlet mappings, including zero.
253 It is also legal to define more than one mapping for the same
254 servlet, if you wish to.
255 -->
256 <!--
257
258 <servlet-mapping>
259 <servlet-name>controller</servlet-name>
260 <url-pattern>*.do</url-pattern>
261 </servlet-mapping>
262
263 <servlet-mapping>
264 <servlet-name>graph</servlet-name>
265 <url-pattern>/graph</url-pattern>
266 </servlet-mapping>
267 -->
268
269
270<!--There is no need for this mapping, I think -->
271<servlet-mapping>
272 <servlet-name>oaiserver</servlet-name>
273 <url-pattern>/oaiserver</url-pattern>
274</servlet-mapping>
275
276 <servlet-mapping>
277 <servlet-name>tester</servlet-name>
278 <url-pattern>/testing</url-pattern>
279 </servlet-mapping>
280
281 <servlet-mapping>
282 <servlet-name>dev</servlet-name>
283 <url-pattern>/dev</url-pattern>
284 </servlet-mapping>
285 <servlet-mapping>
286 <servlet-name>gs2-library</servlet-name>
287 <url-pattern>/library</url-pattern>
288 </servlet-mapping>
289
290 <servlet-mapping>
291 <servlet-name>gateway</servlet-name>
292 <url-pattern>/gateway</url-pattern>
293 </servlet-mapping>
294
295 <servlet-mapping>
296 <servlet-name>gs3-library</servlet-name>
297 <url-pattern>/gs3library</url-pattern>
298 </servlet-mapping>
299
300
301 <!-- axis mappings -->
302 <servlet-mapping>
303 <servlet-name>AxisServlet</servlet-name>
304 <url-pattern>/servlet/AxisServlet</url-pattern>
305 </servlet-mapping>
306
307 <servlet-mapping>
308 <servlet-name>AxisServlet</servlet-name>
309 <url-pattern>*.jws</url-pattern>
310 </servlet-mapping>
311
312 <servlet-mapping>
313 <servlet-name>AxisServlet</servlet-name>
314 <url-pattern>/services/*</url-pattern>
315 </servlet-mapping>
316
317 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
318 need to copy the SOAPMonitorApplet*.class files from
319 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
320 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
321 <!--
322 <servlet-mapping>
323 <servlet-name>SOAPMonitorService</servlet-name>
324 <url-pattern>/SOAPMonitor</url-pattern>
325 </servlet-mapping>
326 -->
327 <!-- uncomment this if you want the admin servlet -->
328 <!--
329 <servlet-mapping>
330 <servlet-name>AdminServlet</servlet-name>
331 <url-pattern>/servlet/AdminServlet</url-pattern>
332 </servlet-mapping>
333 -->
334
335 <!-- Define the default session timeout for your application,
336 in minutes. From a servlet or JSP page, you can modify
337 the timeout for a particular session dynamically by using
338 HttpSession.getMaxInactiveInterval(). -->
339
340 <session-config>
341 <session-timeout>30</session-timeout> <!-- 30 minutes -->
342 </session-config>
343
344 <!-- axis mime-mappings -->
345 <mime-mapping>
346 <extension>wsdl</extension>
347 <mime-type>text/xml</mime-type>
348 </mime-mapping>
349
350 <mime-mapping>
351 <extension>xsd</extension>
352 <mime-type>text/xml</mime-type>
353 </mime-mapping>
354
355</web-app>
356
357
Note: See TracBrowser for help on using the repository browser.