david_williams | e073de1 | 2007-04-28 04:01:44 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" |
| 4 | targetNamespace="http://java.sun.com/xml/ns/j2ee" |
| 5 | xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" |
| 6 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 7 | elementFormDefault="qualified" |
| 8 | attributeFormDefault="unqualified" |
| 9 | version="1.4"> |
| 10 | <xsd:annotation> |
| 11 | <xsd:documentation> |
| 12 | @(#)application_1_4.xsds 1.13 02/11/03 |
| 13 | </xsd:documentation> |
| 14 | </xsd:annotation> |
| 15 | |
| 16 | <xsd:annotation> |
| 17 | <xsd:documentation> |
| 18 | |
| 19 | Copyright 2003 Sun Microsystems, Inc., 901 San Antonio |
| 20 | Road, Palo Alto, California 94303, U.S.A. All rights |
| 21 | reserved. |
| 22 | |
| 23 | Sun Microsystems, Inc. has intellectual property rights |
| 24 | relating to technology described in this document. In |
| 25 | particular, and without limitation, these intellectual |
| 26 | property rights may include one or more of the U.S. patents |
| 27 | listed at http://www.sun.com/patents and one or more |
| 28 | additional patents or pending patent applications in the |
| 29 | U.S. and other countries. |
| 30 | |
| 31 | This document and the technology which it describes are |
| 32 | distributed under licenses restricting their use, copying, |
| 33 | distribution, and decompilation. No part of this document |
| 34 | may be reproduced in any form by any means without prior |
| 35 | written authorization of Sun and its licensors, if any. |
| 36 | |
| 37 | Third-party software, including font technology, is |
| 38 | copyrighted and licensed from Sun suppliers. |
| 39 | |
| 40 | Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, |
| 41 | JavaServer Pages, Enterprise JavaBeans and the Java Coffee |
| 42 | Cup logo are trademarks or registered trademarks of Sun |
| 43 | Microsystems, Inc. in the U.S. and other countries. |
| 44 | |
| 45 | Federal Acquisitions: Commercial Software - Government Users |
| 46 | Subject to Standard License Terms and Conditions. |
| 47 | |
| 48 | </xsd:documentation> |
| 49 | </xsd:annotation> |
| 50 | |
| 51 | <xsd:annotation> |
| 52 | <xsd:documentation> |
| 53 | <![CDATA[ |
| 54 | |
| 55 | This is the XML Schema for the application 1.4 deployment |
| 56 | descriptor. The deployment descriptor must be named |
| 57 | "META-INF/application.xml" in the application's ear file. |
| 58 | All application deployment descriptors must indicate |
| 59 | the application schema by using the J2EE namespace: |
| 60 | |
| 61 | http://java.sun.com/xml/ns/j2ee |
| 62 | |
| 63 | and indicate the version of the schema by |
| 64 | using the version element as shown below: |
| 65 | |
| 66 | <application xmlns="http://java.sun.com/xml/ns/j2ee" |
| 67 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 68 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee |
| 69 | http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" |
| 70 | version="1.4"> |
| 71 | ... |
| 72 | </application> |
| 73 | |
| 74 | The instance documents may indicate the published version of |
| 75 | the schema using the xsi:schemaLocation attribute for J2EE |
| 76 | namespace with the following location: |
| 77 | |
| 78 | http://java.sun.com/xml/ns/j2ee/application_1_4.xsd |
| 79 | |
| 80 | ]]> |
| 81 | </xsd:documentation> |
| 82 | </xsd:annotation> |
| 83 | |
| 84 | <xsd:annotation> |
| 85 | <xsd:documentation> |
| 86 | |
| 87 | The following conventions apply to all J2EE |
| 88 | deployment descriptor elements unless indicated otherwise. |
| 89 | |
| 90 | - In elements that specify a pathname to a file within the |
| 91 | same JAR file, relative filenames (i.e., those not |
| 92 | starting with "/") are considered relative to the root of |
| 93 | the JAR file's namespace. Absolute filenames (i.e., those |
| 94 | starting with "/") also specify names in the root of the |
| 95 | JAR file's namespace. In general, relative names are |
| 96 | preferred. The exception is .war files where absolute |
| 97 | names are preferred for consistency with the Servlet API. |
| 98 | |
| 99 | </xsd:documentation> |
| 100 | </xsd:annotation> |
| 101 | |
| 102 | <xsd:include schemaLocation="j2ee_1_4.xsd"/> |
| 103 | |
| 104 | |
| 105 | <!-- **************************************************** --> |
| 106 | |
| 107 | |
| 108 | <xsd:element name="application" type="j2ee:applicationType"> |
| 109 | <xsd:annotation> |
| 110 | <xsd:documentation> |
| 111 | |
| 112 | The application element is the root element of a J2EE |
| 113 | application deployment descriptor. |
| 114 | |
| 115 | </xsd:documentation> |
| 116 | </xsd:annotation> |
| 117 | |
| 118 | <xsd:unique name="context-root-uniqueness"> |
| 119 | <xsd:annotation> |
| 120 | <xsd:documentation> |
| 121 | |
| 122 | The context-root element content must be unique |
| 123 | in the ear. |
| 124 | |
| 125 | </xsd:documentation> |
| 126 | </xsd:annotation> |
| 127 | <xsd:selector xpath="j2ee:module/j2ee:web"/> |
| 128 | <xsd:field xpath="j2ee:context-root"/> |
| 129 | </xsd:unique> |
| 130 | |
| 131 | <xsd:unique name="security-role-uniqueness"> |
| 132 | <xsd:annotation> |
| 133 | <xsd:documentation> |
| 134 | |
| 135 | The security-role-name element content |
| 136 | must be unique in the ear. |
| 137 | |
| 138 | </xsd:documentation> |
| 139 | </xsd:annotation> |
| 140 | <xsd:selector xpath="j2ee:security-role"/> |
| 141 | <xsd:field xpath="j2ee:role-name"/> |
| 142 | </xsd:unique> |
| 143 | |
| 144 | </xsd:element> |
| 145 | |
| 146 | <!-- **************************************************** --> |
| 147 | |
| 148 | <xsd:complexType name="applicationType"> |
| 149 | <xsd:annotation> |
| 150 | <xsd:documentation> |
| 151 | |
| 152 | The applicationType defines the structure of the |
| 153 | application. |
| 154 | |
| 155 | </xsd:documentation> |
| 156 | </xsd:annotation> |
| 157 | |
| 158 | <xsd:sequence> |
| 159 | <xsd:group ref="j2ee:descriptionGroup"/> |
| 160 | <xsd:element name="module" |
| 161 | type="j2ee:moduleType" |
| 162 | maxOccurs="unbounded"> |
| 163 | <xsd:annotation> |
| 164 | <xsd:documentation> |
| 165 | |
| 166 | The application deployment descriptor must have one |
| 167 | module element for each J2EE module in the |
| 168 | application package. A module element is defined |
| 169 | by moduleType definition. |
| 170 | |
| 171 | </xsd:documentation> |
| 172 | </xsd:annotation> |
| 173 | </xsd:element> |
| 174 | <xsd:element name="security-role" |
| 175 | type="j2ee:security-roleType" |
| 176 | minOccurs="0" |
| 177 | maxOccurs="unbounded"/> |
| 178 | </xsd:sequence> |
| 179 | <xsd:attribute name="version" |
| 180 | type="j2ee:dewey-versionType" |
| 181 | fixed="1.4" |
| 182 | use="required"> |
| 183 | <xsd:annotation> |
| 184 | <xsd:documentation> |
| 185 | |
| 186 | The required value for the version is 1.4. |
| 187 | |
| 188 | </xsd:documentation> |
| 189 | </xsd:annotation> |
| 190 | </xsd:attribute> |
| 191 | |
| 192 | <xsd:attribute name="id" type="xsd:ID"/> |
| 193 | </xsd:complexType> |
| 194 | |
| 195 | <!-- **************************************************** --> |
| 196 | |
| 197 | <xsd:complexType name="moduleType"> |
| 198 | <xsd:annotation> |
| 199 | <xsd:documentation> |
| 200 | |
| 201 | The moduleType defines a single J2EE module and contains a |
| 202 | connector, ejb, java, or web element, which indicates the |
| 203 | module type and contains a path to the module file, and an |
| 204 | optional alt-dd element, which specifies an optional URI to |
| 205 | the post-assembly version of the deployment descriptor. |
| 206 | |
| 207 | </xsd:documentation> |
| 208 | </xsd:annotation> |
| 209 | |
| 210 | <xsd:sequence> |
| 211 | <xsd:choice> |
| 212 | <xsd:element name="connector" |
| 213 | type="j2ee:pathType"> |
| 214 | <xsd:annotation> |
| 215 | <xsd:documentation> |
| 216 | |
| 217 | The connector element specifies the URI of a |
| 218 | resource adapter archive file, relative to the |
| 219 | top level of the application package. |
| 220 | |
| 221 | </xsd:documentation> |
| 222 | </xsd:annotation> |
| 223 | </xsd:element> |
| 224 | <xsd:element name="ejb" |
| 225 | type="j2ee:pathType"> |
| 226 | <xsd:annotation> |
| 227 | <xsd:documentation> |
| 228 | |
| 229 | The ejb element specifies the URI of an ejb-jar, |
| 230 | relative to the top level of the application |
| 231 | package. |
| 232 | |
| 233 | </xsd:documentation> |
| 234 | </xsd:annotation> |
| 235 | </xsd:element> |
| 236 | <xsd:element name="java" |
| 237 | type="j2ee:pathType"> |
| 238 | <xsd:annotation> |
| 239 | <xsd:documentation> |
| 240 | |
| 241 | The java element specifies the URI of a java |
| 242 | application client module, relative to the top |
| 243 | level of the application package. |
| 244 | |
| 245 | </xsd:documentation> |
| 246 | </xsd:annotation> |
| 247 | </xsd:element> |
| 248 | <xsd:element name="web" |
| 249 | type="j2ee:webType"/> |
| 250 | </xsd:choice> |
| 251 | <xsd:element name="alt-dd" |
| 252 | type="j2ee:pathType" |
| 253 | minOccurs="0"> |
| 254 | <xsd:annotation> |
| 255 | <xsd:documentation> |
| 256 | |
| 257 | The alt-dd element specifies an optional URI to the |
| 258 | post-assembly version of the deployment descriptor |
| 259 | file for a particular J2EE module. The URI must |
| 260 | specify the full pathname of the deployment |
| 261 | descriptor file relative to the application's root |
| 262 | directory. If alt-dd is not specified, the deployer |
| 263 | must read the deployment descriptor from the default |
| 264 | location and file name required by the respective |
| 265 | component specification. |
| 266 | |
| 267 | </xsd:documentation> |
| 268 | </xsd:annotation> |
| 269 | </xsd:element> |
| 270 | </xsd:sequence> |
| 271 | <xsd:attribute name="id" type="xsd:ID"/> |
| 272 | </xsd:complexType> |
| 273 | |
| 274 | <!-- **************************************************** --> |
| 275 | |
| 276 | <xsd:complexType name="webType"> |
| 277 | <xsd:annotation> |
| 278 | <xsd:documentation> |
| 279 | |
| 280 | The webType defines the web-uri and context-root of |
| 281 | a web application module. |
| 282 | |
| 283 | </xsd:documentation> |
| 284 | </xsd:annotation> |
| 285 | <xsd:sequence> |
| 286 | <xsd:element name="web-uri" |
| 287 | type="j2ee:pathType"> |
| 288 | <xsd:annotation> |
| 289 | <xsd:documentation> |
| 290 | |
| 291 | The web-uri element specifies the URI of a web |
| 292 | application file, relative to the top level of the |
| 293 | application package. |
| 294 | |
| 295 | </xsd:documentation> |
| 296 | </xsd:annotation> |
| 297 | </xsd:element> |
| 298 | <xsd:element name="context-root" |
| 299 | type="j2ee:string"> |
| 300 | |
| 301 | <xsd:annotation> |
| 302 | <xsd:documentation> |
| 303 | |
| 304 | The context-root element specifies the context root |
| 305 | of a web application. |
| 306 | |
| 307 | </xsd:documentation> |
| 308 | </xsd:annotation> |
| 309 | </xsd:element> |
| 310 | </xsd:sequence> |
| 311 | <xsd:attribute name="id" type="xsd:ID"/> |
| 312 | </xsd:complexType> |
| 313 | |
| 314 | </xsd:schema> |
| 315 | |