1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://java.sun.com/xml/ns/javaee"
  4. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="2.5">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. @(#)web-app_2_5.xsds 1.68 07/03/09
  12. </xsd:documentation>
  13. </xsd:annotation>
  14.  
  15. <xsd:annotation>
  16. <xsd:documentation>
  17.  
  18. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  19.  
  20. Copyright 2003-2007 Sun Microsystems, Inc. All rights reserved.
  21.  
  22. The contents of this file are subject to the terms of either the
  23. GNU General Public License Version 2 only ("GPL") or the Common
  24. Development and Distribution License("CDDL") (collectively, the
  25. "License"). You may not use this file except in compliance with
  26. the License. You can obtain a copy of the License at
  27. https://glassfish.dev.java.net/public/CDDL+GPL.html or
  28. glassfish/bootstrap/legal/LICENSE.txt. See the License for the
  29. specific language governing permissions and limitations under the
  30. License.
  31.  
  32. When distributing the software, include this License Header
  33. Notice in each file and include the License file at
  34. glassfish/bootstrap/legal/LICENSE.txt. Sun designates this
  35. particular file as subject to the "Classpath" exception as
  36. provided by Sun in the GPL Version 2 section of the License file
  37. that accompanied this code. If applicable, add the following
  38. below the License Header, with the fields enclosed by brackets []
  39. replaced by your own identifying information:
  40. "Portions Copyrighted [year] [name of copyright owner]"
  41.  
  42. Contributor(s):
  43.  
  44. If you wish your version of this file to be governed by only the
  45. CDDL or only the GPL Version 2, indicate your decision by adding
  46. "[Contributor] elects to include this software in this
  47. distribution under the [CDDL or GPL Version 2] license." If you
  48. don't indicate a single choice of license, a recipient has the
  49. option to distribute your version of this file under either the
  50. CDDL, the GPL Version 2 or to extend the choice of license to its
  51. licensees as provided above. However, if you add GPL Version 2
  52. code and therefore, elected the GPL Version 2 license, then the
  53. option applies only if the new code is made subject to such
  54. option by the copyright holder.
  55.  
  56. </xsd:documentation>
  57. </xsd:annotation>
  58.  
  59. <xsd:annotation>
  60. <xsd:documentation>
  61. <![CDATA[
  62.  
  63. This is the XML Schema for the Servlet 2.5 deployment descriptor.
  64. The deployment descriptor must be named "WEB-INF/web.xml" in the
  65. web application's war file. All Servlet deployment descriptors
  66. must indicate the web application schema by using the Java EE
  67. namespace:
  68.  
  69. http://java.sun.com/xml/ns/javaee
  70.  
  71. and by indicating the version of the schema by
  72. using the version element as shown below:
  73.  
  74. <web-app xmlns="http://java.sun.com/xml/ns/javaee"
  75. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  76. xsi:schemaLocation="..."
  77. version="2.5">
  78. ...
  79. </web-app>
  80.  
  81. The instance documents may indicate the published version of
  82. the schema using the xsi:schemaLocation attribute for Java EE
  83. namespace with the following location:
  84.  
  85. http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
  86.  
  87. ]]>
  88. </xsd:documentation>
  89. </xsd:annotation>
  90.  
  91. <xsd:annotation>
  92. <xsd:documentation>
  93.  
  94. The following conventions apply to all Java EE
  95. deployment descriptor elements unless indicated otherwise.
  96.  
  97. - In elements that specify a pathname to a file within the
  98. same JAR file, relative filenames (i.e., those not
  99. starting with "/") are considered relative to the root of
  100. the JAR file's namespace. Absolute filenames (i.e., those
  101. starting with "/") also specify names in the root of the
  102. JAR file's namespace. In general, relative names are
  103. preferred. The exception is .war files where absolute
  104. names are preferred for consistency with the Servlet API.
  105.  
  106. </xsd:documentation>
  107. </xsd:annotation>
  108.  
  109. <xsd:include schemaLocation="javaee_5.xsd"/>
  110. <xsd:include schemaLocation="jsp_2_1.xsd"/>
  111.  
  112. <!-- **************************************************** -->
  113.  
  114. <xsd:element name="web-app" type="javaee:web-appType">
  115. <xsd:annotation>
  116. <xsd:documentation>
  117.  
  118. The web-app element is the root of the deployment
  119. descriptor for a web application. Note that the sub-elements
  120. of this element can be in the arbitrary order. Because of
  121. that, the multiplicity of the elements of distributable,
  122. session-config, welcome-file-list, jsp-config, login-config,
  123. and locale-encoding-mapping-list was changed from "?" to "*"
  124. in this schema. However, the deployment descriptor instance
  125. file must not contain multiple elements of session-config,
  126. jsp-config, and login-config. When there are multiple elements of
  127. welcome-file-list or locale-encoding-mapping-list, the container
  128. must concatenate the element contents. The multiple occurence
  129. of the element distributable is redundant and the container
  130. treats that case exactly in the same way when there is only
  131. one distributable.
  132.  
  133. </xsd:documentation>
  134. </xsd:annotation>
  135.  
  136. <xsd:unique name="web-app-servlet-name-uniqueness">
  137. <xsd:annotation>
  138. <xsd:documentation>
  139.  
  140. The servlet element contains the name of a servlet.
  141. The name must be unique within the web application.
  142.  
  143. </xsd:documentation>
  144. </xsd:annotation>
  145. <xsd:selector xpath="javaee:servlet"/>
  146. <xsd:field xpath="javaee:servlet-name"/>
  147. </xsd:unique>
  148.  
  149. <xsd:unique name="web-app-filter-name-uniqueness">
  150. <xsd:annotation>
  151. <xsd:documentation>
  152.  
  153. The filter element contains the name of a filter.
  154. The name must be unique within the web application.
  155.  
  156. </xsd:documentation>
  157. </xsd:annotation>
  158. <xsd:selector xpath="javaee:filter"/>
  159. <xsd:field xpath="javaee:filter-name"/>
  160. </xsd:unique>
  161.  
  162. <xsd:unique name="web-app-ejb-local-ref-name-uniqueness">
  163. <xsd:annotation>
  164. <xsd:documentation>
  165.  
  166. The ejb-local-ref-name element contains the name of an EJB
  167. reference. The EJB reference is an entry in the web
  168. application's environment and is relative to the
  169. java:comp/env context. The name must be unique within
  170. the web application.
  171.  
  172. It is recommended that name is prefixed with "ejb/".
  173.  
  174. </xsd:documentation>
  175. </xsd:annotation>
  176. <xsd:selector xpath="javaee:ejb-local-ref"/>
  177. <xsd:field xpath="javaee:ejb-ref-name"/>
  178. </xsd:unique>
  179.  
  180. <xsd:unique name="web-app-ejb-ref-name-uniqueness">
  181. <xsd:annotation>
  182. <xsd:documentation>
  183.  
  184. The ejb-ref-name element contains the name of an EJB
  185. reference. The EJB reference is an entry in the web
  186. application's environment and is relative to the
  187. java:comp/env context. The name must be unique within
  188. the web application.
  189.  
  190. It is recommended that name is prefixed with "ejb/".
  191.  
  192. </xsd:documentation>
  193. </xsd:annotation>
  194. <xsd:selector xpath="javaee:ejb-ref"/>
  195. <xsd:field xpath="javaee:ejb-ref-name"/>
  196. </xsd:unique>
  197.  
  198. <xsd:unique name="web-app-resource-env-ref-uniqueness">
  199. <xsd:annotation>
  200. <xsd:documentation>
  201.  
  202. The resource-env-ref-name element specifies the name of
  203. a resource environment reference; its value is the
  204. environment entry name used in the web application code.
  205. The name is a JNDI name relative to the java:comp/env
  206. context and must be unique within a web application.
  207.  
  208. </xsd:documentation>
  209. </xsd:annotation>
  210. <xsd:selector xpath="javaee:resource-env-ref"/>
  211. <xsd:field xpath="javaee:resource-env-ref-name"/>
  212. </xsd:unique>
  213.  
  214. <xsd:unique name="web-app-message-destination-ref-uniqueness">
  215. <xsd:annotation>
  216. <xsd:documentation>
  217.  
  218. The message-destination-ref-name element specifies the name of
  219. a message destination reference; its value is the
  220. environment entry name used in the web application code.
  221. The name is a JNDI name relative to the java:comp/env
  222. context and must be unique within a web application.
  223.  
  224. </xsd:documentation>
  225. </xsd:annotation>
  226. <xsd:selector xpath="javaee:message-destination-ref"/>
  227. <xsd:field xpath="javaee:message-destination-ref-name"/>
  228. </xsd:unique>
  229.  
  230. <xsd:unique name="web-app-res-ref-name-uniqueness">
  231. <xsd:annotation>
  232. <xsd:documentation>
  233.  
  234. The res-ref-name element specifies the name of a
  235. resource manager connection factory reference. The name
  236. is a JNDI name relative to the java:comp/env context.
  237. The name must be unique within a web application.
  238.  
  239. </xsd:documentation>
  240. </xsd:annotation>
  241. <xsd:selector xpath="javaee:resource-ref"/>
  242. <xsd:field xpath="javaee:res-ref-name"/>
  243. </xsd:unique>
  244.  
  245. <xsd:unique name="web-app-env-entry-name-uniqueness">
  246. <xsd:annotation>
  247. <xsd:documentation>
  248.  
  249. The env-entry-name element contains the name of a web
  250. application's environment entry. The name is a JNDI
  251. name relative to the java:comp/env context. The name
  252. must be unique within a web application.
  253.  
  254. </xsd:documentation>
  255. </xsd:annotation>
  256.  
  257. <xsd:selector xpath="javaee:env-entry"/>
  258. <xsd:field xpath="javaee:env-entry-name"/>
  259. </xsd:unique>
  260.  
  261. <xsd:key name="web-app-role-name-key">
  262. <xsd:annotation>
  263. <xsd:documentation>
  264.  
  265. A role-name-key is specified to allow the references
  266. from the security-role-refs.
  267.  
  268. </xsd:documentation>
  269. </xsd:annotation>
  270. <xsd:selector xpath="javaee:security-role"/>
  271. <xsd:field xpath="javaee:role-name"/>
  272. </xsd:key>
  273.  
  274. <xsd:keyref name="web-app-role-name-references"
  275. refer="javaee:web-app-role-name-key">
  276. <xsd:annotation>
  277. <xsd:documentation>
  278.  
  279. The keyref indicates the references from
  280. security-role-ref to a specified role-name.
  281.  
  282. </xsd:documentation>
  283. </xsd:annotation>
  284. <xsd:selector xpath="javaee:servlet/javaee:security-role-ref"/>
  285. <xsd:field xpath="javaee:role-link"/>
  286. </xsd:keyref>
  287. </xsd:element>
  288.  
  289. <!-- **************************************************** -->
  290.  
  291. <xsd:complexType name="auth-constraintType">
  292. <xsd:annotation>
  293. <xsd:documentation>
  294.  
  295. The auth-constraintType indicates the user roles that
  296. should be permitted access to this resource
  297. collection. The role-name used here must either correspond
  298. to the role-name of one of the security-role elements
  299. defined for this web application, or be the specially
  300. reserved role-name "*" that is a compact syntax for
  301. indicating all roles in the web application. If both "*"
  302. and rolenames appear, the container interprets this as all
  303. roles. If no roles are defined, no user is allowed access
  304. to the portion of the web application described by the
  305. containing security-constraint. The container matches
  306. role names case sensitively when determining access.
  307.  
  308. </xsd:documentation>
  309. </xsd:annotation>
  310.  
  311. <xsd:sequence>
  312. <xsd:element name="description"
  313. type="javaee:descriptionType"
  314. minOccurs="0" maxOccurs="unbounded"/>
  315. <xsd:element name="role-name"
  316. type="javaee:role-nameType"
  317. minOccurs="0" maxOccurs="unbounded"/>
  318. </xsd:sequence>
  319. <xsd:attribute name="id" type="xsd:ID"/>
  320. </xsd:complexType>
  321.  
  322. <!-- **************************************************** -->
  323.  
  324. <xsd:complexType name="auth-methodType">
  325. <xsd:annotation>
  326. <xsd:documentation>
  327.  
  328. The auth-methodType is used to configure the authentication
  329. mechanism for the web application. As a prerequisite to
  330. gaining access to any web resources which are protected by
  331. an authorization constraint, a user must have authenticated
  332. using the configured mechanism. Legal values are "BASIC",
  333. "DIGEST", "FORM", "CLIENT-CERT", or a vendor-specific
  334. authentication scheme.
  335.  
  336. Used in: login-config
  337.  
  338. </xsd:documentation>
  339. </xsd:annotation>
  340.  
  341. <xsd:simpleContent>
  342. <xsd:restriction base="javaee:string"/>
  343. </xsd:simpleContent>
  344. </xsd:complexType>
  345.  
  346. <!-- **************************************************** -->
  347.  
  348. <xsd:complexType name="dispatcherType">
  349. <xsd:annotation>
  350. <xsd:documentation>
  351.  
  352. The dispatcher has four legal values: FORWARD, REQUEST, INCLUDE,
  353. and ERROR. A value of FORWARD means the Filter will be applied
  354. under RequestDispatcher.forward() calls. A value of REQUEST
  355. means the Filter will be applied under ordinary client calls to
  356. the path or servlet. A value of INCLUDE means the Filter will be
  357. applied under RequestDispatcher.include() calls. A value of
  358. ERROR means the Filter will be applied under the error page
  359. mechanism. The absence of any dispatcher elements in a
  360. filter-mapping indicates a default of applying filters only under
  361. ordinary client calls to the path or servlet.
  362.  
  363. </xsd:documentation>
  364. </xsd:annotation>
  365.  
  366. <xsd:simpleContent>
  367. <xsd:restriction base="javaee:string">
  368. <xsd:enumeration value="FORWARD"/>
  369. <xsd:enumeration value="INCLUDE"/>
  370. <xsd:enumeration value="REQUEST"/>
  371. <xsd:enumeration value="ERROR"/>
  372. </xsd:restriction>
  373. </xsd:simpleContent>
  374. </xsd:complexType>
  375.  
  376. <!-- **************************************************** -->
  377.  
  378. <xsd:simpleType name="encodingType">
  379. <xsd:annotation>
  380. <xsd:documentation>
  381.  
  382. The encodingType defines IANA character sets.
  383.  
  384. </xsd:documentation>
  385. </xsd:annotation>
  386.  
  387. <xsd:restriction base="xsd:string">
  388. <xsd:pattern value="[^\s]+"/>
  389. </xsd:restriction>
  390. </xsd:simpleType>
  391.  
  392. <!-- **************************************************** -->
  393.  
  394. <xsd:complexType name="error-codeType">
  395. <xsd:annotation>
  396. <xsd:documentation>
  397.  
  398. The error-code contains an HTTP error code, ex: 404
  399.  
  400. Used in: error-page
  401.  
  402. </xsd:documentation>
  403. </xsd:annotation>
  404.  
  405. <xsd:simpleContent>
  406. <xsd:restriction base="javaee:xsdPositiveIntegerType">
  407. <xsd:pattern value="\d{3}"/>
  408. <xsd:attribute name="id" type="xsd:ID"/>
  409. </xsd:restriction>
  410. </xsd:simpleContent>
  411. </xsd:complexType>
  412.  
  413. <!-- **************************************************** -->
  414.  
  415. <xsd:complexType name="error-pageType">
  416. <xsd:annotation>
  417. <xsd:documentation>
  418.  
  419. The error-pageType contains a mapping between an error code
  420. or exception type to the path of a resource in the web
  421. application.
  422.  
  423. Used in: web-app
  424.  
  425. </xsd:documentation>
  426. </xsd:annotation>
  427.  
  428. <xsd:sequence>
  429. <xsd:choice>
  430. <xsd:element name="error-code"
  431. type="javaee:error-codeType"/>
  432.  
  433. <xsd:element name="exception-type"
  434. type="javaee:fully-qualified-classType">
  435. <xsd:annotation>
  436. <xsd:documentation>
  437.  
  438. The exception-type contains a fully qualified class
  439. name of a Java exception type.
  440.  
  441. </xsd:documentation>
  442. </xsd:annotation>
  443. </xsd:element>
  444. </xsd:choice>
  445.  
  446. <xsd:element name="location"
  447. type="javaee:war-pathType">
  448. <xsd:annotation>
  449. <xsd:documentation>
  450.  
  451. The location element contains the location of the
  452. resource in the web application relative to the root of
  453. the web application. The value of the location must have
  454. a leading `/'.
  455.  
  456. </xsd:documentation>
  457. </xsd:annotation>
  458. </xsd:element>
  459. </xsd:sequence>
  460. <xsd:attribute name="id" type="xsd:ID"/>
  461. </xsd:complexType>
  462.  
  463. <!-- **************************************************** -->
  464.  
  465. <xsd:complexType name="filter-mappingType">
  466. <xsd:annotation>
  467. <xsd:documentation>
  468.  
  469. Declaration of the filter mappings in this web
  470. application is done by using filter-mappingType.
  471. The container uses the filter-mapping
  472. declarations to decide which filters to apply to a request,
  473. and in what order. The container matches the request URI to
  474. a Servlet in the normal way. To determine which filters to
  475. apply it matches filter-mapping declarations either on
  476. servlet-name, or on url-pattern for each filter-mapping
  477. element, depending on which style is used. The order in
  478. which filters are invoked is the order in which
  479. filter-mapping declarations that match a request URI for a
  480. servlet appear in the list of filter-mapping elements.The
  481. filter-name value must be the value of the filter-name
  482. sub-elements of one of the filter declarations in the
  483. deployment descriptor.
  484.  
  485. </xsd:documentation>
  486. </xsd:annotation>
  487.  
  488. <xsd:sequence>
  489. <xsd:element name="filter-name"
  490. type="javaee:filter-nameType"/>
  491. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  492. <xsd:element name="url-pattern"
  493. type="javaee:url-patternType"/>
  494. <xsd:element name="servlet-name"
  495. type="javaee:servlet-nameType"/>
  496. </xsd:choice>
  497. <xsd:element name="dispatcher"
  498. type="javaee:dispatcherType"
  499. minOccurs="0" maxOccurs="4"/>
  500. </xsd:sequence>
  501. <xsd:attribute name="id" type="xsd:ID"/>
  502. </xsd:complexType>
  503.  
  504. <!-- **************************************************** -->
  505.  
  506. <xsd:complexType name="filter-nameType">
  507. <xsd:annotation>
  508. <xsd:documentation>
  509.  
  510. The logical name of the filter is declare
  511. by using filter-nameType. This name is used to map the
  512. filter. Each filter name is unique within the web
  513. application.
  514.  
  515. Used in: filter, filter-mapping
  516.  
  517. </xsd:documentation>
  518. </xsd:annotation>
  519.  
  520. <xsd:simpleContent>
  521. <xsd:extension base="javaee:nonEmptyStringType"/>
  522. </xsd:simpleContent>
  523. </xsd:complexType>
  524.  
  525. <!-- **************************************************** -->
  526.  
  527. <xsd:complexType name="filterType">
  528. <xsd:annotation>
  529. <xsd:documentation>
  530.  
  531. The filterType is used to declare a filter in the web
  532. application. The filter is mapped to either a servlet or a
  533. URL pattern in the filter-mapping element, using the
  534. filter-name value to reference. Filters can access the
  535. initialization parameters declared in the deployment
  536. descriptor at runtime via the FilterConfig interface.
  537.  
  538. Used in: web-app
  539.  
  540. </xsd:documentation>
  541. </xsd:annotation>
  542.  
  543. <xsd:sequence>
  544. <xsd:group ref="javaee:descriptionGroup"/>
  545. <xsd:element name="filter-name"
  546. type="javaee:filter-nameType"/>
  547. <xsd:element name="filter-class"
  548. type="javaee:fully-qualified-classType">
  549. <xsd:annotation>
  550. <xsd:documentation>
  551.  
  552. The fully qualified classname of the filter.
  553.  
  554. </xsd:documentation>
  555. </xsd:annotation>
  556. </xsd:element>
  557.  
  558. <xsd:element name="init-param"
  559. type="javaee:param-valueType"
  560. minOccurs="0" maxOccurs="unbounded">
  561. <xsd:annotation>
  562. <xsd:documentation>
  563.  
  564. The init-param element contains a name/value pair as
  565. an initialization param of a servlet filter
  566.  
  567. </xsd:documentation>
  568. </xsd:annotation>
  569. </xsd:element>
  570. </xsd:sequence>
  571. <xsd:attribute name="id" type="xsd:ID"/>
  572. </xsd:complexType>
  573.  
  574. <!-- **************************************************** -->
  575.  
  576. <xsd:complexType name="form-login-configType">
  577. <xsd:annotation>
  578. <xsd:documentation>
  579.  
  580. The form-login-configType specifies the login and error
  581. pages that should be used in form based login. If form based
  582. authentication is not used, these elements are ignored.
  583.  
  584. Used in: login-config
  585.  
  586. </xsd:documentation>
  587. </xsd:annotation>
  588.  
  589. <xsd:sequence>
  590.  
  591. <xsd:element name="form-login-page"
  592. type="javaee:war-pathType">
  593. <xsd:annotation>
  594. <xsd:documentation>
  595.  
  596. The form-login-page element defines the location in the web
  597. app where the page that can be used for login can be
  598. found. The path begins with a leading / and is interpreted
  599. relative to the root of the WAR.
  600.  
  601. </xsd:documentation>
  602. </xsd:annotation>
  603. </xsd:element>
  604.  
  605. <xsd:element name="form-error-page"
  606. type="javaee:war-pathType">
  607. <xsd:annotation>
  608. <xsd:documentation>
  609.  
  610. The form-error-page element defines the location in
  611. the web app where the error page that is displayed
  612. when login is not successful can be found.
  613. The path begins with a leading / and is interpreted
  614. relative to the root of the WAR.
  615.  
  616. </xsd:documentation>
  617. </xsd:annotation>
  618. </xsd:element>
  619.  
  620. </xsd:sequence>
  621. <xsd:attribute name="id" type="xsd:ID"/>
  622. </xsd:complexType>
  623.  
  624. <!-- **************************************************** -->
  625.  
  626. <xsd:simpleType name="http-methodType">
  627. <xsd:annotation>
  628.  
  629. <xsd:documentation>
  630.  
  631. A HTTP method type as defined in HTTP 1.1 section 2.2.
  632.  
  633. </xsd:documentation>
  634. </xsd:annotation>
  635.  
  636. <xsd:restriction base="xsd:token">
  637. <xsd:pattern value="[!-~-[\(\)<>@,;:"/\[\]?=\{\}\\\p{Z}]]+"/>
  638. </xsd:restriction>
  639.  
  640. </xsd:simpleType>
  641.  
  642. <!-- **************************************************** -->
  643.  
  644. <xsd:simpleType name="load-on-startupType">
  645. <xsd:union memberTypes="javaee:null-charType xsd:integer"/>
  646. </xsd:simpleType>
  647.  
  648. <!-- **************************************************** -->
  649.  
  650. <xsd:complexType name="locale-encoding-mapping-listType">
  651. <xsd:annotation>
  652. <xsd:documentation>
  653.  
  654. The locale-encoding-mapping-list contains one or more
  655. locale-encoding-mapping(s).
  656.  
  657. </xsd:documentation>
  658. </xsd:annotation>
  659.  
  660. <xsd:sequence>
  661. <xsd:element name="locale-encoding-mapping"
  662. type="javaee:locale-encoding-mappingType"
  663. maxOccurs="unbounded"/>
  664. </xsd:sequence>
  665. <xsd:attribute name="id" type="xsd:ID"/>
  666. </xsd:complexType>
  667.  
  668. <!-- **************************************************** -->
  669.  
  670. <xsd:complexType name="locale-encoding-mappingType">
  671. <xsd:annotation>
  672. <xsd:documentation>
  673.  
  674. The locale-encoding-mapping contains locale name and
  675. encoding name. The locale name must be either "Language-code",
  676. such as "ja", defined by ISO-639 or "Language-code_Country-code",
  677. such as "ja_JP". "Country code" is defined by ISO-3166.
  678.  
  679. </xsd:documentation>
  680. </xsd:annotation>
  681.  
  682. <xsd:sequence>
  683. <xsd:element name="locale"
  684. type="javaee:localeType"/>
  685. <xsd:element name="encoding"
  686. type="javaee:encodingType"/>
  687. </xsd:sequence>
  688. <xsd:attribute name="id" type="xsd:ID"/>
  689. </xsd:complexType>
  690.  
  691. <!-- **************************************************** -->
  692.  
  693. <xsd:simpleType name="localeType">
  694. <xsd:annotation>
  695. <xsd:documentation>
  696.  
  697. The localeType defines valid locale defined by ISO-639-1
  698. and ISO-3166.
  699.  
  700. </xsd:documentation>
  701. </xsd:annotation>
  702.  
  703. <xsd:restriction base="xsd:string">
  704. <xsd:pattern value="[a-z]{2}(_|-)?([\p{L}\-\p{Nd}]{2})?"/>
  705. </xsd:restriction>
  706. </xsd:simpleType>
  707.  
  708. <!-- **************************************************** -->
  709.  
  710. <xsd:complexType name="login-configType">
  711. <xsd:annotation>
  712. <xsd:documentation>
  713.  
  714. The login-configType is used to configure the authentication
  715. method that should be used, the realm name that should be
  716. used for this application, and the attributes that are
  717. needed by the form login mechanism.
  718.  
  719. Used in: web-app
  720.  
  721. </xsd:documentation>
  722. </xsd:annotation>
  723.  
  724. <xsd:sequence>
  725. <xsd:element name="auth-method"
  726. type="javaee:auth-methodType"
  727. minOccurs="0"/>
  728. <xsd:element name="realm-name"
  729. type="javaee:string" minOccurs="0">
  730. <xsd:annotation>
  731. <xsd:documentation>
  732.  
  733. The realm name element specifies the realm name to
  734. use in HTTP Basic authorization.
  735.  
  736. </xsd:documentation>
  737. </xsd:annotation>
  738. </xsd:element>
  739. <xsd:element name="form-login-config"
  740. type="javaee:form-login-configType"
  741. minOccurs="0"/>
  742. </xsd:sequence>
  743. <xsd:attribute name="id" type="xsd:ID"/>
  744. </xsd:complexType>
  745.  
  746. <!-- **************************************************** -->
  747.  
  748. <xsd:complexType name="mime-mappingType">
  749. <xsd:annotation>
  750. <xsd:documentation>
  751.  
  752. The mime-mappingType defines a mapping between an extension
  753. and a mime type.
  754.  
  755. Used in: web-app
  756.  
  757. </xsd:documentation>
  758. </xsd:annotation>
  759.  
  760. <xsd:sequence>
  761. <xsd:annotation>
  762. <xsd:documentation>
  763.  
  764. The extension element contains a string describing an
  765. extension. example: "txt"
  766.  
  767. </xsd:documentation>
  768. </xsd:annotation>
  769.  
  770. <xsd:element name="extension"
  771. type="javaee:string"/>
  772. <xsd:element name="mime-type"
  773. type="javaee:mime-typeType"/>
  774. </xsd:sequence>
  775. <xsd:attribute name="id" type="xsd:ID"/>
  776. </xsd:complexType>
  777.  
  778. <!-- **************************************************** -->
  779.  
  780. <xsd:complexType name="mime-typeType">
  781. <xsd:annotation>
  782. <xsd:documentation>
  783.  
  784. The mime-typeType is used to indicate a defined mime type.
  785.  
  786. Example:
  787. "text/plain"
  788.  
  789. Used in: mime-mapping
  790.  
  791. </xsd:documentation>
  792. </xsd:annotation>
  793.  
  794. <xsd:simpleContent>
  795. <xsd:restriction base="javaee:string">
  796. <xsd:pattern value="[^\p{Cc}^\s]+/[^\p{Cc}^\s]+"/>
  797. </xsd:restriction>
  798. </xsd:simpleContent>
  799. </xsd:complexType>
  800.  
  801. <!-- **************************************************** -->
  802.  
  803. <xsd:complexType name="nonEmptyStringType">
  804. <xsd:annotation>
  805. <xsd:documentation>
  806. This type defines a string which contains at least one
  807. character.
  808. </xsd:documentation>
  809. </xsd:annotation>
  810. <xsd:simpleContent>
  811. <xsd:restriction base="javaee:string">
  812. <xsd:minLength value="1"/>
  813. </xsd:restriction>
  814. </xsd:simpleContent>
  815. </xsd:complexType>
  816.  
  817. <!-- **************************************************** -->
  818.  
  819. <xsd:simpleType name="null-charType">
  820. <xsd:restriction base="xsd:string">
  821. <xsd:enumeration value=""/>
  822. </xsd:restriction>
  823. </xsd:simpleType>
  824.  
  825. <!-- **************************************************** -->
  826.  
  827. <xsd:complexType name="security-constraintType">
  828. <xsd:annotation>
  829. <xsd:documentation>
  830.  
  831. The security-constraintType is used to associate
  832. security constraints with one or more web resource
  833. collections
  834.  
  835. Used in: web-app
  836.  
  837. </xsd:documentation>
  838. </xsd:annotation>
  839.  
  840. <xsd:sequence>
  841. <xsd:element name="display-name"
  842. type="javaee:display-nameType"
  843. minOccurs="0"
  844. maxOccurs="unbounded"/>
  845. <xsd:element name="web-resource-collection"
  846. type="javaee:web-resource-collectionType"
  847. maxOccurs="unbounded"/>
  848. <xsd:element name="auth-constraint"
  849. type="javaee:auth-constraintType"
  850. minOccurs="0"/>
  851. <xsd:element name="user-data-constraint"
  852. type="javaee:user-data-constraintType"
  853. minOccurs="0"/>
  854. </xsd:sequence>
  855. <xsd:attribute name="id" type="xsd:ID"/>
  856. </xsd:complexType>
  857.  
  858. <!-- **************************************************** -->
  859.  
  860. <xsd:complexType name="servlet-mappingType">
  861. <xsd:annotation>
  862. <xsd:documentation>
  863.  
  864. The servlet-mappingType defines a mapping between a
  865. servlet and a url pattern.
  866.  
  867. Used in: web-app
  868.  
  869. </xsd:documentation>
  870. </xsd:annotation>
  871.  
  872. <xsd:sequence>
  873. <xsd:element name="servlet-name"
  874. type="javaee:servlet-nameType"/>
  875. <xsd:element name="url-pattern"
  876. type="javaee:url-patternType"
  877. minOccurs="1" maxOccurs="unbounded"/>
  878. </xsd:sequence>
  879. <xsd:attribute name="id" type="xsd:ID"/>
  880. </xsd:complexType>
  881.  
  882. <!-- **************************************************** -->
  883.  
  884. <xsd:complexType name="servlet-nameType">
  885. <xsd:annotation>
  886. <xsd:documentation>
  887.  
  888. The servlet-name element contains the canonical name of the
  889. servlet. Each servlet name is unique within the web
  890. application.
  891.  
  892. </xsd:documentation>
  893. </xsd:annotation>
  894.  
  895. <xsd:simpleContent>
  896. <xsd:extension base="javaee:nonEmptyStringType"/>
  897. </xsd:simpleContent>
  898. </xsd:complexType>
  899.  
  900. <!-- **************************************************** -->
  901.  
  902. <xsd:complexType name="servletType">
  903. <xsd:annotation>
  904. <xsd:documentation>
  905.  
  906. The servletType is used to declare a servlet.
  907. It contains the declarative data of a
  908. servlet. If a jsp-file is specified and the load-on-startup
  909. element is present, then the JSP should be precompiled and
  910. loaded.
  911.  
  912. Used in: web-app
  913.  
  914. </xsd:documentation>
  915. </xsd:annotation>
  916.  
  917. <xsd:sequence>
  918. <xsd:group ref="javaee:descriptionGroup"/>
  919. <xsd:element name="servlet-name"
  920. type="javaee:servlet-nameType"/>
  921. <xsd:choice>
  922. <xsd:element name="servlet-class"
  923. type="javaee:fully-qualified-classType">
  924. <xsd:annotation>
  925. <xsd:documentation>
  926.  
  927. The servlet-class element contains the fully
  928. qualified class name of the servlet.
  929.  
  930. </xsd:documentation>
  931. </xsd:annotation>
  932. </xsd:element>
  933.  
  934. <xsd:element name="jsp-file"
  935. type="javaee:jsp-fileType"/>
  936.  
  937. </xsd:choice>
  938.  
  939. <xsd:element name="init-param"
  940. type="javaee:param-valueType"
  941. minOccurs="0" maxOccurs="unbounded"/>
  942. <xsd:element name="load-on-startup"
  943. type="javaee:load-on-startupType"
  944. minOccurs="0">
  945. <xsd:annotation>
  946. <xsd:documentation>
  947.  
  948. The load-on-startup element indicates that this
  949. servlet should be loaded (instantiated and have
  950. its init() called) on the startup of the web
  951. application. The optional contents of these
  952. element must be an integer indicating the order in
  953. which the servlet should be loaded. If the value
  954. is a negative integer, or the element is not
  955. present, the container is free to load the servlet
  956. whenever it chooses. If the value is a positive
  957. integer or 0, the container must load and
  958. initialize the servlet as the application is
  959. deployed. The container must guarantee that
  960. servlets marked with lower integers are loaded
  961. before servlets marked with higher integers. The
  962. container may choose the order of loading of
  963. servlets with the same load-on-start-up value.
  964.  
  965. </xsd:documentation>
  966. </xsd:annotation>
  967. </xsd:element>
  968. <xsd:element name="run-as"
  969. type="javaee:run-asType"
  970. minOccurs="0"/>
  971. <xsd:element name="security-role-ref"
  972. type="javaee:security-role-refType"
  973. minOccurs="0" maxOccurs="unbounded"/>
  974. </xsd:sequence>
  975. <xsd:attribute name="id" type="xsd:ID"/>
  976. </xsd:complexType>
  977.  
  978. <!-- **************************************************** -->
  979.  
  980. <xsd:complexType name="session-configType">
  981. <xsd:annotation>
  982. <xsd:documentation>
  983.  
  984. The session-configType defines the session parameters
  985. for this web application.
  986.  
  987. Used in: web-app
  988.  
  989. </xsd:documentation>
  990. </xsd:annotation>
  991.  
  992. <xsd:sequence>
  993. <xsd:element name="session-timeout"
  994. type="javaee:xsdIntegerType"
  995. minOccurs="0">
  996. <xsd:annotation>
  997. <xsd:documentation>
  998.  
  999. The session-timeout element defines the default
  1000. session timeout interval for all sessions created
  1001. in this web application. The specified timeout
  1002. must be expressed in a whole number of minutes.
  1003. If the timeout is 0 or less, the container ensures
  1004. the default behaviour of sessions is never to time
  1005. out. If this element is not specified, the container
  1006. must set its default timeout period.
  1007.  
  1008. </xsd:documentation>
  1009. </xsd:annotation>
  1010. </xsd:element>
  1011. </xsd:sequence>
  1012. <xsd:attribute name="id" type="xsd:ID"/>
  1013. </xsd:complexType>
  1014.  
  1015. <!-- **************************************************** -->
  1016.  
  1017. <xsd:complexType name="transport-guaranteeType">
  1018. <xsd:annotation>
  1019. <xsd:documentation>
  1020.  
  1021. The transport-guaranteeType specifies that the communication
  1022. between client and server should be NONE, INTEGRAL, or
  1023. CONFIDENTIAL. NONE means that the application does not
  1024. require any transport guarantees. A value of INTEGRAL means
  1025. that the application requires that the data sent between the
  1026. client and server be sent in such a way that it can't be
  1027. changed in transit. CONFIDENTIAL means that the application
  1028. requires that the data be transmitted in a fashion that
  1029. prevents other entities from observing the contents of the
  1030. transmission. In most cases, the presence of the INTEGRAL or
  1031. CONFIDENTIAL flag will indicate that the use of SSL is
  1032. required.
  1033.  
  1034. Used in: user-data-constraint
  1035.  
  1036. </xsd:documentation>
  1037. </xsd:annotation>
  1038.  
  1039. <xsd:simpleContent>
  1040. <xsd:restriction base="javaee:string">
  1041. <xsd:enumeration value="NONE"/>
  1042. <xsd:enumeration value="INTEGRAL"/>
  1043. <xsd:enumeration value="CONFIDENTIAL"/>
  1044. </xsd:restriction>
  1045. </xsd:simpleContent>
  1046. </xsd:complexType>
  1047.  
  1048. <!-- **************************************************** -->
  1049.  
  1050. <xsd:complexType name="user-data-constraintType">
  1051. <xsd:annotation>
  1052. <xsd:documentation>
  1053.  
  1054. The user-data-constraintType is used to indicate how
  1055. data communicated between the client and container should be
  1056. protected.
  1057.  
  1058. Used in: security-constraint
  1059.  
  1060. </xsd:documentation>
  1061. </xsd:annotation>
  1062.  
  1063. <xsd:sequence>
  1064. <xsd:element name="description"
  1065. type="javaee:descriptionType"
  1066. minOccurs="0"
  1067. maxOccurs="unbounded"/>
  1068. <xsd:element name="transport-guarantee"
  1069. type="javaee:transport-guaranteeType"/>
  1070. </xsd:sequence>
  1071. <xsd:attribute name="id" type="xsd:ID"/>
  1072. </xsd:complexType>
  1073.  
  1074. <!-- **************************************************** -->
  1075.  
  1076. <xsd:complexType name="war-pathType">
  1077. <xsd:annotation>
  1078. <xsd:documentation>
  1079.  
  1080. The elements that use this type designate a path starting
  1081. with a "/" and interpreted relative to the root of a WAR
  1082. file.
  1083.  
  1084. </xsd:documentation>
  1085. </xsd:annotation>
  1086. <xsd:simpleContent>
  1087. <xsd:restriction base="javaee:string">
  1088. <xsd:pattern value="/.*"/>
  1089. </xsd:restriction>
  1090. </xsd:simpleContent>
  1091. </xsd:complexType>
  1092.  
  1093. <!-- **************************************************** -->
  1094.  
  1095. <xsd:simpleType name="web-app-versionType">
  1096. <xsd:annotation>
  1097. <xsd:documentation>
  1098.  
  1099. This type contains the recognized versions of
  1100. web-application supported. It is used to designate the
  1101. version of the web application.
  1102.  
  1103. </xsd:documentation>
  1104. </xsd:annotation>
  1105. <xsd:restriction base="xsd:token">
  1106. <xsd:enumeration value="2.5"/>
  1107. </xsd:restriction>
  1108. </xsd:simpleType>
  1109.  
  1110. <!-- **************************************************** -->
  1111.  
  1112. <xsd:complexType name="web-appType">
  1113.  
  1114. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  1115. <xsd:group ref="javaee:descriptionGroup"/>
  1116. <xsd:element name="distributable"
  1117. type="javaee:emptyType"/>
  1118. <xsd:element name="context-param"
  1119. type="javaee:param-valueType">
  1120.  
  1121. <xsd:annotation>
  1122. <xsd:documentation>
  1123.  
  1124. The context-param element contains the declaration
  1125. of a web application's servlet context
  1126. initialization parameters.
  1127.  
  1128. </xsd:documentation>
  1129. </xsd:annotation>
  1130. </xsd:element>
  1131.  
  1132. <xsd:element name="filter"
  1133. type="javaee:filterType"/>
  1134. <xsd:element name="filter-mapping"
  1135. type="javaee:filter-mappingType"/>
  1136. <xsd:element name="listener"
  1137. type="javaee:listenerType"/>
  1138. <xsd:element name="servlet"
  1139. type="javaee:servletType"/>
  1140. <xsd:element name="servlet-mapping"
  1141. type="javaee:servlet-mappingType"/>
  1142. <xsd:element name="session-config"
  1143. type="javaee:session-configType"/>
  1144. <xsd:element name="mime-mapping"
  1145. type="javaee:mime-mappingType"/>
  1146. <xsd:element name="welcome-file-list"
  1147. type="javaee:welcome-file-listType"/>
  1148. <xsd:element name="error-page"
  1149. type="javaee:error-pageType"/>
  1150. <xsd:element name="jsp-config"
  1151. type="javaee:jsp-configType"/>
  1152. <xsd:element name="security-constraint"
  1153. type="javaee:security-constraintType"/>
  1154. <xsd:element name="login-config"
  1155. type="javaee:login-configType"/>
  1156. <xsd:element name="security-role"
  1157. type="javaee:security-roleType"/>
  1158. <xsd:group ref="javaee:jndiEnvironmentRefsGroup"/>
  1159. <xsd:element name="message-destination"
  1160. type="javaee:message-destinationType"/>
  1161. <xsd:element name="locale-encoding-mapping-list"
  1162. type="javaee:locale-encoding-mapping-listType"/>
  1163. </xsd:choice>
  1164.  
  1165. <xsd:attribute name="version"
  1166. type="javaee:web-app-versionType"
  1167. use="required"/>
  1168. <xsd:attribute name="id" type="xsd:ID"/>
  1169.  
  1170. <xsd:attribute name="metadata-complete" type="xsd:boolean">
  1171. <xsd:annotation>
  1172. <xsd:documentation>
  1173.  
  1174. The metadata-complete attribute defines whether this
  1175. deployment descriptor and other related deployment
  1176. descriptors for this module (e.g., web service
  1177. descriptors) are complete, or whether the class
  1178. files available to this module and packaged with
  1179. this application should be examined for annotations
  1180. that specify deployment information.
  1181.  
  1182. If metadata-complete is set to "true", the deployment
  1183. tool must ignore any annotations that specify deployment
  1184. information, which might be present in the class files
  1185. of the application.
  1186.  
  1187. If metadata-complete is not specified or is set to
  1188. "false", the deployment tool must examine the class
  1189. files of the application for annotations, as
  1190. specified by the specifications.
  1191.  
  1192. </xsd:documentation>
  1193. </xsd:annotation>
  1194. </xsd:attribute>
  1195.  
  1196. </xsd:complexType>
  1197.  
  1198. <!-- **************************************************** -->
  1199.  
  1200. <xsd:complexType name="web-resource-collectionType">
  1201. <xsd:annotation>
  1202. <xsd:documentation>
  1203.  
  1204. The web-resource-collectionType is used to identify a subset
  1205. of the resources and HTTP methods on those resources within
  1206. a web application to which a security constraint applies. If
  1207. no HTTP methods are specified, then the security constraint
  1208. applies to all HTTP methods.
  1209.  
  1210. Used in: security-constraint
  1211.  
  1212. </xsd:documentation>
  1213. </xsd:annotation>
  1214.  
  1215. <xsd:sequence>
  1216. <xsd:element name="web-resource-name"
  1217. type="javaee:string">
  1218. <xsd:annotation>
  1219. <xsd:documentation>
  1220.  
  1221. The web-resource-name contains the name of this web
  1222. resource collection.
  1223.  
  1224. </xsd:documentation>
  1225. </xsd:annotation>
  1226. </xsd:element>
  1227. <xsd:element name="description"
  1228. type="javaee:descriptionType"
  1229. minOccurs="0"
  1230. maxOccurs="unbounded"/>
  1231. <xsd:element name="url-pattern"
  1232. type="javaee:url-patternType"
  1233. maxOccurs="unbounded"/>
  1234. <xsd:element name="http-method"
  1235. type="javaee:http-methodType"
  1236. minOccurs="0" maxOccurs="unbounded"/>
  1237. </xsd:sequence>
  1238. <xsd:attribute name="id" type="xsd:ID"/>
  1239. </xsd:complexType>
  1240.  
  1241. <!-- **************************************************** -->
  1242.  
  1243. <xsd:complexType name="welcome-file-listType">
  1244. <xsd:annotation>
  1245. <xsd:documentation>
  1246.  
  1247. The welcome-file-list contains an ordered list of welcome
  1248. files elements.
  1249.  
  1250. Used in: web-app
  1251.  
  1252. </xsd:documentation>
  1253. </xsd:annotation>
  1254.  
  1255. <xsd:sequence>
  1256. <xsd:element name="welcome-file"
  1257. type="xsd:string"
  1258. maxOccurs="unbounded">
  1259. <xsd:annotation>
  1260. <xsd:documentation>
  1261.  
  1262. The welcome-file element contains file name to use
  1263. as a default welcome file, such as index.html
  1264.  
  1265. </xsd:documentation>
  1266. </xsd:annotation>
  1267. </xsd:element>
  1268. </xsd:sequence>
  1269. <xsd:attribute name="id" type="xsd:ID"/>
  1270. </xsd:complexType>
  1271.  
  1272. </xsd:schema>

javaWeb项目中web.xml的xsd( XML Schemas Definition)文件的更多相关文章

  1. JavaWeb项目中web.xml有关servlet的基本配置

    JavaWeb项目中web.xml有关servlet的基本配置: 我们注意到,tomcat下的conf中也有一个web.xml文件,没错的,所有的JavaWeb项目中web.xml都继承自服务器下的w ...

  2. javaWeb项目中Web.xml的基本配置

    这个地址写的非常好 ,欢迎大家访问 Å:http://www.cnblogs.com/hxsyl/p/3435412.html 一.理论准备 先说下我记得xml规则,必须有且只有一个根节点,大小写敏感 ...

  3. 对javaweb项目中web.xml重用配置的理解(个人学习小结)

    <!-- 所有的总结描述性与语言都在注释中 --><?xml version="1.0" encoding="UTF-8"?> < ...

  4. javaweb项目中web.xml配置文件的/和/*的区别

    1.拦截"/",可以实现现在很流行的REST风格.很多互联网类型的应用很喜欢这种风格的URL.为了实现REST风格,拦截了所有的请求.同时对*.js,*.jpg等静态文件的访问也就 ...

  5. SpringMVC项目中web.xml中的节点载入顺序问题

    SpringMVC项目中web.xml中的节点载入顺序问题,之前以为web.xml中就是一些配置信息,和节点的顺序没有关系.后来才发现初始化时的载入顺序是和节点的顺序相关的. 完整的web.xml文件 ...

  6. 自身使用的springboot项目中比较全的pom.xml

    在学习的时候常建新的项目,mark下商用的jar <dependency> <groupId>org.mybatis</groupId> <artifactI ...

  7. log4j在javaWeb项目中的使用

    在前边的文章中对log4j的配置文件进行了说明,今天介绍如何在普通的javaWeb项目中使用log4j. 在日常的开发过程中,日志使用的很频繁,我们可以利用日志来跟踪程序的错误,程序运行时的输出参数等 ...

  8. Druid使用起步—在javaWeb项目中配置监控 连接池

    当我们在javaWEB项目中使用到druid来作为我们的连接池的时候,一定不会忘了添加监控功能.下面我们就来看一下,在一个简单的web项目中(尚未使用任何框架)我们是如果来配置我们的web.xml来完 ...

  9. JavaWeb 项目中的绝对路径和相对路径以及问题的解决方式

    近期在做JavaWeb项目,总是出现各种的路径错误,并且发现不同情况下 /  所代表的含义不同,导致在调试路径上浪费了大量时间. 在JavaWeb项目中尽量使用绝对路径  由于使用绝对路径是绝对不会出 ...

随机推荐

  1. java中获取路径中的空格处理(%20)问题

    在java中获取文件路径的时候,有时候会获取到空格,但是在中文编码环境下,空格会变成“%20”从而使得路径错误. 解决办法: String path = Parameter.class.getReso ...

  2. TCP/IP协议栈概述

    TCP/IP协议栈概述 这篇文章虽然只是很粗浅的介绍了ISO/OSI 网络模型,但确实把握住了关键点,某种意义上,简单回顾一下就可以加深对TCP/IP协议栈的理解. 原作者:阮一峰 链接: http: ...

  3. spring mvc实现登录+异常

    登录页面login.jsp在webroot下 <body> <form action="user/login" method="post"&g ...

  4. WPF 窗口自定义拉伸

    .NET技术交流群 199281001 .欢迎加入. //自定义窗体拉伸 public HwndSource _HwndkaifaSource; private const int WM_SYSCOM ...

  5. git常见问题解决办法

    1,git status乱码 git config --global core.quotepath false 执行完后再使用时,就显示正常了

  6. curl模拟post请求

    1,curl -d "userType=seller&userId=1034285" "www.baidu.com/getInfo.php"  curl ...

  7. 微信公开课发布微信官方教程:教你用好微信JS-SDK接口

    微信公众平台开放JS-SDK(微信内网页开发工具包),说明文档已经有相关使用方法和示例了,很多同学觉得不是很直观,为此微信公开课发布微信官方教程:教你用好微信JS-SDK接口. 1.分享类接口:支持获 ...

  8. Protocol Buffers介绍

    基本概念 Protocol Buffers(以下简称PB)是一种独立于语言.独立于开发平台.可扩展的序列化数据结构框架,它常常被用在通信.数据序列化保存等方面. PB是一种敏捷.高效.自动化的用于对数 ...

  9. WP_Image_Editor_Imagick 漏洞临时解决方法

    导读 阿里云推送的一条短信通知:存放在上面的WordPress程序有WP_Image_Editor_Imagick漏洞问题,需要登入后台补丁等等的暗示.当然,如果需要在线补丁则需要升级阿里云的安骑士专 ...

  10. 如何在Linux上实现文件系统的自动检查和修复?

    Linux文件系统有可能在各种各样的情况下受到损坏,比如系统崩溃.突然断电.磁盘断开,或者文件节点 (i-node)不小心被覆盖等等,因此需要定期检查文件系统,而说到检查和修复Linux文件系统,fs ...