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
|
---|
8 | http://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 | <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>default</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 | </servlet>
|
---|
100 |
|
---|
101 | <servlet>
|
---|
102 | <servlet-name>gateway</servlet-name>
|
---|
103 | <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
|
---|
104 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
105 | <init-param>
|
---|
106 | <param-name>library_name</param-name>
|
---|
107 | <param-value>gateway</param-value>
|
---|
108 | </init-param>
|
---|
109 | <init-param>
|
---|
110 | <param-name>site_name</param-name>
|
---|
111 | <param-value>gateway</param-value>
|
---|
112 | </init-param>
|
---|
113 | <init-param>
|
---|
114 | <param-name>interface_name</param-name>
|
---|
115 | <param-value>default</param-value>
|
---|
116 | </init-param>
|
---|
117 | <init-param>
|
---|
118 | <param-name>default_lang</param-name>
|
---|
119 | <param-value>en</param-value>
|
---|
120 | </init-param>
|
---|
121 | </servlet>
|
---|
122 |
|
---|
123 | <servlet>
|
---|
124 | <servlet-name>classic-library</servlet-name>
|
---|
125 | <description>Greenstone 2 lookalike library program: uses localsite with the classic interface</description>
|
---|
126 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
127 | <init-param>
|
---|
128 | <param-name>library_name</param-name>
|
---|
129 | <param-value>classic</param-value>
|
---|
130 | </init-param>
|
---|
131 | <init-param>
|
---|
132 | <param-name>site_name</param-name>
|
---|
133 | <param-value>localsite</param-value>
|
---|
134 | </init-param>
|
---|
135 | <init-param>
|
---|
136 | <param-name>interface_name</param-name>
|
---|
137 | <param-value>classic</param-value>
|
---|
138 | </init-param>
|
---|
139 | <init-param>
|
---|
140 | <param-name>default_lang</param-name>
|
---|
141 | <param-value>en</param-value>
|
---|
142 | </init-param>
|
---|
143 | <init-param>
|
---|
144 | <param-name>params_class</param-name>
|
---|
145 | <param-value>NZDLParams</param-value>
|
---|
146 | </init-param>
|
---|
147 | </servlet>
|
---|
148 |
|
---|
149 | <!-- axis servlets -->
|
---|
150 | <servlet>
|
---|
151 | <servlet-name>AxisServlet</servlet-name>
|
---|
152 | <display-name>Apache-Axis Servlet</display-name>
|
---|
153 | <servlet-class>
|
---|
154 | org.apache.axis.transport.http.AxisServlet
|
---|
155 | </servlet-class>
|
---|
156 | </servlet>
|
---|
157 |
|
---|
158 | <servlet>
|
---|
159 | <servlet-name>AdminServlet</servlet-name>
|
---|
160 | <display-name>Axis Admin Servlet</display-name>
|
---|
161 | <servlet-class>
|
---|
162 | org.apache.axis.transport.http.AdminServlet
|
---|
163 | </servlet-class>
|
---|
164 | <load-on-startup>100</load-on-startup>
|
---|
165 | </servlet>
|
---|
166 |
|
---|
167 | <servlet>
|
---|
168 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
169 | <display-name>SOAPMonitorService</display-name>
|
---|
170 | <servlet-class>
|
---|
171 | org.apache.axis.monitor.SOAPMonitorService
|
---|
172 | </servlet-class>
|
---|
173 | <init-param>
|
---|
174 | <param-name>SOAPMonitorPort</param-name>
|
---|
175 | <param-value>5001</param-value>
|
---|
176 | </init-param>
|
---|
177 | <load-on-startup>100</load-on-startup>
|
---|
178 | </servlet>
|
---|
179 | <servlet>
|
---|
180 | <servlet-name>oaiserver</servlet-name>
|
---|
181 | <description>an oai servlet</description>
|
---|
182 | <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
|
---|
183 | <init-param>
|
---|
184 | <param-name>default_lang</param-name>
|
---|
185 | <param-value>en</param-value>
|
---|
186 | </init-param>
|
---|
187 | <init-param>
|
---|
188 | <param-name>site_name</param-name>
|
---|
189 | <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
|
---|
190 | <param-value>localsite</param-value>
|
---|
191 | </init-param>
|
---|
192 | </servlet>
|
---|
193 | <!--
|
---|
194 | -->
|
---|
195 | <!-- Define mappings that are used by the servlet container to
|
---|
196 | translate a particular request URI (context-relative) to a
|
---|
197 | particular servlet. The examples below correspond to the
|
---|
198 | servlet descriptions above. Thus, a request URI like:
|
---|
199 |
|
---|
200 | http://localhost:8080/{contextpath}/graph
|
---|
201 |
|
---|
202 | will be mapped to the "graph" servlet, while a request like:
|
---|
203 |
|
---|
204 | http://localhost:8080/{contextpath}/saveCustomer.do
|
---|
205 |
|
---|
206 | will be mapped to the "controller" servlet.
|
---|
207 |
|
---|
208 | Note: context path is determined by the servlet container -
|
---|
209 | in Tomcat, specified in server.xml -kjdon
|
---|
210 | You may define any number of servlet mappings, including zero.
|
---|
211 | It is also legal to define more than one mapping for the same
|
---|
212 | servlet, if you wish to.
|
---|
213 | -->
|
---|
214 | <!--
|
---|
215 |
|
---|
216 | <servlet-mapping>
|
---|
217 | <servlet-name>controller</servlet-name>
|
---|
218 | <url-pattern>*.do</url-pattern>
|
---|
219 | </servlet-mapping>
|
---|
220 |
|
---|
221 | <servlet-mapping>
|
---|
222 | <servlet-name>graph</servlet-name>
|
---|
223 | <url-pattern>/graph</url-pattern>
|
---|
224 | </servlet-mapping>
|
---|
225 | -->
|
---|
226 |
|
---|
227 | <!--There is no need for this mapping, I think -->
|
---|
228 | <servlet-mapping>
|
---|
229 | <servlet-name>oaiserver</servlet-name>
|
---|
230 | <url-pattern>/oaiserver</url-pattern>
|
---|
231 | </servlet-mapping>
|
---|
232 |
|
---|
233 | <servlet-mapping>
|
---|
234 | <servlet-name>tester</servlet-name>
|
---|
235 | <url-pattern>/testing</url-pattern>
|
---|
236 | </servlet-mapping>
|
---|
237 |
|
---|
238 | <servlet-mapping>
|
---|
239 | <servlet-name>library</servlet-name>
|
---|
240 | <url-pattern>/library</url-pattern>
|
---|
241 | </servlet-mapping>
|
---|
242 |
|
---|
243 | <servlet-mapping>
|
---|
244 | <servlet-name>gateway</servlet-name>
|
---|
245 | <url-pattern>/gateway</url-pattern>
|
---|
246 | </servlet-mapping>
|
---|
247 |
|
---|
248 | <servlet-mapping>
|
---|
249 | <servlet-name>classic-library</servlet-name>
|
---|
250 | <url-pattern>/classic</url-pattern>
|
---|
251 | </servlet-mapping>
|
---|
252 |
|
---|
253 | <!-- axis mappings -->
|
---|
254 | <servlet-mapping>
|
---|
255 | <servlet-name>AxisServlet</servlet-name>
|
---|
256 | <url-pattern>/servlet/AxisServlet</url-pattern>
|
---|
257 | </servlet-mapping>
|
---|
258 |
|
---|
259 | <servlet-mapping>
|
---|
260 | <servlet-name>AxisServlet</servlet-name>
|
---|
261 | <url-pattern>*.jws</url-pattern>
|
---|
262 | </servlet-mapping>
|
---|
263 |
|
---|
264 | <servlet-mapping>
|
---|
265 | <servlet-name>AxisServlet</servlet-name>
|
---|
266 | <url-pattern>/services/*</url-pattern>
|
---|
267 | </servlet-mapping>
|
---|
268 |
|
---|
269 | <!-- uncomment this if you want to use the SOAPMonitorService. You will also
|
---|
270 | need to copy the SOAPMonitorApplet*.class files from
|
---|
271 | gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
|
---|
272 | comms/soap/axis/docs/install.html Appendix for details about how to use this -->
|
---|
273 | <!--
|
---|
274 | <servlet-mapping>
|
---|
275 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
276 | <url-pattern>/SOAPMonitor</url-pattern>
|
---|
277 | </servlet-mapping>
|
---|
278 | -->
|
---|
279 | <!-- uncomment this if you want the admin servlet -->
|
---|
280 | <!--
|
---|
281 | <servlet-mapping>
|
---|
282 | <servlet-name>AdminServlet</servlet-name>
|
---|
283 | <url-pattern>/servlet/AdminServlet</url-pattern>
|
---|
284 | </servlet-mapping>
|
---|
285 | -->
|
---|
286 |
|
---|
287 | <!-- Define the default session timeout for your application,
|
---|
288 | in minutes. From a servlet or JSP page, you can modify
|
---|
289 | the timeout for a particular session dynamically by using
|
---|
290 | HttpSession.getMaxInactiveInterval(). -->
|
---|
291 |
|
---|
292 | <session-config>
|
---|
293 | <session-timeout>30</session-timeout> <!-- 30 minutes -->
|
---|
294 | </session-config>
|
---|
295 |
|
---|
296 | <!-- axis mime-mappings -->
|
---|
297 | <mime-mapping>
|
---|
298 | <extension>wsdl</extension>
|
---|
299 | <mime-type>text/xml</mime-type>
|
---|
300 | </mime-mapping>
|
---|
301 |
|
---|
302 | <mime-mapping>
|
---|
303 | <extension>xsd</extension>
|
---|
304 | <mime-type>text/xml</mime-type>
|
---|
305 | </mime-mapping>
|
---|
306 |
|
---|
307 | </web-app>
|
---|
308 |
|
---|
309 |
|
---|