]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server/webdefault.xml
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.document.server / webdefault.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3   <!-- ===================================================================== -->
4   <!-- This file contains the default descriptor for web applications.       -->
5   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
6   <!-- The intent of this descriptor is to include jetty specific or common  -->
7   <!-- configuration for all webapps.   If a context has a webdefault.xml    -->
8   <!-- descriptor, it is applied before the contexts own web.xml file        -->
9   <!--                                                                       -->
10   <!-- A context may be assigned a default descriptor by:                    -->
11   <!--  + Calling WebApplicationContext.setDefaultsDescriptor                -->
12   <!--  + Passed an arg to addWebApplications                                -->
13   <!--                                                                       -->
14   <!-- This file is used both as the resource within the jetty.jar (which is -->
15   <!-- used as the default if no explicit defaults descriptor is set) and it -->
16   <!-- is copied to the etc directory of the Jetty distro and explicitly     -->
17   <!-- by the jetty.xml file.                                                -->
18   <!--                                                                       -->
19   <!-- ===================================================================== -->
20 <web-app
21   xmlns="http://java.sun.com/xml/ns/javaee"
22   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24   metadata-complete="true"
25   version="2.5"
26 >
27
28   <description>
29     Default web.xml file.  
30     This file is applied to a Web application before it's own WEB_INF/web.xml file
31   </description>
32
33   <!-- ==================================================================== -->
34   <!-- Removes static references to beans from javax.el.BeanELResolver to   -->
35   <!-- ensure webapp classloader can be released on undeploy                -->
36   <!-- ==================================================================== -->
37   
38     <!-- <listener>
39    <listener-class>org.eclipse.jetty.servlet.listener.ELContextCleaner</listener-class>
40   </listener> 
41      -->
42   
43   <!-- ==================================================================== -->
44   <!-- Removes static cache of Methods from java.beans.Introspector to      -->
45   <!-- ensure webapp classloader can be released on undeploy                -->
46   <!-- ==================================================================== -->  
47     <!-- 
48   <listener>
49    <listener-class>org.eclipse.jetty.servlet.listener.IntrospectorCleaner</listener-class>
50   </listener>
51      -->
52   
53
54   <!-- ==================================================================== -->
55   <!-- Context params to control Session Cookies                            -->
56   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
57   <!--
58     UNCOMMENT TO ACTIVATE <context-param> <param-name>org.eclipse.jetty.servlet.SessionDomain</param-name> <param-value>127.0.0.1</param-value> </context-param> <context-param>
59     <param-name>org.eclipse.jetty.servlet.SessionPath</param-name> <param-value>/</param-value> </context-param> <context-param> <param-name>org.eclipse.jetty.servlet.MaxAge</param-name>
60     <param-value>-1</param-value> </context-param>
61   -->
62
63   <!-- ==================================================================== -->
64   <!-- The default servlet.                                                 -->
65   <!-- This servlet, normally mapped to /, provides the handling for static -->
66   <!-- content, OPTIONS and TRACE methods for the context.                  -->
67   <!-- The following initParameters are supported:                          -->
68   <!--  
69  *  acceptRanges      If true, range requests and responses are
70  *                    supported
71  *
72  *  dirAllowed        If true, directory listings are returned if no
73  *                    welcome file is found. Else 403 Forbidden.
74  *
75  *  welcomeServlets   If true, attempt to dispatch to welcome files
76  *                    that are servlets, but only after no matching static
77  *                    resources could be found. If false, then a welcome
78  *                    file must exist on disk. If "exact", then exact
79  *                    servlet matches are supported without an existing file.
80  *                    Default is true.
81  *
82  *                    This must be false if you want directory listings,
83  *                    but have index.jsp in your welcome file list.
84  *
85  *  redirectWelcome   If true, welcome files are redirected rather than
86  *                    forwarded to.
87  *
88  *  gzip              If set to true, then static content will be served as
89  *                    gzip content encoded if a matching resource is
90  *                    found ending with ".gz"
91  *
92  *  resourceBase      Set to replace the context resource base
93  *
94  *  resourceCache     If set, this is a context attribute name, which the servlet 
95  *                    will use to look for a shared ResourceCache instance. 
96  *                        
97  *  relativeResourceBase
98  *                    Set with a pathname relative to the base of the
99  *                    servlet context root. Useful for only serving static content out
100  *                    of only specific subdirectories.
101  *
102  *  aliases           If True, aliases of resources are allowed (eg. symbolic
103  *                    links and caps variations). May bypass security constraints.
104  *
105  *  maxCacheSize      The maximum total size of the cache or 0 for no cache.
106  *  maxCachedFileSize The maximum size of a file to cache
107  *  maxCachedFiles    The maximum number of files to cache
108  *
109  *  useFileMappedBuffer
110  *                    If set to true, it will use mapped file buffer to serve static content
111  *                    when using NIO connector. Setting this value to false means that
112  *                    a direct buffer will be used instead of a mapped file buffer.
113  *                    By default, this is set to true.
114  *
115  *  cacheControl      If set, all static content will have this value set as the cache-control
116  *                    header.
117  -->
118  
119  
120   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
121   <servlet>
122     <servlet-name>default</servlet-name>
123     <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
124     <init-param>
125       <param-name>aliases</param-name>
126       <param-value>false</param-value>
127     </init-param>
128     <init-param>
129       <param-name>acceptRanges</param-name>
130       <param-value>true</param-value>
131     </init-param>
132     <init-param>
133       <param-name>dirAllowed</param-name>
134       <param-value>true</param-value>
135     </init-param>
136     <init-param>
137       <param-name>welcomeServlets</param-name>
138       <param-value>false</param-value>
139     </init-param>
140     <init-param>
141       <param-name>redirectWelcome</param-name>
142       <param-value>false</param-value>
143     </init-param>
144     <init-param>
145       <param-name>maxCacheSize</param-name>
146       <param-value>256000000</param-value>
147     </init-param>
148     <init-param>
149       <param-name>maxCachedFileSize</param-name>
150       <param-value>200000000</param-value>
151     </init-param>
152     <init-param>
153       <param-name>maxCachedFiles</param-name>
154       <param-value>2048</param-value>
155     </init-param>
156     <init-param>
157       <param-name>gzip</param-name>
158       <param-value>true</param-value>
159     </init-param>
160     <init-param>
161       <param-name>useFileMappedBuffer</param-name>
162       <param-value>true</param-value>
163     </init-param>
164     <!--
165     <init-param>
166       <param-name>resourceCache</param-name>
167       <param-value>resourceCache</param-value>
168     </init-param>
169     -->
170     <!--
171     <init-param>
172       <param-name>cacheControl</param-name>
173       <param-value>max-age=3600,public</param-value>
174     </init-param>
175     -->
176     <load-on-startup>0</load-on-startup>
177   </servlet>
178
179   <servlet-mapping>
180     <servlet-name>default</servlet-name>
181     <url-pattern>/</url-pattern>
182   </servlet-mapping>
183
184
185   <!-- ==================================================================== -->
186   <!-- JSP Servlet                                                          -->
187   <!-- This is the jasper JSP servlet from the jakarta project              -->
188   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
189   <!-- The JSP page compiler and execution servlet, which is the mechanism  -->
190   <!-- used by Glassfish to support JSP pages.  Traditionally, this servlet -->
191   <!-- is mapped to URL patterh "*.jsp".  This servlet supports the         -->
192   <!-- following initialization parameters (default values are in square    -->
193   <!-- brackets):                                                           -->
194   <!--                                                                      -->
195   <!--   checkInterval       If development is false and reloading is true, -->
196   <!--                       background compiles are enabled. checkInterval -->
197   <!--                       is the time in seconds between checks to see   -->
198   <!--                       if a JSP page needs to be recompiled. [300]    -->
199   <!--                                                                      -->
200   <!--   compiler            Which compiler Ant should use to compile JSP   -->
201   <!--                       pages.  See the Ant documenation for more      -->
202   <!--                       information. [javac]                           -->
203   <!--                                                                      -->
204   <!--   classdebuginfo      Should the class file be compiled with         -->
205   <!--                       debugging information?  [true]                 -->
206   <!--                                                                      -->
207   <!--   classpath           What class path should I use while compiling   -->
208   <!--                       generated servlets?  [Created dynamically      -->
209   <!--                       based on the current web application]          -->
210   <!--                       Set to ? to make the container explicitly set  -->
211   <!--                       this parameter.                                -->
212   <!--                                                                      -->
213   <!--   development         Is Jasper used in development mode (will check -->
214   <!--                       for JSP modification on every access)?  [true] -->
215   <!--                                                                      -->
216   <!--   enablePooling       Determines whether tag handler pooling is      -->
217   <!--                       enabled  [true]                                -->
218   <!--                                                                      -->
219   <!--   fork                Tell Ant to fork compiles of JSP pages so that -->
220   <!--                       a separate JVM is used for JSP page compiles   -->
221   <!--                       from the one Tomcat is running in. [true]      -->
222   <!--                                                                      -->
223   <!--   ieClassId           The class-id value to be sent to Internet      -->
224   <!--                       Explorer when using <jsp:plugin> tags.         -->
225   <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->
226   <!--                                                                      -->
227   <!--   javaEncoding        Java file encoding to use for generating java  -->
228   <!--                       source files. [UTF-8]                          -->
229   <!--                                                                      -->
230   <!--   keepgenerated       Should we keep the generated Java source code  -->
231   <!--                       for each page instead of deleting it? [true]   -->
232   <!--                                                                      -->
233   <!--   logVerbosityLevel   The level of detailed messages to be produced  -->
234   <!--                       by this servlet.  Increasing levels cause the  -->
235   <!--                       generation of more messages.  Valid values are -->
236   <!--                       FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
237   <!--                       [WARNING]                                      -->
238   <!--                                                                      -->
239   <!--   mappedfile          Should we generate static content with one     -->
240   <!--                       print statement per input line, to ease        -->
241   <!--                       debugging?  [false]                            -->
242   <!--                                                                      -->
243   <!--                                                                      -->
244   <!--   reloading           Should Jasper check for modified JSPs?  [true] -->
245   <!--                                                                      -->
246   <!--   suppressSmap        Should the generation of SMAP info for JSR45   -->
247   <!--                       debugging be suppressed?  [false]              -->
248   <!--                                                                      -->
249   <!--   dumpSmap            Should the SMAP info for JSR45 debugging be    -->
250   <!--                       dumped to a file? [false]                      -->
251   <!--                       False if suppressSmap is true                  -->
252   <!--                                                                      -->
253   <!--   scratchdir          What scratch directory should we use when      -->
254   <!--                       compiling JSP pages?  [default work directory  -->
255   <!--                       for the current web application]               -->
256   <!--                                                                      -->
257   <!--   tagpoolMaxSize      The maximum tag handler pool size  [5]         -->
258   <!--                                                                      -->
259   <!--   xpoweredBy          Determines whether X-Powered-By response       -->
260   <!--                       header is added by generated servlet  [false]  -->
261   <!--                                                                      -->
262   <!-- If you wish to use Jikes to compile JSP pages:                       -->
263   <!--   Set the init parameter "compiler" to "jikes".  Define              -->
264   <!--   the property "-Dbuild.compiler.emacs=true" when starting Jetty     -->
265   <!--   to cause Jikes to emit error messages in a format compatible with  -->
266   <!--   Jasper.                                                            -->
267   <!--   If you get an error reporting that jikes can't use UTF-8 encoding, -->
268   <!--   try setting the init parameter "javaEncoding" to "ISO-8859-1".     -->
269   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
270     <!-- <servlet
271     id="jsp"
272   >
273     <servlet-name>jsp</servlet-name>
274     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
275     <init-param>
276       <param-name>logVerbosityLevel</param-name>
277       <param-value>DEBUG</param-value>
278     </init-param>
279     <init-param>
280       <param-name>fork</param-name>
281       <param-value>false</param-value>
282     </init-param>
283     <init-param>
284       <param-name>xpoweredBy</param-name>
285       <param-value>false</param-value>
286     </init-param>
287         -->
288     <!--  
289     <init-param>
290         <param-name>classpath</param-name>
291         <param-value>?</param-value>
292     </init-param>
293     -->
294      <!--  <load-on-startup>0</load-on-startup>
295   </servlet>
296
297   <servlet-mapping>
298     <servlet-name>jsp</servlet-name>
299     <url-pattern>*.jsp</url-pattern>
300     <url-pattern>*.jspf</url-pattern>
301     <url-pattern>*.jspx</url-pattern>
302     <url-pattern>*.xsp</url-pattern>
303     <url-pattern>*.JSP</url-pattern>
304     <url-pattern>*.JSPF</url-pattern>
305     <url-pattern>*.JSPX</url-pattern>
306     <url-pattern>*.XSP</url-pattern>
307   </servlet-mapping>-->
308
309   <!-- ==================================================================== -->
310   <!-- Dynamic Servlet Invoker.                                             -->
311   <!-- This servlet invokes anonymous servlets that have not been defined   -->
312   <!-- in the web.xml or by other means. The first element of the pathInfo  -->
313   <!-- of a request passed to the envoker is treated as a servlet name for  -->
314   <!-- an existing servlet, or as a class name of a new servlet.            -->
315   <!-- This servlet is normally mapped to /servlet/*                        -->
316   <!-- This servlet support the following initParams:                       -->
317   <!--                                                                      -->
318   <!--  nonContextServlets       If false, the invoker can only load        -->
319   <!--                           servlets from the contexts classloader.    -->
320   <!--                           This is false by default and setting this  -->
321   <!--                           to true may have security implications.    -->
322   <!--                                                                      -->
323   <!--  verbose                  If true, log dynamic loads                 -->
324   <!--                                                                      -->
325   <!--  *                        All other parameters are copied to the     -->
326   <!--                           each dynamic servlet as init parameters    -->
327   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
328   <!--
329     Uncomment for dynamic invocation <servlet> <servlet-name>invoker</servlet-name> <servlet-class>org.eclipse.jetty.servlet.Invoker</servlet-class> <init-param> <param-name>verbose</param-name>
330     <param-value>false</param-value> </init-param> <init-param> <param-name>nonContextServlets</param-name> <param-value>false</param-value> </init-param> <init-param>
331     <param-name>dynamicParam</param-name> <param-value>anyValue</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>invoker</servlet-name>
332     <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
333   -->
334
335
336
337   <!-- ==================================================================== -->
338   <session-config>
339     <session-timeout>30</session-timeout>
340   </session-config>
341
342   <!-- ==================================================================== -->
343   <!-- Default MIME mappings                                                -->
344   <!-- The default MIME mappings are provided by the mime.properties        -->
345   <!-- resource in the org.eclipse.jetty.server.jar file.  Additional or modified  -->
346   <!-- mappings may be specified here                                       -->
347   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
348   <!-- UNCOMMENT TO ACTIVATE
349   <mime-mapping>
350     <extension>mysuffix</extension>
351     <mime-type>mymime/type</mime-type>
352   </mime-mapping>
353   -->
354
355   <!-- ==================================================================== -->
356   <welcome-file-list>
357     <welcome-file>index.html</welcome-file>
358     <welcome-file>index.htm</welcome-file>
359     <!--<welcome-file>index.jsp</welcome-file>-->
360   </welcome-file-list>
361
362   <!-- ==================================================================== -->
363   <locale-encoding-mapping-list>
364     <locale-encoding-mapping>
365       <locale>ar</locale>
366       <encoding>ISO-8859-6</encoding>
367     </locale-encoding-mapping>
368     <locale-encoding-mapping>
369       <locale>be</locale>
370       <encoding>ISO-8859-5</encoding>
371     </locale-encoding-mapping>
372     <locale-encoding-mapping>
373       <locale>bg</locale>
374       <encoding>ISO-8859-5</encoding>
375     </locale-encoding-mapping>
376     <locale-encoding-mapping>
377       <locale>ca</locale>
378       <encoding>ISO-8859-1</encoding>
379     </locale-encoding-mapping>
380     <locale-encoding-mapping>
381       <locale>cs</locale>
382       <encoding>ISO-8859-2</encoding>
383     </locale-encoding-mapping>
384     <locale-encoding-mapping>
385       <locale>da</locale>
386       <encoding>ISO-8859-1</encoding>
387     </locale-encoding-mapping>
388     <locale-encoding-mapping>
389       <locale>de</locale>
390       <encoding>ISO-8859-1</encoding>
391     </locale-encoding-mapping>
392     <locale-encoding-mapping>
393       <locale>el</locale>
394       <encoding>ISO-8859-7</encoding>
395     </locale-encoding-mapping>
396     <locale-encoding-mapping>
397       <locale>en</locale>
398       <encoding>ISO-8859-1</encoding>
399     </locale-encoding-mapping>
400     <locale-encoding-mapping>
401       <locale>es</locale>
402       <encoding>ISO-8859-1</encoding>
403     </locale-encoding-mapping>
404     <locale-encoding-mapping>
405       <locale>et</locale>
406       <encoding>ISO-8859-1</encoding>
407     </locale-encoding-mapping>
408     <locale-encoding-mapping>
409       <locale>fi</locale>
410       <encoding>ISO-8859-1</encoding>
411     </locale-encoding-mapping>
412     <locale-encoding-mapping>
413       <locale>fr</locale>
414       <encoding>ISO-8859-1</encoding>
415     </locale-encoding-mapping>
416     <locale-encoding-mapping>
417       <locale>hr</locale>
418       <encoding>ISO-8859-2</encoding>
419     </locale-encoding-mapping>
420     <locale-encoding-mapping>
421       <locale>hu</locale>
422       <encoding>ISO-8859-2</encoding>
423     </locale-encoding-mapping>
424     <locale-encoding-mapping>
425       <locale>is</locale>
426       <encoding>ISO-8859-1</encoding>
427     </locale-encoding-mapping>
428     <locale-encoding-mapping>
429       <locale>it</locale>
430       <encoding>ISO-8859-1</encoding>
431     </locale-encoding-mapping>
432     <locale-encoding-mapping>
433       <locale>iw</locale>
434       <encoding>ISO-8859-8</encoding>
435     </locale-encoding-mapping>
436     <locale-encoding-mapping>
437       <locale>ja</locale>
438       <encoding>Shift_JIS</encoding>
439     </locale-encoding-mapping>
440     <locale-encoding-mapping>
441       <locale>ko</locale>
442       <encoding>EUC-KR</encoding>
443     </locale-encoding-mapping>
444     <locale-encoding-mapping>
445       <locale>lt</locale>
446       <encoding>ISO-8859-2</encoding>
447     </locale-encoding-mapping>
448     <locale-encoding-mapping>
449       <locale>lv</locale>
450       <encoding>ISO-8859-2</encoding>
451     </locale-encoding-mapping>
452     <locale-encoding-mapping>
453       <locale>mk</locale>
454       <encoding>ISO-8859-5</encoding>
455     </locale-encoding-mapping>
456     <locale-encoding-mapping>
457       <locale>nl</locale>
458       <encoding>ISO-8859-1</encoding>
459     </locale-encoding-mapping>
460     <locale-encoding-mapping>
461       <locale>no</locale>
462       <encoding>ISO-8859-1</encoding>
463     </locale-encoding-mapping>
464     <locale-encoding-mapping>
465       <locale>pl</locale>
466       <encoding>ISO-8859-2</encoding>
467     </locale-encoding-mapping>
468     <locale-encoding-mapping>
469       <locale>pt</locale>
470       <encoding>ISO-8859-1</encoding>
471     </locale-encoding-mapping>
472     <locale-encoding-mapping>
473       <locale>ro</locale>
474       <encoding>ISO-8859-2</encoding>
475     </locale-encoding-mapping>
476     <locale-encoding-mapping>
477       <locale>ru</locale>
478       <encoding>ISO-8859-5</encoding>
479     </locale-encoding-mapping>
480     <locale-encoding-mapping>
481       <locale>sh</locale>
482       <encoding>ISO-8859-5</encoding>
483     </locale-encoding-mapping>
484     <locale-encoding-mapping>
485       <locale>sk</locale>
486       <encoding>ISO-8859-2</encoding>
487     </locale-encoding-mapping>
488     <locale-encoding-mapping>
489       <locale>sl</locale>
490       <encoding>ISO-8859-2</encoding>
491     </locale-encoding-mapping>
492     <locale-encoding-mapping>
493       <locale>sq</locale>
494       <encoding>ISO-8859-2</encoding>
495     </locale-encoding-mapping>
496     <locale-encoding-mapping>
497       <locale>sr</locale>
498       <encoding>ISO-8859-5</encoding>
499     </locale-encoding-mapping>
500     <locale-encoding-mapping>
501       <locale>sv</locale>
502       <encoding>ISO-8859-1</encoding>
503     </locale-encoding-mapping>
504     <locale-encoding-mapping>
505       <locale>tr</locale>
506       <encoding>ISO-8859-9</encoding>
507     </locale-encoding-mapping>
508     <locale-encoding-mapping>
509       <locale>uk</locale>
510       <encoding>ISO-8859-5</encoding>
511     </locale-encoding-mapping>
512     <locale-encoding-mapping>
513       <locale>zh</locale>
514       <encoding>GB2312</encoding>
515     </locale-encoding-mapping>
516     <locale-encoding-mapping>
517       <locale>zh_TW</locale>
518       <encoding>Big5</encoding>
519     </locale-encoding-mapping>
520   </locale-encoding-mapping-list>
521
522   <security-constraint>
523     <web-resource-collection>
524       <web-resource-name>Disable TRACE</web-resource-name>
525       <url-pattern>/</url-pattern>
526       <http-method>TRACE</http-method>
527     </web-resource-collection>
528     <auth-constraint/>
529   </security-constraint>
530
531 </web-app>
532