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