/src/server/servicefacade/lib/Jetty-4.1.0RC3/etc/webdefault.xml

http://keywatch.googlecode.com/ · XML · 210 lines · 71 code · 14 blank · 125 comment · 0 complexity · 83e4fa143e7e12c8a6b7f59bbd0d9b2c MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
  3. <!-- ===================================================================== -->
  4. <!-- This file contains the default descriptor for web applications. -->
  5. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  6. <!-- The original of this file is included as a resource in the -->
  7. <!-- org.mortbay.jetty.jar file and is loaded by default for all web -->
  8. <!-- applications before there own WEB-INF/web.xml file is loaded -->
  9. <!-- -->
  10. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  11. <!-- THE COPY OF THIS FILE in $JETTY_HOME/etc IS NOT USED BY DEFAULT! -->
  12. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  13. <!-- If the version in $JETTY_HOME/etc/ is to be used, then the -->
  14. <!-- setDefaultsDescriptor method must be called on each context, -->
  15. <!-- giving the location of the default web.xml file to use. -->
  16. <!-- eg of setting the defaultsDescriptor in jetty.xml:
  17. <Call name="addWebApplication">
  18. <Arg>/mycontext</Arg>
  19. <Arg><SystemProperty name="jetty.home" default=".">/webapps/mywebapp</Arg>
  20. <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
  21. </Call>
  22. -->
  23. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  24. <!-- ===================================================================== -->
  25. <web-app>
  26. <description>
  27. Default web.xml file.
  28. This file is applied to a Web application before it's own WEB_INF/web.xml file
  29. </description>
  30. <!-- ==================================================================== -->
  31. <!-- The default servlet. -->
  32. <!-- This servlet, normally mapped to /, provides the handling for static -->
  33. <!-- content, OPTION and TRACE methods for the context. -->
  34. <!-- The following initParameters are supported: -->
  35. <!-- -->
  36. <!-- acceptRanges If true, range requests and responses are -->
  37. <!-- supported -->
  38. <!-- -->
  39. <!-- dirAllowed If true, directory listings are returned if no -->
  40. <!-- welcome file is found. Else 403 Forbidden. -->
  41. <!-- -->
  42. <!-- putAllowed If true, the PUT method is allowed -->
  43. <!-- -->
  44. <!-- delAllowed If true, the DELETE method is allowed -->
  45. <!-- -->
  46. <!-- The MOVE method is allowed if PUT and DELETE are allowed -->
  47. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  48. <servlet>
  49. <servlet-name>Default</servlet-name>
  50. <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class>
  51. <init-param>
  52. <param-name>acceptRanges</param-name>
  53. <param-value>true</param-value>
  54. </init-param>
  55. <init-param>
  56. <param-name>dirAllowed</param-name>
  57. <param-value>true</param-value>
  58. </init-param>
  59. <init-param>
  60. <param-name>putAllowed</param-name>
  61. <param-value>false</param-value>
  62. </init-param>
  63. <init-param>
  64. <param-name>delAllowed</param-name>
  65. <param-value>false</param-value>
  66. </init-param>
  67. <load-on-startup>0</load-on-startup>
  68. </servlet>
  69. <!-- ==================================================================== -->
  70. <!-- JSP Servlet -->
  71. <!-- This is the jasper JSP servlet from the jakarta project -->
  72. <!-- The following initParameters are supported: -->
  73. <!-- -->
  74. <!-- classpath What class path should I use while compiling -->
  75. <!-- generated servlets? [Created dynamically -->
  76. <!-- based on the current web application] -->
  77. <!-- -->
  78. <!-- classdebuginfo Should the class file be compiled with -->
  79. <!-- debugging information? [false] -->
  80. <!-- -->
  81. <!-- ieClassId The class-id value to be sent to Internet -->
  82. <!-- Explorer when using <jsp:plugin> tags. -->
  83. <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
  84. <!-- -->
  85. <!-- jspCompilerPlugin The fully qualified class name of the JSP -->
  86. <!-- compiler plug-in to be used. See below for -->
  87. <!-- more information. -->
  88. <!-- [Use internal JDK compiler] -->
  89. <!-- -->
  90. <!-- keepgenerated Should we keep the generated Java source code -->
  91. <!-- for each page instead of deleting it? [true] -->
  92. <!-- -->
  93. <!-- largefile Should we store the static content of JSP -->
  94. <!-- pages in external data files, to reduce the -->
  95. <!-- size of the generated servlets? [false] -->
  96. <!-- -->
  97. <!-- logVerbosityLevel The level of detailed messages to be produced -->
  98. <!-- by this servlet. Increasing levels cause the -->
  99. <!-- generation of more messages. Valid values are -->
  100. <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
  101. <!-- [WARNING] -->
  102. <!-- -->
  103. <!-- mappedfile Should we generate static content with one -->
  104. <!-- print statement per input line, to ease -->
  105. <!-- debugging? [false] -->
  106. <!-- -->
  107. <!-- scratchdir What scratch directory should we use when -->
  108. <!-- compiling JSP pages? [default work directory -->
  109. <!-- for the current web application] -->
  110. <!-- -->
  111. <!-- If you wish to use Jikes to compile JSP pages: -->
  112. <!-- * Set the "classpath" initialization parameter appropriately -->
  113. <!-- for this web application. -->
  114. <!-- * Set the "jspCompilerPlugin" initialization parameter to -->
  115. <!-- "org.apache.jasper.compiler.JikesJavaCompiler". -->
  116. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  117. <servlet>
  118. <servlet-name>JSP</servlet-name>
  119. <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  120. <load-on-startup>0</load-on-startup>
  121. </servlet>
  122. <!-- ==================================================================== -->
  123. <!-- Dynamic Servlet Invoker. -->
  124. <!-- This servlet invokes anonymous servlets that have not been defined -->
  125. <!-- in the web.xml or by other means. The first element of the pathInfo -->
  126. <!-- of a request passed to the envoker is treated as a servlet name for -->
  127. <!-- an existing servlet, or as a class name of a new servlet. -->
  128. <!-- This servlet is normally mapped to /servlet/* -->
  129. <!-- This servlet support the following initParams: -->
  130. <!-- -->
  131. <!-- nonContextServlets If false, the invoker can only load -->
  132. <!-- servlets from the contexts classloader. -->
  133. <!-- This is false by default and setting this -->
  134. <!-- to true may have security implications. -->
  135. <!-- -->
  136. <!-- verbose If true, log dynamic loads -->
  137. <!-- -->
  138. <!-- * All other parameters are copied to the -->
  139. <!-- each dynamic servlet as init parameters -->
  140. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  141. <servlet>
  142. <servlet-name>Invoker</servlet-name>
  143. <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
  144. <init-param>
  145. <param-name>verbose</param-name>
  146. <param-value>false</param-value>
  147. </init-param>
  148. <init-param>
  149. <param-name>nonContextServlets</param-name>
  150. <param-value>false</param-value>
  151. </init-param>
  152. <init-param>
  153. <param-name>dynamicParam</param-name>
  154. <param-value>anyValue</param-value>
  155. </init-param>
  156. <load-on-startup>0</load-on-startup>
  157. </servlet>
  158. <!-- ==================================================================== -->
  159. <servlet-mapping>
  160. <servlet-name>Default</servlet-name>
  161. <url-pattern>/</url-pattern>
  162. </servlet-mapping>
  163. <!-- ==================================================================== -->
  164. <servlet-mapping>
  165. <servlet-name>JSP</servlet-name>
  166. <url-pattern>*.jsp:*.jsP:*.jSp:*.jSP:*.Jsp:*.JsP:*.JSp:*.JSP</url-pattern>
  167. </servlet-mapping>
  168. <!-- ==================================================================== -->
  169. <servlet-mapping>
  170. <servlet-name>Invoker</servlet-name>
  171. <url-pattern>/servlet/*</url-pattern>
  172. </servlet-mapping>
  173. <!-- ==================================================================== -->
  174. <session-config>
  175. <session-timeout>30</session-timeout>
  176. </session-config>
  177. <!-- ==================================================================== -->
  178. <!-- Default MIME mappings -->
  179. <!-- The default MIME mappings are provided by the mime.properties -->
  180. <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
  181. <!-- mappings may be specified here -->
  182. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  183. <!--
  184. <mime-mapping>
  185. <extension>mysuffix</extension>
  186. <mime-type>mymime/type</mime-type>
  187. </mime-mapping>
  188. -->
  189. <!-- ==================================================================== -->
  190. <welcome-file-list>
  191. <welcome-file>index.html</welcome-file>
  192. <welcome-file>index.htm</welcome-file>
  193. <welcome-file>index.jsp</welcome-file>
  194. </welcome-file-list>
  195. </web-app>