webdefault.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- ===================================================================== -->
  3. <!-- This file contains the default descriptor for web applications. -->
  4. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  5. <!-- The intent of this descriptor is to include jetty specific or common -->
  6. <!-- configuration for all webapps. If a context has a webdefault.xml -->
  7. <!-- descriptor, it is applied before the contexts own web.xml file -->
  8. <!-- -->
  9. <!-- A context may be assigned a default descriptor by: -->
  10. <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
  11. <!-- + Passed an arg to addWebApplications -->
  12. <!-- -->
  13. <!-- This file is used both as the resource within the jetty.jar (which is -->
  14. <!-- used as the default if no explicit defaults descriptor is set) and it -->
  15. <!-- is copied to the etc directory of the Jetty distro and explicitly -->
  16. <!-- by the jetty.xml file. -->
  17. <!-- -->
  18. <!-- ===================================================================== -->
  19. <web-app
  20. xmlns="http://java.sun.com/xml/ns/javaee"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  23. metadata-complete="true"
  24. version="2.5">
  25. <description>
  26. Default web.xml file.
  27. This file is applied to a Web application before it's own WEB_INF/web.xml file
  28. </description>
  29. <!-- ==================================================================== -->
  30. <!-- Context params to control Session Cookies -->
  31. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  32. <!-- UNCOMMENT TO ACTIVATE
  33. <context-param>
  34. <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
  35. <param-value>127.0.0.1</param-value>
  36. </context-param>
  37. <context-param>
  38. <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
  39. <param-value>/</param-value>
  40. </context-param>
  41. <context-param>
  42. <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
  43. <param-value>-1</param-value>
  44. </context-param>
  45. -->
  46. <context-param>
  47. <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
  48. <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
  49. </context-param>
  50. <!-- ==================================================================== -->
  51. <!-- The default servlet. -->
  52. <!-- This servlet, normally mapped to /, provides the handling for static -->
  53. <!-- content, OPTIONS and TRACE methods for the context. -->
  54. <!-- The following initParameters are supported: -->
  55. <!-- -->
  56. <!-- acceptRanges If true, range requests and responses are -->
  57. <!-- supported -->
  58. <!-- -->
  59. <!-- dirAllowed If true, directory listings are returned if no -->
  60. <!-- welcome file is found. Else 403 Forbidden. -->
  61. <!-- -->
  62. <!-- welcomeServlets If true, attempt to dispatch to welcome files -->
  63. <!-- that are servlets, if no matching static -->
  64. <!-- resources can be found. -->
  65. <!-- -->
  66. <!-- redirectWelcome If true, redirect welcome file requests -->
  67. <!-- else use request dispatcher forwards -->
  68. <!-- -->
  69. <!-- gzip If set to true, then static content will be served-->
  70. <!-- as gzip content encoded if a matching resource is -->
  71. <!-- found ending with ".gz" -->
  72. <!-- -->
  73. <!-- resoureBase Can be set to replace the context resource base -->
  74. <!-- -->
  75. <!-- relativeResourceBase -->
  76. <!-- Set with a pathname relative to the base of the -->
  77. <!-- servlet context root. Useful for only serving -->
  78. <!-- static content from only specific subdirectories. -->
  79. <!-- -->
  80. <!-- useFileMappedBuffer -->
  81. <!-- If set to true (the default), a memory mapped -->
  82. <!-- file buffer will be used to serve static content -->
  83. <!-- when using an NIO connector. Setting this value -->
  84. <!-- to false means that a direct buffer will be used -->
  85. <!-- instead. If you are having trouble with Windows -->
  86. <!-- file locking, set this to false. -->
  87. <!-- -->
  88. <!-- cacheControl If set, all static content will have this value -->
  89. <!-- set as the cache-control header. -->
  90. <!-- -->
  91. <!-- maxCacheSize Maximum size of the static resource cache -->
  92. <!-- -->
  93. <!-- maxCachedFileSize Maximum size of any single file in the cache -->
  94. <!-- -->
  95. <!-- maxCachedFiles Maximum number of files in the cache -->
  96. <!-- -->
  97. <!-- cacheType "nio", "bio" or "both" to determine the type(s) -->
  98. <!-- of resource cache. A bio cached buffer may be used-->
  99. <!-- by nio but is not as efficient as a nio buffer. -->
  100. <!-- An nio cached buffer may not be used by bio. -->
  101. <!-- -->
  102. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  103. <servlet>
  104. <servlet-name>default</servlet-name>
  105. <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
  106. <init-param>
  107. <param-name>acceptRanges</param-name>
  108. <param-value>true</param-value>
  109. </init-param>
  110. <init-param>
  111. <param-name>dirAllowed</param-name>
  112. <param-value>true</param-value>
  113. </init-param>
  114. <init-param>
  115. <param-name>welcomeServlets</param-name>
  116. <param-value>false</param-value>
  117. </init-param>
  118. <init-param>
  119. <param-name>redirectWelcome</param-name>
  120. <param-value>false</param-value>
  121. </init-param>
  122. <init-param>
  123. <param-name>maxCacheSize</param-name>
  124. <param-value>256000000</param-value>
  125. </init-param>
  126. <init-param>
  127. <param-name>maxCachedFileSize</param-name>
  128. <param-value>10000000</param-value>
  129. </init-param>
  130. <init-param>
  131. <param-name>maxCachedFiles</param-name>
  132. <param-value>1000</param-value>
  133. </init-param>
  134. <init-param>
  135. <param-name>cacheType</param-name>
  136. <param-value>both</param-value>
  137. </init-param>
  138. <init-param>
  139. <param-name>gzip</param-name>
  140. <param-value>true</param-value>
  141. </init-param>
  142. <init-param>
  143. <param-name>useFileMappedBuffer</param-name>
  144. <param-value>false</param-value>
  145. </init-param>
  146. <!--
  147. <init-param>
  148. <param-name>cacheControl</param-name>
  149. <param-value>max-age=3600,public</param-value>
  150. </init-param>
  151. -->
  152. <load-on-startup>0</load-on-startup>
  153. </servlet>
  154. <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
  155. <!-- ==================================================================== -->
  156. <!-- JSP Servlet -->
  157. <!-- This is the jasper JSP servlet from the jakarta project -->
  158. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  159. <!-- The JSP page compiler and execution servlet, which is the mechanism -->
  160. <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
  161. <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
  162. <!-- following initialization parameters (default values are in square -->
  163. <!-- brackets): -->
  164. <!-- -->
  165. <!-- checkInterval If development is false and reloading is true, -->
  166. <!-- background compiles are enabled. checkInterval -->
  167. <!-- is the time in seconds between checks to see -->
  168. <!-- if a JSP page needs to be recompiled. [300] -->
  169. <!-- -->
  170. <!-- compiler Which compiler Ant should use to compile JSP -->
  171. <!-- pages. See the Ant documenation for more -->
  172. <!-- information. [javac] -->
  173. <!-- -->
  174. <!-- classdebuginfo Should the class file be compiled with -->
  175. <!-- debugging information? [true] -->
  176. <!-- -->
  177. <!-- classpath What class path should I use while compiling -->
  178. <!-- generated servlets? [Created dynamically -->
  179. <!-- based on the current web application] -->
  180. <!-- Set to ? to make the container explicitly set -->
  181. <!-- this parameter. -->
  182. <!-- -->
  183. <!-- development Is Jasper used in development mode (will check -->
  184. <!-- for JSP modification on every access)? [true] -->
  185. <!-- -->
  186. <!-- enablePooling Determines whether tag handler pooling is -->
  187. <!-- enabled [true] -->
  188. <!-- -->
  189. <!-- fork Tell Ant to fork compiles of JSP pages so that -->
  190. <!-- a separate JVM is used for JSP page compiles -->
  191. <!-- from the one Tomcat is running in. [true] -->
  192. <!-- -->
  193. <!-- ieClassId The class-id value to be sent to Internet -->
  194. <!-- Explorer when using <jsp:plugin> tags. -->
  195. <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
  196. <!-- -->
  197. <!-- javaEncoding Java file encoding to use for generating java -->
  198. <!-- source files. [UTF-8] -->
  199. <!-- -->
  200. <!-- keepgenerated Should we keep the generated Java source code -->
  201. <!-- for each page instead of deleting it? [true] -->
  202. <!-- -->
  203. <!-- logVerbosityLevel The level of detailed messages to be produced -->
  204. <!-- by this servlet. Increasing levels cause the -->
  205. <!-- generation of more messages. Valid values are -->
  206. <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
  207. <!-- [WARNING] -->
  208. <!-- -->
  209. <!-- mappedfile Should we generate static content with one -->
  210. <!-- print statement per input line, to ease -->
  211. <!-- debugging? [false] -->
  212. <!-- -->
  213. <!-- -->
  214. <!-- reloading Should Jasper check for modified JSPs? [true] -->
  215. <!-- -->
  216. <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
  217. <!-- debugging be suppressed? [false] -->
  218. <!-- -->
  219. <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
  220. <!-- dumped to a file? [false] -->
  221. <!-- False if suppressSmap is true -->
  222. <!-- -->
  223. <!-- scratchdir What scratch directory should we use when -->
  224. <!-- compiling JSP pages? [default work directory -->
  225. <!-- for the current web application] -->
  226. <!-- -->
  227. <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
  228. <!-- -->
  229. <!-- xpoweredBy Determines whether X-Powered-By response -->
  230. <!-- header is added by generated servlet [false] -->
  231. <!-- -->
  232. <!-- If you wish to use Jikes to compile JSP pages: -->
  233. <!-- Set the init parameter "compiler" to "jikes". Define -->
  234. <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
  235. <!-- to cause Jikes to emit error messages in a format compatible with -->
  236. <!-- Jasper. -->
  237. <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
  238. <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
  239. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  240. <servlet id="jsp">
  241. <servlet-name>jsp</servlet-name>
  242. <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  243. <init-param>
  244. <param-name>logVerbosityLevel</param-name>
  245. <param-value>DEBUG</param-value>
  246. </init-param>
  247. <init-param>
  248. <param-name>fork</param-name>
  249. <param-value>false</param-value>
  250. </init-param>
  251. <init-param>
  252. <param-name>xpoweredBy</param-name>
  253. <param-value>false</param-value>
  254. </init-param>
  255. <!--
  256. <init-param>
  257. <param-name>classpath</param-name>
  258. <param-value>?</param-value>
  259. </init-param>
  260. -->
  261. <load-on-startup>0</load-on-startup>
  262. </servlet>
  263. <servlet-mapping>
  264. <servlet-name>jsp</servlet-name>
  265. <url-pattern>*.jsp</url-pattern>
  266. <url-pattern>*.jspf</url-pattern>
  267. <url-pattern>*.jspx</url-pattern>
  268. <url-pattern>*.xsp</url-pattern>
  269. <url-pattern>*.JSP</url-pattern>
  270. <url-pattern>*.JSPF</url-pattern>
  271. <url-pattern>*.JSPX</url-pattern>
  272. <url-pattern>*.XSP</url-pattern>
  273. </servlet-mapping>
  274. <!-- ==================================================================== -->
  275. <!-- Dynamic Servlet Invoker. -->
  276. <!-- This servlet invokes anonymous servlets that have not been defined -->
  277. <!-- in the web.xml or by other means. The first element of the pathInfo -->
  278. <!-- of a request passed to the envoker is treated as a servlet name for -->
  279. <!-- an existing servlet, or as a class name of a new servlet. -->
  280. <!-- This servlet is normally mapped to /servlet/* -->
  281. <!-- This servlet support the following initParams: -->
  282. <!-- -->
  283. <!-- nonContextServlets If false, the invoker can only load -->
  284. <!-- servlets from the contexts classloader. -->
  285. <!-- This is false by default and setting this -->
  286. <!-- to true may have security implications. -->
  287. <!-- -->
  288. <!-- verbose If true, log dynamic loads -->
  289. <!-- -->
  290. <!-- * All other parameters are copied to the -->
  291. <!-- each dynamic servlet as init parameters -->
  292. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  293. <!-- Uncomment for dynamic invocation
  294. <servlet>
  295. <servlet-name>invoker</servlet-name>
  296. <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
  297. <init-param>
  298. <param-name>verbose</param-name>
  299. <param-value>false</param-value>
  300. </init-param>
  301. <init-param>
  302. <param-name>nonContextServlets</param-name>
  303. <param-value>false</param-value>
  304. </init-param>
  305. <init-param>
  306. <param-name>dynamicParam</param-name>
  307. <param-value>anyValue</param-value>
  308. </init-param>
  309. <load-on-startup>0</load-on-startup>
  310. </servlet>
  311. <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
  312. -->
  313. <!-- ==================================================================== -->
  314. <session-config>
  315. <session-timeout>30</session-timeout>
  316. </session-config>
  317. <!-- ==================================================================== -->
  318. <!-- Default MIME mappings -->
  319. <!-- The default MIME mappings are provided by the mime.properties -->
  320. <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
  321. <!-- mappings may be specified here -->
  322. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  323. <!-- UNCOMMENT TO ACTIVATE
  324. <mime-mapping>
  325. <extension>mysuffix</extension>
  326. <mime-type>mymime/type</mime-type>
  327. </mime-mapping>
  328. -->
  329. <!-- ==================================================================== -->
  330. <welcome-file-list>
  331. <welcome-file>index.html</welcome-file>
  332. <welcome-file>index.htm</welcome-file>
  333. <welcome-file>index.jsp</welcome-file>
  334. </welcome-file-list>
  335. <!-- ==================================================================== -->
  336. <locale-encoding-mapping-list>
  337. <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
  338. <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  339. <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  340. <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  341. <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  342. <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  343. <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  344. <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
  345. <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  346. <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  347. <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  348. <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  349. <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  350. <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  351. <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  352. <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  353. <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  354. <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
  355. <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
  356. <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>
  357. <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  358. <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  359. <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  360. <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  361. <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  362. <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  363. <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  364. <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  365. <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  366. <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  367. <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  368. <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  369. <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
  370. <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  371. <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
  372. <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
  373. <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
  374. <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
  375. <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>
  376. </locale-encoding-mapping-list>
  377. <security-constraint>
  378. <web-resource-collection>
  379. <web-resource-name>Disable TRACE</web-resource-name>
  380. <url-pattern>/</url-pattern>
  381. <http-method>TRACE</http-method>
  382. </web-resource-collection>
  383. <auth-constraint/>
  384. </security-constraint>
  385. </web-app>