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