Changeset 25624

Show
Ignore:
Timestamp:
20.05.2012 19:50:30 (7 years ago)
Author:
davidb
Message:

Updated version that works with latest versoin of Greenstone3 (after all Sam's restful changes etc.). Note this version of the file has some servlet sections omitted (e.g. oai stuff) as this does not play nicely with i-jetty, causing an error

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/i-jetty/trunk/src/resources/web.xml

    r23969 r25624  
    1 <?xml version="1.0" encoding="ISO-8859-1"?> 
    2 <web-app 
    3     xmlns="http://java.sun.com/xml/ns/javaee"  
    4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    5     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"  
    6     version="3.0">  
    7   <!-- General description of your web application --> 
    8    
    9   <display-name>GSDL3</display-name> 
    10   <description> 
    11     Greenstone digital library version 3. 
    12   </description> 
    13      
    14   <context-param> 
    15     <param-name>webmaster</param-name> 
    16     <param-value>greenstone3@list.scms.waikato.ac.nz</param-value> 
    17     <description> 
    18       The EMAIL address of the administrator to whom questions 
    19       and comments about this application should be addressed. 
    20     </description> 
    21   </context-param> 
    22    
    23    
    24    
    25    <servlet> 
    26     <servlet-name>dev</servlet-name> 
    27     <description>A new skin engine still in development based on the standard gsdl3 library program</description> 
    28     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    29     <init-param> 
    30       <param-name>library_name</param-name> 
    31       <param-value>dev</param-value> 
    32     </init-param> 
    33     <init-param> 
    34       <param-name>site_name</param-name> 
    35       <param-value>localsite</param-value> 
    36     </init-param> 
    37     <init-param> 
    38       <param-name>interface_name</param-name> 
    39       <param-value>oran</param-value> 
    40     </init-param> 
    41     <init-param> 
    42       <param-name>receptionist_class</param-name> 
    43       <param-value>DefaultReceptionist</param-value> 
    44     </init-param> 
    45     <init-param> 
    46       <param-name>default_lang</param-name> 
    47       <param-value>en</param-value> 
    48     </init-param> 
     1<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> 
     2<!-- this is based on a sample web.xml file provided by  
     3http://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>greenstone3@list.scms.waikato.ac.nz</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> 
    49171  </servlet> 
    50172 
    51   <servlet> 
    52     <servlet-name>Format</servlet-name> 
    53     <description>A new skin engine still in development based on the standard gsdl3 library program</description> 
    54     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    55     <init-param> 
    56       <param-name>library_name</param-name> 
    57       <param-value>format</param-value> 
    58     </init-param> 
    59     <init-param> 
    60       <param-name>site_name</param-name> 
    61       <param-value>localsite</param-value> 
    62     </init-param> 
    63     <init-param> 
    64       <param-name>interface_name</param-name> 
    65       <param-value>oran</param-value> 
    66     </init-param> 
    67     <init-param> 
    68       <param-name>receptionist_class</param-name> 
    69       <param-value>FormatReceptionist</param-value> 
    70     </init-param> 
    71     <init-param> 
    72       <param-name>default_lang</param-name> 
    73       <param-value>en</param-value> 
    74     </init-param> 
    75   </servlet> 
    76  
    77    
    78   <servlet> 
    79     <servlet-name>gs2library</servlet-name> 
    80     <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description> 
    81     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    82     <init-param> 
    83       <param-name>library_name</param-name> 
    84       <param-value>library</param-value> 
    85     </init-param> 
    86     <init-param> 
    87       <param-name>site_name</param-name> 
    88       <param-value>localsite</param-value> 
    89     </init-param> 
    90     <init-param> 
    91       <param-name>interface_name</param-name> 
    92       <param-value>gs2</param-value> 
    93     </init-param> 
    94     <init-param> 
    95       <param-name>default_lang</param-name> 
    96       <param-value>en</param-value> 
    97     </init-param> 
    98     <init-param> 
    99       <param-name>session_expiration</param-name> 
    100       <param-value>1800</param-value> 
    101     </init-param> 
    102     <init-param> 
    103       <param-name>params_class</param-name> 
    104       <param-value>GS2Params</param-value> 
    105     </init-param> 
    106   </servlet> 
    107    
    108   <servlet> 
    109     <servlet-name>nzdl-library</servlet-name> 
    110     <description>gsdl3 library program</description> 
    111     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    112     <init-param> 
    113       <param-name>library_name</param-name> 
    114       <param-value>nzdl</param-value> 
    115     </init-param> 
    116     <init-param> 
    117       <param-name>site_name</param-name> 
    118       <param-value>nzdl</param-value> 
    119     </init-param> 
    120     <init-param> 
    121       <param-name>interface_name</param-name> 
    122       <param-value>nzdl</param-value> 
    123     </init-param> 
    124     <init-param> 
    125       <param-name>default_lang</param-name> 
    126       <param-value>en</param-value> 
    127     </init-param> 
    128     <init-param> 
    129       <param-name>params_class</param-name> 
    130       <param-value>NZDLParams</param-value> 
    131     </init-param> 
    132     <init-param> 
    133       <param-name>session_expiration</param-name> 
    134       <param-value>600</param-value> 
    135     </init-param> 
    136   </servlet> 
    137  
    138   <servlet> 
    139     <servlet-name>gateway</servlet-name> 
    140     <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description> 
    141     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    142     <init-param> 
    143       <param-name>library_name</param-name> 
    144       <param-value>gateway</param-value> 
    145     </init-param> 
    146     <init-param> 
    147       <param-name>site_name</param-name> 
    148       <param-value>gateway</param-value> 
    149     </init-param> 
    150     <init-param> 
    151       <param-name>interface_name</param-name> 
    152       <param-value>default</param-value> 
    153     </init-param> 
    154     <init-param> 
    155       <param-name>default_lang</param-name> 
    156       <param-value>en</param-value> 
    157     </init-param> 
    158   </servlet> 
    159    
    160   <servlet> 
    161     <servlet-name>gs3library</servlet-name> 
    162     <description>standard gsdl3 library program: uses localsite and the default interface</description> 
    163     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    164     <init-param> 
    165       <param-name>library_name</param-name> 
    166       <param-value>gs3library</param-value> 
    167     </init-param> 
    168     <init-param> 
    169       <param-name>site_name</param-name> 
    170       <param-value>localsite</param-value> 
    171     </init-param> 
    172     <init-param> 
    173       <param-name>interface_name</param-name> 
    174       <param-value>default</param-value> 
    175     </init-param> 
    176     <init-param> 
    177       <param-name>default_lang</param-name> 
    178       <param-value>en</param-value> 
    179     </init-param> 
    180     <init-param> 
    181      <param-name>allow_client_side_xslt</param-name> 
    182      <param-value>true</param-value> 
    183     </init-param> 
    184   </servlet> 
    185  
    186   <!-- For client side text fetching --> 
    187   <servlet> 
    188     <servlet-name>grabtext</servlet-name> 
    189     <description>Grabs text for client-side display with minimal overhead.</description> 
    190     <servlet-class>org.greenstone.gsdl3.ClientSideServlet</servlet-class> 
    191   </servlet> 
    192    
    193  
     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 --> 
    194222<!-- 
    195 <filter> 
    196   <filter-name>UrlRewriteFilter</filter-name> 
    197   <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> 
    198 </filter> 
    199  
    200 <filter-mapping> 
    201   <filter-name>UrlRewriteFilter</filter-name> 
    202   <url-pattern>/*</url-pattern> 
    203 </filter-mapping> 
     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> 
    204252--> 
     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 
    205265  
    206266    <!-- Define mappings that are used by the servlet container to 
     
    217277         will be mapped to the "controller" servlet. 
    218278 
    219  Note: context path is determined by the servlet container -  
    220  in Tomcat, specified in server.xml -kjdon 
     279        Note: context path is determined by the servlet container -  
     280        in Tomcat, specified in server.xml -kjdon 
     281         
    221282         You may define any number of servlet mappings, including zero. 
    222283         It is also legal to define more than one mapping for the same 
     
    235296    </servlet-mapping> 
    236297    --> 
    237    
    238   <servlet-mapping> 
    239     <servlet-name>dev</servlet-name> 
    240     <url-pattern>/dev</url-pattern> 
    241   </servlet-mapping> 
    242  
    243   <servlet-mapping> 
    244     <servlet-name>Format</servlet-name> 
    245     <url-pattern>/format</url-pattern> 
    246   </servlet-mapping> 
    247  
    248   <servlet-mapping> 
    249     <servlet-name>gs2library</servlet-name> 
    250     <url-pattern>/library</url-pattern> 
    251   </servlet-mapping> 
    252    
    253    
    254   <servlet-mapping> 
    255     <servlet-name>gs3library</servlet-name> 
    256     <url-pattern>/gs3library</url-pattern> 
    257   </servlet-mapping> 
    258  
    259   <servlet-mapping> 
    260     <servlet-name>grabtext</servlet-name> 
    261     <url-pattern>/grabtext</url-pattern> 
    262   </servlet-mapping> 
     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> 
    263334   
    264335 
     
    287358 
    288359  <session-config> 
    289     <session-timeout>30</session-timeout>    <!-- 30 minutes --> 
     360    <session-timeout>240</session-timeout>    <!-- 4 hours --> 
    290361  </session-config> 
    291362 
     
    302373 
    303374</web-app> 
    304  
    305