[10287] | 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 | -->
|
---|
[24007] | 10 | <web-app>
|
---|
[15067] | 11 |
|
---|
[10287] | 12 | <!-- General description of your web application -->
|
---|
[15067] | 13 |
|
---|
| 14 | <display-name>GSDL3</display-name>
|
---|
[10287] | 15 | <description>
|
---|
[15067] | 16 | Greenstone digital library version 3.
|
---|
| 17 | </description>
|
---|
| 18 |
|
---|
| 19 |
|
---|
[10287] | 20 | <!-- Context initialization parameters that define shared
|
---|
| 21 | String constants used within your application, which
|
---|
| 22 | can be customized by the system administrator who is
|
---|
| 23 | installing your application. The values actually
|
---|
| 24 | assigned to these parameters can be retrieved in a
|
---|
| 25 | servlet or JSP page by calling:
|
---|
| 26 |
|
---|
| 27 | String value =
|
---|
| 28 | getServletContext().getInitParameter("name");
|
---|
| 29 |
|
---|
| 30 | where "name" matches the <param-name> element of
|
---|
| 31 | one of these initialization parameters.
|
---|
| 32 |
|
---|
| 33 | You can define any number of context initialization
|
---|
| 34 | parameters, including zero.
|
---|
| 35 | -->
|
---|
| 36 |
|
---|
| 37 | <context-param>
|
---|
| 38 | <param-name>webmaster</param-name>
|
---|
| 39 | <param-value>[email protected]</param-value>
|
---|
| 40 | <description>
|
---|
| 41 | The EMAIL address of the administrator to whom questions
|
---|
| 42 | and comments about this application should be addressed.
|
---|
| 43 | </description>
|
---|
| 44 | </context-param>
|
---|
| 45 |
|
---|
[15067] | 46 |
|
---|
[10287] | 47 | <!-- Servlet definitions for the servlets that make up
|
---|
| 48 | your web application, including initialization
|
---|
| 49 | parameters. With Tomcat, you can also send requests
|
---|
| 50 | to servlets not listed here with a request like this:
|
---|
| 51 |
|
---|
| 52 | http://localhost:8080/{context-path}/servlet/{classname}
|
---|
| 53 |
|
---|
| 54 | but this usage is not guaranteed to be portable. It also
|
---|
| 55 | makes relative references to images and other resources
|
---|
| 56 | required by your servlet more complicated, so defining
|
---|
| 57 | all of your servlets (and defining a mapping to them with
|
---|
| 58 | a servlet-mapping element) is recommended.
|
---|
| 59 |
|
---|
| 60 | Servlet initialization parameters can be retrieved in a
|
---|
| 61 | servlet or JSP page by calling:
|
---|
| 62 |
|
---|
| 63 | String value =
|
---|
| 64 | getServletConfig().getInitParameter("name");
|
---|
| 65 |
|
---|
| 66 | where "name" matches the <param-name> element of
|
---|
| 67 | one of these initialization parameters.
|
---|
| 68 |
|
---|
| 69 | You can define any number of servlets, including zero.
|
---|
| 70 | -->
|
---|
[15067] | 71 |
|
---|
[10287] | 72 | <servlet>
|
---|
[15067] | 73 | <servlet-name>tester</servlet-name>
|
---|
| 74 | <description>a test servlet</description>
|
---|
| 75 | <servlet-class>TestServlet</servlet-class>
|
---|
[24007] | 76 | </servlet>
|
---|
| 77 |
|
---|
| 78 | <!-- For client side text fetching -->
|
---|
| 79 | <servlet>
|
---|
| 80 | <servlet-name>grabtext</servlet-name>
|
---|
| 81 | <description>Grabs text for client-side display with minimal overhead.</description>
|
---|
| 82 | <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class>
|
---|
[15067] | 83 | </servlet>
|
---|
[16319] | 84 |
|
---|
| 85 |
|
---|
[16317] | 86 | <servlet>
|
---|
[19997] | 87 | <servlet-name>dev</servlet-name>
|
---|
[16317] | 88 | <description>A new skin engine still in development based on the standard gsdl3 library program</description>
|
---|
| 89 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
| 90 | <init-param>
|
---|
| 91 | <param-name>library_name</param-name>
|
---|
| 92 | <param-value>dev</param-value>
|
---|
| 93 | </init-param>
|
---|
| 94 | <init-param>
|
---|
| 95 | <param-name>site_name</param-name>
|
---|
| 96 | <param-value>localsite</param-value>
|
---|
| 97 | </init-param>
|
---|
| 98 | <init-param>
|
---|
| 99 | <param-name>interface_name</param-name>
|
---|
[19997] | 100 | <param-value>oran</param-value>
|
---|
[16317] | 101 | </init-param>
|
---|
| 102 | <init-param>
|
---|
| 103 | <param-name>receptionist_class</param-name>
|
---|
[22569] | 104 | <param-value>DefaultReceptionist</param-value>
|
---|
[16317] | 105 | </init-param>
|
---|
| 106 | <init-param>
|
---|
| 107 | <param-name>default_lang</param-name>
|
---|
| 108 | <param-value>en</param-value>
|
---|
| 109 | </init-param>
|
---|
| 110 | </servlet>
|
---|
[22569] | 111 |
|
---|
[24007] | 112 | <servlet>
|
---|
| 113 | <servlet-name>Format</servlet-name>
|
---|
| 114 | <description>A new skin engine still in development based on the standard gsdl3 library program</description>
|
---|
| 115 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
| 116 | <init-param>
|
---|
| 117 | <param-name>library_name</param-name>
|
---|
| 118 | <param-value>format</param-value>
|
---|
| 119 | </init-param>
|
---|
| 120 | <init-param>
|
---|
| 121 | <param-name>site_name</param-name>
|
---|
| 122 | <param-value>localsite</param-value>
|
---|
| 123 | </init-param>
|
---|
| 124 | <init-param>
|
---|
| 125 | <param-name>interface_name</param-name>
|
---|
| 126 | <param-value>oran</param-value>
|
---|
| 127 | </init-param>
|
---|
| 128 | <init-param>
|
---|
| 129 | <param-name>receptionist_class</param-name>
|
---|
| 130 | <param-value>FormatReceptionist</param-value>
|
---|
| 131 | </init-param>
|
---|
| 132 | <init-param>
|
---|
| 133 | <param-name>default_lang</param-name>
|
---|
| 134 | <param-value>en</param-value>
|
---|
| 135 | </init-param>
|
---|
| 136 | </servlet>
|
---|
[22569] | 137 |
|
---|
[15067] | 138 |
|
---|
| 139 | <servlet>
|
---|
[16858] | 140 | <servlet-name>gs2-library</servlet-name>
|
---|
[16863] | 141 | <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
|
---|
[15067] | 142 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
[10287] | 143 | <init-param>
|
---|
| 144 | <param-name>library_name</param-name>
|
---|
[15067] | 145 | <param-value>library</param-value>
|
---|
[10287] | 146 | </init-param>
|
---|
| 147 | <init-param>
|
---|
| 148 | <param-name>site_name</param-name>
|
---|
[15067] | 149 | <param-value>localsite</param-value>
|
---|
[10287] | 150 | </init-param>
|
---|
| 151 | <init-param>
|
---|
| 152 | <param-name>interface_name</param-name>
|
---|
[16863] | 153 | <param-value>gs2</param-value>
|
---|
[10287] | 154 | </init-param>
|
---|
| 155 | <init-param>
|
---|
| 156 | <param-name>default_lang</param-name>
|
---|
| 157 | <param-value>en</param-value>
|
---|
| 158 | </init-param>
|
---|
[14400] | 159 | <init-param>
|
---|
| 160 | <param-name>session_expiration</param-name>
|
---|
| 161 | <param-value>1800</param-value>
|
---|
| 162 | </init-param>
|
---|
[16701] | 163 | <init-param>
|
---|
| 164 | <param-name>params_class</param-name>
|
---|
[16858] | 165 | <param-value>GS2Params</param-value>
|
---|
[16701] | 166 | </init-param>
|
---|
[15067] | 167 | </servlet>
|
---|
[16319] | 168 |
|
---|
[22676] | 169 | <servlet>
|
---|
| 170 | <servlet-name>nzdl-library</servlet-name>
|
---|
| 171 | <description>gsdl3 library program</description>
|
---|
| 172 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
| 173 | <init-param>
|
---|
| 174 | <param-name>library_name</param-name>
|
---|
| 175 | <param-value>nzdl</param-value>
|
---|
| 176 | </init-param>
|
---|
| 177 | <init-param>
|
---|
| 178 | <param-name>site_name</param-name>
|
---|
| 179 | <param-value>nzdl</param-value>
|
---|
| 180 | </init-param>
|
---|
| 181 | <init-param>
|
---|
| 182 | <param-name>interface_name</param-name>
|
---|
| 183 | <param-value>nzdl</param-value>
|
---|
| 184 | </init-param>
|
---|
| 185 | <init-param>
|
---|
| 186 | <param-name>default_lang</param-name>
|
---|
| 187 | <param-value>en</param-value>
|
---|
| 188 | </init-param>
|
---|
| 189 | <init-param>
|
---|
| 190 | <param-name>params_class</param-name>
|
---|
| 191 | <param-value>NZDLParams</param-value>
|
---|
| 192 | </init-param>
|
---|
| 193 | <init-param>
|
---|
| 194 | <param-name>session_expiration</param-name>
|
---|
| 195 | <param-value>600</param-value>
|
---|
| 196 | </init-param>
|
---|
| 197 | </servlet>
|
---|
| 198 |
|
---|
[15067] | 199 | <servlet>
|
---|
| 200 | <servlet-name>gateway</servlet-name>
|
---|
| 201 | <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
|
---|
| 202 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
| 203 | <init-param>
|
---|
| 204 | <param-name>library_name</param-name>
|
---|
| 205 | <param-value>gateway</param-value>
|
---|
| 206 | </init-param>
|
---|
| 207 | <init-param>
|
---|
| 208 | <param-name>site_name</param-name>
|
---|
| 209 | <param-value>gateway</param-value>
|
---|
| 210 | </init-param>
|
---|
| 211 | <init-param>
|
---|
| 212 | <param-name>interface_name</param-name>
|
---|
| 213 | <param-value>default</param-value>
|
---|
| 214 | </init-param>
|
---|
| 215 | <init-param>
|
---|
| 216 | <param-name>default_lang</param-name>
|
---|
| 217 | <param-value>en</param-value>
|
---|
| 218 | </init-param>
|
---|
| 219 | </servlet>
|
---|
| 220 |
|
---|
| 221 | <servlet>
|
---|
[16858] | 222 | <servlet-name>gs3-library</servlet-name>
|
---|
[16701] | 223 | <description>standard gsdl3 library program: uses localsite and the default interface</description>
|
---|
[15067] | 224 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
| 225 | <init-param>
|
---|
| 226 | <param-name>library_name</param-name>
|
---|
[16701] | 227 | <param-value>gs3library</param-value>
|
---|
[15067] | 228 | </init-param>
|
---|
| 229 | <init-param>
|
---|
| 230 | <param-name>site_name</param-name>
|
---|
| 231 | <param-value>localsite</param-value>
|
---|
| 232 | </init-param>
|
---|
| 233 | <init-param>
|
---|
| 234 | <param-name>interface_name</param-name>
|
---|
[16701] | 235 | <param-value>default</param-value>
|
---|
[15067] | 236 | </init-param>
|
---|
| 237 | <init-param>
|
---|
| 238 | <param-name>default_lang</param-name>
|
---|
| 239 | <param-value>en</param-value>
|
---|
| 240 | </init-param>
|
---|
[24007] | 241 | <init-param>
|
---|
| 242 | <param-name>allow_client_side_xslt</param-name>
|
---|
| 243 | <param-value>true</param-value>
|
---|
| 244 | </init-param>
|
---|
[15067] | 245 | </servlet>
|
---|
[19997] | 246 |
|
---|
[15067] | 247 | <!-- axis servlets -->
|
---|
[10287] | 248 | <servlet>
|
---|
| 249 | <servlet-name>AxisServlet</servlet-name>
|
---|
| 250 | <display-name>Apache-Axis Servlet</display-name>
|
---|
| 251 | <servlet-class>
|
---|
| 252 | org.apache.axis.transport.http.AxisServlet
|
---|
| 253 | </servlet-class>
|
---|
| 254 | </servlet>
|
---|
[15067] | 255 |
|
---|
[10287] | 256 | <servlet>
|
---|
| 257 | <servlet-name>AdminServlet</servlet-name>
|
---|
| 258 | <display-name>Axis Admin Servlet</display-name>
|
---|
| 259 | <servlet-class>
|
---|
| 260 | org.apache.axis.transport.http.AdminServlet
|
---|
| 261 | </servlet-class>
|
---|
| 262 | <load-on-startup>100</load-on-startup>
|
---|
| 263 | </servlet>
|
---|
[15067] | 264 |
|
---|
[10287] | 265 | <servlet>
|
---|
| 266 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
| 267 | <display-name>SOAPMonitorService</display-name>
|
---|
| 268 | <servlet-class>
|
---|
| 269 | org.apache.axis.monitor.SOAPMonitorService
|
---|
| 270 | </servlet-class>
|
---|
| 271 | <init-param>
|
---|
| 272 | <param-name>SOAPMonitorPort</param-name>
|
---|
| 273 | <param-value>5001</param-value>
|
---|
| 274 | </init-param>
|
---|
| 275 | <load-on-startup>100</load-on-startup>
|
---|
| 276 | </servlet>
|
---|
[15067] | 277 | <servlet>
|
---|
| 278 | <servlet-name>oaiserver</servlet-name>
|
---|
| 279 | <description>an oai servlet</description>
|
---|
| 280 | <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
|
---|
| 281 | <init-param>
|
---|
| 282 | <param-name>default_lang</param-name>
|
---|
| 283 | <param-value>en</param-value>
|
---|
| 284 | </init-param>
|
---|
| 285 | <init-param>
|
---|
| 286 | <param-name>site_name</param-name>
|
---|
| 287 | <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
|
---|
| 288 | <param-value>localsite</param-value>
|
---|
| 289 | </init-param>
|
---|
| 290 | </servlet>
|
---|
[19997] | 291 |
|
---|
[19998] | 292 | <!--
|
---|
[19997] | 293 | <filter>
|
---|
| 294 | <filter-name>UrlRewriteFilter</filter-name>
|
---|
| 295 | <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
|
---|
| 296 | </filter>
|
---|
| 297 |
|
---|
| 298 | <filter-mapping>
|
---|
| 299 | <filter-name>UrlRewriteFilter</filter-name>
|
---|
| 300 | <url-pattern>/*</url-pattern>
|
---|
| 301 | </filter-mapping>
|
---|
[19998] | 302 | -->
|
---|
[19997] | 303 |
|
---|
[15067] | 304 | <!-- Define mappings that are used by the servlet container to
|
---|
| 305 | translate a particular request URI (context-relative) to a
|
---|
| 306 | particular servlet. The examples below correspond to the
|
---|
| 307 | servlet descriptions above. Thus, a request URI like:
|
---|
| 308 |
|
---|
| 309 | http://localhost:8080/{contextpath}/graph
|
---|
| 310 |
|
---|
| 311 | will be mapped to the "graph" servlet, while a request like:
|
---|
| 312 |
|
---|
| 313 | http://localhost:8080/{contextpath}/saveCustomer.do
|
---|
| 314 |
|
---|
| 315 | will be mapped to the "controller" servlet.
|
---|
| 316 |
|
---|
[19997] | 317 | Note: context path is determined by the servlet container -
|
---|
| 318 | in Tomcat, specified in server.xml -kjdon
|
---|
[15067] | 319 | You may define any number of servlet mappings, including zero.
|
---|
| 320 | It is also legal to define more than one mapping for the same
|
---|
| 321 | servlet, if you wish to.
|
---|
| 322 | -->
|
---|
| 323 | <!--
|
---|
| 324 |
|
---|
| 325 | <servlet-mapping>
|
---|
| 326 | <servlet-name>controller</servlet-name>
|
---|
| 327 | <url-pattern>*.do</url-pattern>
|
---|
| 328 | </servlet-mapping>
|
---|
| 329 |
|
---|
| 330 | <servlet-mapping>
|
---|
| 331 | <servlet-name>graph</servlet-name>
|
---|
| 332 | <url-pattern>/graph</url-pattern>
|
---|
| 333 | </servlet-mapping>
|
---|
| 334 | -->
|
---|
| 335 |
|
---|
| 336 |
|
---|
[16319] | 337 | <!--There is no need for this mapping, I think -->
|
---|
[15067] | 338 | <servlet-mapping>
|
---|
| 339 | <servlet-name>oaiserver</servlet-name>
|
---|
| 340 | <url-pattern>/oaiserver</url-pattern>
|
---|
| 341 | </servlet-mapping>
|
---|
| 342 |
|
---|
[22676] | 343 | <servlet-mapping>
|
---|
| 344 | <servlet-name>nzdl-library</servlet-name>
|
---|
| 345 | <url-pattern>/nzdl</url-pattern>
|
---|
| 346 | </servlet-mapping>
|
---|
[10287] | 347 | <servlet-mapping>
|
---|
[15067] | 348 | <servlet-name>tester</servlet-name>
|
---|
| 349 | <url-pattern>/testing</url-pattern>
|
---|
| 350 | </servlet-mapping>
|
---|
| 351 |
|
---|
| 352 | <servlet-mapping>
|
---|
[16319] | 353 | <servlet-name>dev</servlet-name>
|
---|
| 354 | <url-pattern>/dev</url-pattern>
|
---|
| 355 | </servlet-mapping>
|
---|
[22569] | 356 |
|
---|
[24007] | 357 | <servlet-mapping>
|
---|
| 358 | <servlet-name>Format</servlet-name>
|
---|
| 359 | <url-pattern>/format</url-pattern>
|
---|
| 360 | </servlet-mapping>
|
---|
[22569] | 361 |
|
---|
[16319] | 362 | <servlet-mapping>
|
---|
[16858] | 363 | <servlet-name>gs2-library</servlet-name>
|
---|
[15067] | 364 | <url-pattern>/library</url-pattern>
|
---|
| 365 | </servlet-mapping>
|
---|
| 366 |
|
---|
| 367 | <servlet-mapping>
|
---|
| 368 | <servlet-name>gateway</servlet-name>
|
---|
| 369 | <url-pattern>/gateway</url-pattern>
|
---|
| 370 | </servlet-mapping>
|
---|
| 371 |
|
---|
| 372 | <servlet-mapping>
|
---|
[16858] | 373 | <servlet-name>gs3-library</servlet-name>
|
---|
[16701] | 374 | <url-pattern>/gs3library</url-pattern>
|
---|
[15067] | 375 | </servlet-mapping>
|
---|
[19997] | 376 |
|
---|
[24007] | 377 | <servlet-mapping>
|
---|
| 378 | <servlet-name>grabtext</servlet-name>
|
---|
| 379 | <url-pattern>/grabtext</url-pattern>
|
---|
| 380 | </servlet-mapping>
|
---|
[15067] | 381 |
|
---|
| 382 | <!-- axis mappings -->
|
---|
| 383 | <servlet-mapping>
|
---|
[10287] | 384 | <servlet-name>AxisServlet</servlet-name>
|
---|
| 385 | <url-pattern>/servlet/AxisServlet</url-pattern>
|
---|
| 386 | </servlet-mapping>
|
---|
[15067] | 387 |
|
---|
[10287] | 388 | <servlet-mapping>
|
---|
| 389 | <servlet-name>AxisServlet</servlet-name>
|
---|
| 390 | <url-pattern>*.jws</url-pattern>
|
---|
| 391 | </servlet-mapping>
|
---|
[15067] | 392 |
|
---|
[10287] | 393 | <servlet-mapping>
|
---|
| 394 | <servlet-name>AxisServlet</servlet-name>
|
---|
| 395 | <url-pattern>/services/*</url-pattern>
|
---|
| 396 | </servlet-mapping>
|
---|
[15067] | 397 |
|
---|
| 398 | <!-- uncomment this if you want to use the SOAPMonitorService. You will also
|
---|
| 399 | need to copy the SOAPMonitorApplet*.class files from
|
---|
| 400 | gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
|
---|
| 401 | comms/soap/axis/docs/install.html Appendix for details about how to use this -->
|
---|
| 402 | <!--
|
---|
[10287] | 403 | <servlet-mapping>
|
---|
| 404 | <servlet-name>SOAPMonitorService</servlet-name>
|
---|
| 405 | <url-pattern>/SOAPMonitor</url-pattern>
|
---|
| 406 | </servlet-mapping>
|
---|
[15067] | 407 | -->
|
---|
| 408 | <!-- uncomment this if you want the admin servlet -->
|
---|
| 409 | <!--
|
---|
[10287] | 410 | <servlet-mapping>
|
---|
[15067] | 411 | <servlet-name>AdminServlet</servlet-name>
|
---|
| 412 | <url-pattern>/servlet/AdminServlet</url-pattern>
|
---|
[10287] | 413 | </servlet-mapping>
|
---|
[15067] | 414 | -->
|
---|
| 415 |
|
---|
[10287] | 416 | <!-- Define the default session timeout for your application,
|
---|
| 417 | in minutes. From a servlet or JSP page, you can modify
|
---|
| 418 | the timeout for a particular session dynamically by using
|
---|
| 419 | HttpSession.getMaxInactiveInterval(). -->
|
---|
| 420 |
|
---|
| 421 | <session-config>
|
---|
| 422 | <session-timeout>30</session-timeout> <!-- 30 minutes -->
|
---|
| 423 | </session-config>
|
---|
| 424 |
|
---|
| 425 | <!-- axis mime-mappings -->
|
---|
| 426 | <mime-mapping>
|
---|
| 427 | <extension>wsdl</extension>
|
---|
| 428 | <mime-type>text/xml</mime-type>
|
---|
| 429 | </mime-mapping>
|
---|
| 430 |
|
---|
| 431 | <mime-mapping>
|
---|
| 432 | <extension>xsd</extension>
|
---|
| 433 | <mime-type>text/xml</mime-type>
|
---|
[24007] | 434 | </mime-mapping>
|
---|
| 435 |
|
---|
[10287] | 436 | </web-app>
|
---|
| 437 |
|
---|
| 438 |
|
---|