]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.server.jackrabbit.webdav/WEB-INF/web-orig.xml
Adapt to new versions
[lgpl/argeo-commons.git] / server / modules / org.argeo.server.jackrabbit.webdav / WEB-INF / web-orig.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18
19 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
20 <web-app>
21 <display-name>Jackrabbit JCR Server</display-name>
22
23 <!-- ====================================================================== -->
24 <!-- L O G G I N G S E R V L E T -->
25 <!-- ====================================================================== -->
26
27 <!-- mbaudier
28 <servlet>
29 <servlet-name>Logging</servlet-name>
30 <description>The logging servlet configures the Log4J logging facility.</description>
31 <servlet-class>org.apache.jackrabbit.j2ee.LoggingServlet</servlet-class>
32
33 <init-param>
34 <param-name>log4j-config</param-name>
35 <param-value>/WEB-INF/log4j.xml</param-value>
36 <description>initial log4j configuration</description>
37 </init-param>
38
39 <load-on-startup>1</load-on-startup>
40 </servlet>
41 -->
42 <!-- ====================================================================== -->
43 <!-- R E P O S I T O R Y S T A R T U P S E R V L E T -->
44 <!-- ====================================================================== -->
45 <!-- mbaudier
46 <servlet>
47 <servlet-name>RepositoryStartup</servlet-name>
48 <description>
49 Repository servlet that starts the repository and registers it to JNDI ans RMI.
50 If you already have the repository registered in this appservers JNDI context,
51 or if its accessible via RMI, you do not need to use this servlet.
52 </description>
53 <servlet-class>org.apache.jackrabbit.j2ee.RepositoryStartupServlet</servlet-class>
54
55 <init-param>
56 <param-name>bootstrap-config</param-name>
57 <param-value>jackrabbit/bootstrap.properties</param-value>
58 <description>
59 Property file that hold the same initialization properties than
60 the init-params below. If a parameter is specified in both
61 places the one in the bootstrap-config wins.
62 </description>
63 </init-param>
64 -->
65 <!--
66 <init-param>
67 <param-name>repository-config</param-name>
68 <param-value>/WEB-INF/repository/repository.xml</param-value>
69 <description>the repository config location</description>
70 </init-param>
71
72 <init-param>
73 <param-name>repository-home</param-name>
74 <param-value>jackrabbit/repository</param-value>
75 <description>the repository home</description>
76 </init-param>
77
78 <init-param>
79 <param-name>repository-name</param-name>
80 <param-value>jackrabbit.repository</param-value>
81 <description>Repository Name under which the repository is registered via JNDI/RMI</description>
82 </init-param>
83 -->
84
85 <!--
86 the following 3 parameters deal with registering the repository to
87 a RMI registry. if all parameters are omitted, the repository will
88 not be registered.
89 -->
90 <!--
91 <init-param>
92 <param-name>rmi-port</param-name>
93 <param-value>0</param-value>
94 <description>
95 The RMI port for registering the repository in the RMI Registry.
96 If equals 0, the default port is used.
97 </description>
98 </init-param>
99 <init-param>
100 <param-name>rmi-host</param-name>
101 <param-value>localhost</param-value>
102 <description>
103 The RMI host for registering the repository in the RMI Registry.
104 If equals "" or missing, the default host is used.
105 </description>
106 </init-param>
107 <init-param>
108 <param-name>rmi-uri</param-name>
109 <param-value></param-value>
110 <description>
111 The RMI uri for registering the repository in the RMI Registry.
112 If missing, the uri is composed using the other rmi parameters
113 and will have the format: //{rmi-host}:{rmi-port}/{repository-name}
114 </description>
115 </init-param>
116 -->
117 <!--
118 JNDI environment variables for creating the initial context
119 (all init parameters starting with java.naming.* will be added to the initial context environment).
120 -->
121 <!--
122 <init-param>
123 <param-name>java.naming.provider.url</param-name>
124 <param-value>http://www.apache.org/jackrabbit</param-value>
125 </init-param>
126 <init-param>
127 <param-name>java.naming.factory.initial</param-name>
128 <param-value>org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory</param-value>
129 </init-param>
130 -->
131
132 <!-- mbaudier
133 <load-on-startup>2</load-on-startup>
134 </servlet>
135 -->
136
137 <!-- ====================================================================== -->
138 <!-- R E P O S I T O R Y S E R V L E T -->
139 <!-- ====================================================================== -->
140 <servlet>
141 <servlet-name>Repository</servlet-name>
142 <description>
143 This servlet provides other servlets and jsps a common way to access
144 the repository. The repository can be accessed via JNDI, RMI or Webdav.
145 </description>
146 <servlet-class>org.apache.jackrabbit.j2ee.RepositoryAccessServlet</servlet-class>
147
148 <init-param>
149 <param-name>bootstrap-config</param-name>
150 <param-value>jackrabbit/bootstrap.properties</param-value>
151 <description>
152 Property file that hold the same initialization properties than
153 the init-params below. If a parameter is specified in both
154 places the one in the bootstrap-config wins.
155 </description>
156 </init-param>
157 <!--
158 <init-param>
159 <param-name>repository.context.attribute.name</param-name>
160 <param-value>javax.jcr.Repository</param-value>
161 <description>
162 If this is set, the RepositoryAccessServlet expects a Repository in the ServletContext
163 attribute having this name. This allows servlets of this module to be used with repositories
164 intialized by the jackrabbit-jcr-servlet module utilities.
165 </description>
166 </init-param>
167 -->
168 <!--
169 <init-param>
170 <param-name>repository-name</param-name>
171 <param-value>jackrabbit.repository</param-value>
172 <description>Repository Name that is used to retrieve it via JNDI</description>
173 </init-param>
174 -->
175 <!--
176 JNDI environment variables for creating the initial context
177 (all init parameters starting with java.naming.* will be added to the initial context environment).
178 -->
179 <!--
180 <init-param>
181 <param-name>java.naming.provider.url</param-name>
182 <param-value>http://www.apache.org/jackrabbit</param-value>
183 </init-param>
184 <init-param>
185 <param-name>java.naming.factory.initial</param-name>
186 <param-value>org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory</param-value>
187 </init-param>
188 -->
189 <!--
190 RMI url, if RMI remoting is needed
191 -->
192 <!--
193 <init-param>
194 <param-name>rmi-uri</param-name>
195 <param-value>///jackrabbit.repository</param-value>
196 <description>The URI for the RMI connection.</description>
197 </init-param>
198 -->
199
200 <load-on-startup>3</load-on-startup>
201 </servlet>
202
203 <!-- ====================================================================== -->
204 <!-- W E B D A V S E R V L E T -->
205 <!-- ====================================================================== -->
206 <servlet>
207 <servlet-name>Webdav</servlet-name>
208 <description>
209 The webdav servlet that connects HTTP request to the repository.
210 </description>
211 <servlet-class>org.apache.jackrabbit.j2ee.SimpleWebdavServlet</servlet-class>
212
213 <init-param>
214 <param-name>resource-path-prefix</param-name>
215 <param-value>/repository</param-value>
216 <description>
217 defines the prefix for spooling resources out of the repository.
218 </description>
219 </init-param>
220 <!--
221 <init-param>
222 <param-name>missing-auth-mapping</param-name>
223 <param-value>anonymous:anonymous</param-value>
224 <description>
225 Defines how a missing authorization header should be handled.
226 1) If this init-param is missing, a 401 response is generated.
227 This is suiteable for clients (eg. webdav clients) for which
228 sending a proper authorization header is not possible if the
229 server never sent a 401.
230 2) If this init-param is present with an empty value,
231 null-credentials are returned, thus forcing an null login
232 on the repository.
233 3) If this init-param has a 'user:password' value, the respective
234 simple credentials are generated.
235 </description>
236 </init-param>
237 -->
238 <!--
239 Optional parameter to define the value of the 'WWW-Authenticate' header
240 -->
241 <!--
242 <init-param>
243 <param-name>authenticate-header</param-name>
244 <param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
245 <description>
246 Defines the value of the 'WWW-Authenticate' header.
247 </description>
248 </init-param>
249 -->
250 <!--
251 Parameter used to configure behaviour of webdav resources such as:
252 - destinction between collections and non-collections
253 - resource filtering
254 -->
255 <init-param>
256 <param-name>resource-config</param-name>
257 <param-value>/WEB-INF/config.xml</param-value>
258 <description>
259 Defines various dav-resource configuration parameters.
260 </description>
261 </init-param>
262 <load-on-startup>4</load-on-startup>
263 </servlet>
264
265 <!-- ====================================================================== -->
266 <!-- J C R R E M O T I N G S E R V L E T -->
267 <!-- ====================================================================== -->
268 <servlet>
269 <servlet-name>JCRWebdavServer</servlet-name>
270 <description>
271 The servlet used to remote JCR calls over HTTP.
272 </description>
273 <servlet-class>org.apache.jackrabbit.j2ee.JcrRemotingServlet</servlet-class>
274 <init-param>
275 <param-name>missing-auth-mapping</param-name>
276 <param-value></param-value>
277 <description>
278 Defines how a missing authorization header should be handled.
279 1) If this init-param is missing, a 401 response is generated.
280 This is suiteable for clients (eg. webdav clients) for which
281 sending a proper authorization header is not possible if the
282 server never sent a 401.
283 2) If this init-param is present with an empty value,
284 null-credentials are returned, thus forcing an null login
285 on the repository.
286 3) If this init-param has a 'user:password' value, the respective
287 simple credentials are generated.
288 </description>
289 </init-param>
290 <!--
291 Optional parameter to define the value of the 'WWW-Authenticate' header
292 -->
293 <!--
294 <init-param>
295 <param-name>authenticate-header</param-name>
296 <param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
297 <description>
298 Defines the value of the 'WWW-Authenticate' header.
299 </description>
300 </init-param>
301 -->
302 <init-param>
303 <param-name>resource-path-prefix</param-name>
304 <param-value>/server</param-value>
305 <description>
306 defines the prefix for spooling resources out of the repository.
307 </description>
308 </init-param>
309 <!--
310 Init parameters specific for JcrRemotingServlet
311 -->
312 <!--
313 <init-param>
314 <param-name>home</param-name>
315 <param-value></param-value>
316 <description>JcrRemotingServlet: Optional home directory for JcrRemotingServlet temporary files (default: "jackrabbit")</description>
317 </init-param>
318 <init-param>
319 <param-name>temp-directory</param-name>
320 <param-value></param-value>
321 <description>JcrRemotingServlet: Optional temporary directory name (under home, default: "tmp")</description>
322 </init-param>
323 -->
324 <init-param>
325 <param-name>batchread-config</param-name>
326 <param-value>/WEB-INF/batchread.properties</param-value>
327 <description>JcrRemotingServlet: Optional mapping from node type names to default depth.</description>
328 </init-param>
329 <load-on-startup>5</load-on-startup>
330 </servlet>
331
332 <!-- ====================================================================== -->
333 <!-- R M I B I N D I N G S E R V L E T -->
334 <!-- ====================================================================== -->
335 <!-- mbaudier
336 <servlet>
337 <servlet-name>RMI</servlet-name>
338 <servlet-class>org.apache.jackrabbit.servlet.remote.RemoteBindingServlet</servlet-class>
339 </servlet>
340 -->
341 <!-- ====================================================================== -->
342 <!-- S E R V L E T M A P P I N G -->
343 <!-- ====================================================================== -->
344
345 <!-- mbaudier
346 <servlet-mapping>
347 <servlet-name>RepositoryStartup</servlet-name>
348 <url-pattern>/admin/*</url-pattern>
349 </servlet-mapping>
350 -->
351 <servlet-mapping>
352 <servlet-name>Webdav</servlet-name>
353 <url-pattern>/repository/*</url-pattern>
354 </servlet-mapping>
355 <servlet-mapping>
356 <servlet-name>JCRWebdavServer</servlet-name>
357 <url-pattern>/server/*</url-pattern>
358 </servlet-mapping>
359 <!-- mbaudier
360 <servlet-mapping>
361 <servlet-name>RMI</servlet-name>
362 <url-pattern>/rmi</url-pattern>
363 </servlet-mapping>
364 -->
365 <!-- ====================================================================== -->
366 <!-- W E L C O M E F I L E S -->
367 <!-- ====================================================================== -->
368 <welcome-file-list>
369 <welcome-file>index.jsp</welcome-file>
370 </welcome-file-list>
371
372 <error-page>
373 <exception-type>org.apache.jackrabbit.j2ee.JcrApiNotFoundException</exception-type>
374 <location>/error/classpath.jsp</location>
375 </error-page>
376 <error-page>
377 <exception-type>javax.jcr.RepositoryException</exception-type>
378 <location>/error/repository.jsp</location>
379 </error-page>
380
381 </web-app>