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