application_6.xsd 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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="6">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  12. Copyright 2003-2009 Sun Microsystems, Inc. All rights reserved.
  13. The contents of this file are subject to the terms of either the
  14. GNU General Public License Version 2 only ("GPL") or the Common
  15. Development and Distribution License("CDDL") (collectively, the
  16. "License"). You may not use this file except in compliance with
  17. the License. You can obtain a copy of the License at
  18. https://glassfish.dev.java.net/public/CDDL+GPL.html or
  19. glassfish/bootstrap/legal/LICENSE.txt. See the License for the
  20. specific language governing permissions and limitations under the
  21. License.
  22. When distributing the software, include this License Header
  23. Notice in each file and include the License file at
  24. glassfish/bootstrap/legal/LICENSE.txt. Sun designates this
  25. particular file as subject to the "Classpath" exception as
  26. provided by Sun in the GPL Version 2 section of the License file
  27. that accompanied this code. If applicable, add the following
  28. below the License Header, with the fields enclosed by brackets []
  29. replaced by your own identifying information:
  30. "Portions Copyrighted [year] [name of copyright owner]"
  31. Contributor(s):
  32. If you wish your version of this file to be governed by only the
  33. CDDL or only the GPL Version 2, indicate your decision by adding
  34. "[Contributor] elects to include this software in this
  35. distribution under the [CDDL or GPL Version 2] license." If you
  36. don't indicate a single choice of license, a recipient has the
  37. option to distribute your version of this file under either the
  38. CDDL, the GPL Version 2 or to extend the choice of license to its
  39. licensees as provided above. However, if you add GPL Version 2
  40. code and therefore, elected the GPL Version 2 license, then the
  41. option applies only if the new code is made subject to such
  42. option by the copyright holder.
  43. </xsd:documentation>
  44. </xsd:annotation>
  45. <xsd:annotation>
  46. <xsd:documentation>
  47. <![CDATA[[
  48. This is the XML Schema for the application 6 deployment
  49. descriptor. The deployment descriptor must be named
  50. "META-INF/application.xml" in the application's ear file.
  51. All application deployment descriptors must indicate
  52. the application schema by using the Java EE namespace:
  53. http://java.sun.com/xml/ns/javaee
  54. and indicate the version of the schema by
  55. using the version element as shown below:
  56. <application xmlns="http://java.sun.com/xml/ns/javaee"
  57. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  58. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  59. http://java.sun.com/xml/ns/javaee/application_6.xsd"
  60. version="6">
  61. ...
  62. </application>
  63. The instance documents may indicate the published version of
  64. the schema using the xsi:schemaLocation attribute for Java EE
  65. namespace with the following location:
  66. http://java.sun.com/xml/ns/javaee/application_6.xsd
  67. ]]>
  68. </xsd:documentation>
  69. </xsd:annotation>
  70. <xsd:annotation>
  71. <xsd:documentation>
  72. The following conventions apply to all Java EE
  73. deployment descriptor elements unless indicated otherwise.
  74. - In elements that specify a pathname to a file within the
  75. same JAR file, relative filenames (i.e., those not
  76. starting with "/") are considered relative to the root of
  77. the JAR file's namespace. Absolute filenames (i.e., those
  78. starting with "/") also specify names in the root of the
  79. JAR file's namespace. In general, relative names are
  80. preferred. The exception is .war files where absolute
  81. names are preferred for consistency with the Servlet API.
  82. </xsd:documentation>
  83. </xsd:annotation>
  84. <xsd:include schemaLocation="javaee_6.xsd"/>
  85. <!-- **************************************************** -->
  86. <xsd:element name="application"
  87. type="javaee:applicationType">
  88. <xsd:annotation>
  89. <xsd:documentation>
  90. The application element is the root element of a Java EE
  91. application deployment descriptor.
  92. </xsd:documentation>
  93. </xsd:annotation>
  94. <xsd:unique name="context-root-uniqueness">
  95. <xsd:annotation>
  96. <xsd:documentation>
  97. The context-root element content must be unique
  98. in the ear.
  99. </xsd:documentation>
  100. </xsd:annotation>
  101. <xsd:selector xpath="javaee:module/javaee:web"/>
  102. <xsd:field xpath="javaee:context-root"/>
  103. </xsd:unique>
  104. <xsd:unique name="security-role-uniqueness">
  105. <xsd:annotation>
  106. <xsd:documentation>
  107. The security-role-name element content
  108. must be unique in the ear.
  109. </xsd:documentation>
  110. </xsd:annotation>
  111. <xsd:selector xpath="javaee:security-role"/>
  112. <xsd:field xpath="javaee:role-name"/>
  113. </xsd:unique>
  114. </xsd:element>
  115. <!-- **************************************************** -->
  116. <xsd:complexType name="applicationType">
  117. <xsd:annotation>
  118. <xsd:documentation>
  119. The applicationType defines the structure of the
  120. application.
  121. </xsd:documentation>
  122. </xsd:annotation>
  123. <xsd:sequence>
  124. <xsd:element name="application-name"
  125. type="javaee:string"
  126. minOccurs="0"/>
  127. <xsd:group ref="javaee:descriptionGroup"/>
  128. <xsd:element name="initialize-in-order"
  129. type="javaee:generic-booleanType"
  130. minOccurs="0"
  131. maxOccurs="1">
  132. <xsd:annotation>
  133. <xsd:documentation>
  134. If initialize-in-order is true, modules must be initialized
  135. in the order they're listed in this deployment descriptor,
  136. with the exception of application client modules, which can
  137. be initialized in any order.
  138. If initialize-in-order is not set or set to false, the order
  139. of initialization is unspecified and may be product-dependent.
  140. </xsd:documentation>
  141. </xsd:annotation>
  142. </xsd:element>
  143. <xsd:element name="module"
  144. type="javaee:moduleType"
  145. maxOccurs="unbounded">
  146. <xsd:annotation>
  147. <xsd:documentation>
  148. The application deployment descriptor must have one
  149. module element for each Java EE module in the
  150. application package. A module element is defined
  151. by moduleType definition.
  152. </xsd:documentation>
  153. </xsd:annotation>
  154. </xsd:element>
  155. <xsd:element name="security-role"
  156. type="javaee:security-roleType"
  157. minOccurs="0"
  158. maxOccurs="unbounded"/>
  159. <xsd:element name="library-directory"
  160. type="javaee:pathType"
  161. minOccurs="0"
  162. maxOccurs="1">
  163. <xsd:annotation>
  164. <xsd:documentation>
  165. The library-directory element specifies the pathname
  166. of a directory within the application package, relative
  167. to the top level of the application package. All files
  168. named "*.jar" in this directory must be made available
  169. in the class path of all components included in this
  170. application package. If this element isn't specified,
  171. the directory named "lib" is searched. An empty element
  172. may be used to disable searching.
  173. </xsd:documentation>
  174. </xsd:annotation>
  175. </xsd:element>
  176. <xsd:element name="env-entry"
  177. type="javaee:env-entryType"
  178. minOccurs="0"
  179. maxOccurs="unbounded"/>
  180. <xsd:element name="ejb-ref"
  181. type="javaee:ejb-refType"
  182. minOccurs="0"
  183. maxOccurs="unbounded"/>
  184. <xsd:element name="ejb-local-ref"
  185. type="javaee:ejb-local-refType"
  186. minOccurs="0"
  187. maxOccurs="unbounded"/>
  188. <xsd:group ref="javaee:service-refGroup"/>
  189. <xsd:element name="resource-ref"
  190. type="javaee:resource-refType"
  191. minOccurs="0"
  192. maxOccurs="unbounded"/>
  193. <xsd:element name="resource-env-ref"
  194. type="javaee:resource-env-refType"
  195. minOccurs="0"
  196. maxOccurs="unbounded"/>
  197. <xsd:element name="message-destination-ref"
  198. type="javaee:message-destination-refType"
  199. minOccurs="0"
  200. maxOccurs="unbounded"/>
  201. <xsd:element name="persistence-context-ref"
  202. type="javaee:persistence-context-refType"
  203. minOccurs="0"
  204. maxOccurs="unbounded"/>
  205. <xsd:element name="persistence-unit-ref"
  206. type="javaee:persistence-unit-refType"
  207. minOccurs="0"
  208. maxOccurs="unbounded"/>
  209. <xsd:element name="message-destination"
  210. type="javaee:message-destinationType"
  211. minOccurs="0"
  212. maxOccurs="unbounded"/>
  213. <xsd:element name="data-source"
  214. type="javaee:data-sourceType"
  215. minOccurs="0"
  216. maxOccurs="unbounded"/>
  217. </xsd:sequence>
  218. <xsd:attribute name="version"
  219. type="javaee:dewey-versionType"
  220. fixed="6"
  221. use="required">
  222. <xsd:annotation>
  223. <xsd:documentation>
  224. The required value for the version is 6.
  225. </xsd:documentation>
  226. </xsd:annotation>
  227. </xsd:attribute>
  228. <xsd:attribute name="id"
  229. type="xsd:ID"/>
  230. </xsd:complexType>
  231. <!-- **************************************************** -->
  232. <xsd:complexType name="moduleType">
  233. <xsd:annotation>
  234. <xsd:documentation>
  235. The moduleType defines a single Java EE module and contains a
  236. connector, ejb, java, or web element, which indicates the
  237. module type and contains a path to the module file, and an
  238. optional alt-dd element, which specifies an optional URI to
  239. the post-assembly version of the deployment descriptor.
  240. </xsd:documentation>
  241. </xsd:annotation>
  242. <xsd:sequence>
  243. <xsd:choice>
  244. <xsd:element name="connector"
  245. type="javaee:pathType">
  246. <xsd:annotation>
  247. <xsd:documentation>
  248. The connector element specifies the URI of a
  249. resource adapter archive file, relative to the
  250. top level of the application package.
  251. </xsd:documentation>
  252. </xsd:annotation>
  253. </xsd:element>
  254. <xsd:element name="ejb"
  255. type="javaee:pathType">
  256. <xsd:annotation>
  257. <xsd:documentation>
  258. The ejb element specifies the URI of an ejb-jar,
  259. relative to the top level of the application
  260. package.
  261. </xsd:documentation>
  262. </xsd:annotation>
  263. </xsd:element>
  264. <xsd:element name="java"
  265. type="javaee:pathType">
  266. <xsd:annotation>
  267. <xsd:documentation>
  268. The java element specifies the URI of a java
  269. application client module, relative to the top
  270. level of the application package.
  271. </xsd:documentation>
  272. </xsd:annotation>
  273. </xsd:element>
  274. <xsd:element name="web"
  275. type="javaee:webType"/>
  276. </xsd:choice>
  277. <xsd:element name="alt-dd"
  278. type="javaee:pathType"
  279. minOccurs="0">
  280. <xsd:annotation>
  281. <xsd:documentation>
  282. The alt-dd element specifies an optional URI to the
  283. post-assembly version of the deployment descriptor
  284. file for a particular Java EE module. The URI must
  285. specify the full pathname of the deployment
  286. descriptor file relative to the application's root
  287. directory. If alt-dd is not specified, the deployer
  288. must read the deployment descriptor from the default
  289. location and file name required by the respective
  290. component specification.
  291. </xsd:documentation>
  292. </xsd:annotation>
  293. </xsd:element>
  294. </xsd:sequence>
  295. <xsd:attribute name="id"
  296. type="xsd:ID"/>
  297. </xsd:complexType>
  298. <!-- **************************************************** -->
  299. <xsd:complexType name="webType">
  300. <xsd:annotation>
  301. <xsd:documentation>
  302. The webType defines the web-uri and context-root of
  303. a web application module.
  304. </xsd:documentation>
  305. </xsd:annotation>
  306. <xsd:sequence>
  307. <xsd:element name="web-uri"
  308. type="javaee:pathType">
  309. <xsd:annotation>
  310. <xsd:documentation>
  311. The web-uri element specifies the URI of a web
  312. application file, relative to the top level of the
  313. application package.
  314. </xsd:documentation>
  315. </xsd:annotation>
  316. </xsd:element>
  317. <xsd:element name="context-root"
  318. type="javaee:string">
  319. <xsd:annotation>
  320. <xsd:documentation>
  321. The context-root element specifies the context root
  322. of a web application.
  323. </xsd:documentation>
  324. </xsd:annotation>
  325. </xsd:element>
  326. </xsd:sequence>
  327. <xsd:attribute name="id"
  328. type="xsd:ID"/>
  329. </xsd:complexType>
  330. </xsd:schema>