Attachment 'web.xml'

Download

   1 <?xml version="1.0" encoding="UTF-8"?>
   2 
   3 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
   4 <web-app>
   5     <display-name>Jackrabbit JCR Server</display-name>
   6 
   7     <!-- ====================================================================== -->
   8     <!-- L O G G I N G   S E R V L E T                                          -->
   9     <!-- ====================================================================== -->
  10     <servlet>
  11         <servlet-name>Logging</servlet-name>
  12         <description>The logging servlet configures the Log4J logging facility.</description>
  13         <servlet-class>org.apache.jackrabbit.j2ee.LoggingServlet</servlet-class>
  14 
  15         <init-param>
  16             <param-name>log4j-config</param-name>
  17             <param-value>/WEB-INF/log4j.xml</param-value>
  18             <description>initial log4j configuration</description>
  19         </init-param>
  20 
  21         <load-on-startup>1</load-on-startup>
  22     </servlet>
  23 
  24     <!-- ====================================================================== -->
  25     <!-- R E P O S I T O R Y   S T A R T U P  S E R V L E T                     -->
  26     <!-- ====================================================================== -->
  27     <!--  
  28     <servlet>
  29         <servlet-name>RepositoryStartup</servlet-name>
  30         <description>
  31             Repository servlet that starts the repository and registers it to JNDI ans RMI.
  32             If you already have the repository registered in this appservers JNDI context,
  33             or if its accessible via RMI, you do not need to use this servlet.
  34         </description>
  35         <servlet-class>org.apache.jackrabbit.j2ee.RepositoryStartupServlet</servlet-class>
  36 
  37         <init-param>
  38             <param-name>repository-config</param-name>
  39             <param-value>/WEB-INF/repository/repository.xml</param-value>
  40             <description>the repository config location</description>
  41         </init-param>
  42 
  43         <init-param>
  44             <param-name>repository-home</param-name>
  45             <param-value>jackrabbit/repository</param-value>
  46             <description>the repository home</description>
  47         </init-param>
  48 
  49         <init-param>
  50             <param-name>repository-name</param-name>
  51             <param-value>jackrabbit.repository</param-value>
  52             <description>Repository Name under which the repository is registered via JNDI/RMI</description>
  53         </init-param>
  54 	-->
  55         <!--
  56             the following 3 parameters deal with registering the repository to
  57             a RMI registry. if all parameters are omitted, the repository will
  58             not be registered.
  59         -->
  60         <!--
  61         <init-param>
  62             <param-name>rmi-port</param-name>
  63             <param-value>0</param-value>
  64             <description>
  65                 The RMI port for registering the repository in the RMI Registry.
  66                 If equals 0, the default port is used.
  67             </description>
  68         </init-param>
  69         <init-param>
  70             <param-name>rmi-host</param-name>
  71             <param-value>localhost</param-value>
  72             <description>
  73                 The RMI host for registering the repository in the RMI Registry.
  74                 If equals "" or missing, the default host is used.
  75             </description>
  76         </init-param>
  77         <init-param>
  78             <param-name>rmi-uri</param-name>
  79             <param-value></param-value>
  80             <description>
  81                 The RMI uri for registering the repository in the RMI Registry.
  82                 If missing, the uri is composed using the other rmi parameters
  83                 and will have the format: //{rmi-host}:{rmi-port}/{repository-name}
  84             </description>
  85         </init-param>
  86         -->
  87         <!--
  88             JNDI environment variables for creating the initial context
  89             (all init parameters starting with java.naming.* will be added to the initial context environment).
  90         -->
  91      <!-- 
  92         <init-param>
  93             <param-name>java.naming.provider.url</param-name>
  94             <param-value>http://www.apache.org/jackrabbit</param-value>
  95         </init-param>
  96         <init-param>
  97             <param-name>java.naming.factory.initial</param-name>
  98             <param-value>org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory</param-value>
  99         </init-param>
 100 
 101         <load-on-startup>2</load-on-startup>
 102     </servlet>
 103      -->
 104 
 105     <!-- ====================================================================== -->
 106     <!-- R E P O S I T O R Y   S E R V L E T                                    -->
 107     <!-- ====================================================================== -->
 108     <servlet>
 109         <servlet-name>Repository</servlet-name>
 110         <description>
 111             This servlet provides other servlets and jsps a common way to access
 112             the repository. The repository can be accessed via JNDI, RMI or Webdav.
 113         </description>
 114         <servlet-class>org.apache.jackrabbit.j2ee.RepositoryAccessServlet</servlet-class>
 115 
 116         <init-param>
 117             <param-name>repository-name</param-name>
 118             <param-value>java:jcr/local</param-value>
 119             <description>Repository Name that is used to retrieve it via JNDI</description>
 120         </init-param>
 121 
 122         <!--
 123         <init-param>
 124             <param-name>missing-auth-mapping</param-name>
 125             <param-value>anonymous:anonymous</param-value>
 126             <description>
 127                 Defines how a missing authorization header should be handled.
 128                 1) If this init-param is missing, a 401 response is generated.
 129                    This is suiteable for clients (eg. webdav clients) for which
 130                    sending a proper authorization header is not possible if the
 131                    server never sent a 401.
 132                 2) If this init-param is present with an empty value,
 133                    null-credentials are returned, thus forcing an null login
 134                    on the repository.
 135                 3) If this init-param has a 'user:password' value, the respective
 136                    simple credentials are generated.
 137             </description>
 138         </init-param>
 139         -->
 140 
 141         <!--
 142             JNDI environment variables for creating the initial context
 143             (all init parameters starting with java.naming.* will be added to the initial context environment).
 144 
 145         <init-param>
 146             <param-name>java.naming.provider.url</param-name>
 147             <param-value>http://www.apache.org/jackrabbit</param-value>
 148         </init-param>
 149         <init-param>
 150             <param-name>java.naming.factory.initial</param-name>
 151             <param-value>org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory</param-value>
 152         </init-param>
 153         -->
 154         <!--
 155             RMI url, if RMI remoting is needed
 156         -->
 157         <!--
 158         <init-param>
 159             <param-name>rmi-uri</param-name>
 160             <param-value>///jackrabbit.repository</param-value>
 161             <description>The URI for the RMI connection.</description>
 162         </init-param>
 163         -->
 164 
 165         <load-on-startup>3</load-on-startup>
 166     </servlet>
 167 
 168     <!-- ====================================================================== -->
 169     <!-- W E B D A V  S E R V L E T                                              -->
 170     <!-- ====================================================================== -->
 171     <servlet>
 172         <servlet-name>Webdav</servlet-name>
 173         <description>
 174             The webdav servlet that connects HTTP request to the repository.
 175         </description>
 176         <servlet-class>org.apache.jackrabbit.j2ee.SimpleWebdavServlet</servlet-class>
 177 
 178         <init-param>
 179             <param-name>resource-path-prefix</param-name>
 180             <param-value>/repository</param-value>
 181             <description>
 182                 defines the prefix for spooling resources out of the repository.
 183             </description>
 184         </init-param>
 185         <!--
 186             Optional parameter to define the value of the 'WWW-Authenticate' header
 187         -->
 188         <!--
 189         <init-param>
 190             <param-name>authenticate-header</param-name>
 191             <param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
 192             <description>
 193                 Defines the value of the 'WWW-Authenticate' header.
 194             </description>
 195         </init-param>
 196         -->
 197         <!--
 198             Parameter used to configure behaviour of webdav resources such as:
 199             - destinction between collections and non-collections
 200             - resource filtering
 201         -->
 202         <init-param>
 203             <param-name>resource-config</param-name>
 204             <param-value>/WEB-INF/config.xml</param-value>
 205             <description>
 206                 Defines various dav-resource configuration parameters.
 207             </description>
 208         </init-param>
 209         <load-on-startup>4</load-on-startup>
 210     </servlet>
 211 
 212     <!-- ====================================================================== -->
 213     <!-- W E B D A V  S E R V E R  S E R V L E T                                  -->
 214     <!-- ====================================================================== -->
 215     <servlet>
 216         <servlet-name>JCRWebdavServer</servlet-name>
 217         <description>
 218             The webdav servlet that connects HTTP request to the repository.
 219         </description>
 220         <servlet-class>org.apache.jackrabbit.j2ee.JCRWebdavServerServlet</servlet-class>
 221         <!--
 222             Optional parameter to define the value of the 'WWW-Authenticate' header
 223         -->
 224         <!--
 225         <init-param>
 226             <param-name>authenticate-header</param-name>
 227             <param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
 228             <description>
 229                 Defines the value of the 'WWW-Authenticate' header.
 230             </description>
 231         </init-param>
 232         -->
 233         <init-param>
 234             <param-name>resource-path-prefix</param-name>
 235             <param-value>/server</param-value>
 236             <description>
 237                 defines the prefix for spooling resources out of the repository.
 238             </description>
 239         </init-param>
 240         <load-on-startup>5</load-on-startup>
 241     </servlet>
 242 
 243     <!-- ====================================================================== -->
 244     <!-- S E R V L E T   M A P P I N G                                          -->
 245     <!-- ====================================================================== -->
 246     <servlet-mapping>
 247         <servlet-name>Webdav</servlet-name>
 248         <url-pattern>/repository/*</url-pattern>
 249     </servlet-mapping>
 250     <servlet-mapping>
 251         <servlet-name>JCRWebdavServer</servlet-name>
 252         <url-pattern>/server/*</url-pattern>
 253     </servlet-mapping>
 254 </web-app>

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-06-29 13:31:53, 10.9 KB) [[attachment:web.xml]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.