File: TestWebApp.xsd

package info (click to toggle)
netbeans 8.1%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816,472 kB
  • ctags: 847,258
  • sloc: java: 5,564,229; xml: 634,273; cpp: 25,695; ansic: 20,104; jsp: 12,621; sh: 10,354; php: 4,204; makefile: 1,456; fortran: 1,200; sql: 1,192; objc: 288; perl: 277; haskell: 120; yacc: 30; awk: 17; lex: 11; asm: 4
file content (1288 lines) | stat: -rw-r--r-- 38,988 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
     targetNamespace="http://java.sun.com/xml/ns/j2ee"
     xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:s2b="http://schema2beans.netbeans.org"
     elementFormDefault="qualified"
     attributeFormDefault="unqualified"
     version="2.4">
<xsd:annotation>
<xsd:documentation>
@(#)web-app_2_4.xsds	1.34 02/08/01
</xsd:documentation>
</xsd:annotation>

<xsd:annotation>
<xsd:documentation>

Copyright 2002 Sun Microsystems, Inc., 901 San Antonio
Road, Palo Alto, California 94303, U.S.A. All rights
reserved.

Sun Microsystems, Inc. has intellectual property rights
relating to technology described in this document. In
particular, and without limitation, these intellectual
property rights may include one or more of the U.S. patents
listed at http://www.sun.com/patents and one or more
additional patents or pending patent applications in the
U.S. and other countries.

This document and the technology which it describes are
distributed under licenses restricting their use, copying,
distribution, and decompilation. No part of this document
may be reproduced in any form by any means without prior
written authorization of Sun and its licensors, if any.

Third-party software, including font technology, is
copyrighted and licensed from Sun suppliers.

Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
JavaServer Pages, Enterprise JavaBeans and the Java Coffee
Cup logo are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.

Federal Acquisitions: Commercial Software - Government Users
Subject to Standard License Terms and Conditions.

</xsd:documentation>
</xsd:annotation>

<xsd:annotation>
<xsd:documentation>

This is the XML Schema for the Servlet 2.4 deployment
descriptor.  All Servlet deployment descriptors must
indicate the web application schema by using the J2EE
namespace:

http://java.sun.com/xml/ns/j2ee

and by indicating the version of the schema by
using the version element as shown below:

    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="..."
     version="2.4">
    ...
    </web-app>

The instance documents may indicate the published version of
the schema using the xsi:schemaLocation attribute for J2EE
namespace with the following location:

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

</xsd:documentation>
</xsd:annotation>

<xsd:annotation>
<xsd:documentation>

The following conventions apply to all J2EE
deployment descriptor elements unless indicated otherwise.

- In elements that specify a pathname to a file within the
  same JAR file, relative filenames (i.e., those not
  starting with "/") are considered relative to the root of
  the JAR file's namespace.  Absolute filenames (i.e., those
  starting with "/") also specify names in the root of the
  JAR file's namespace.  In general, relative names are
  preferred.  The exception is .war files where absolute
  names are preferred for consistency with the Servlet API.

</xsd:documentation>
</xsd:annotation>

<xsd:include schemaLocation="j2ee_1_4.xsd"/>
<xsd:include schemaLocation="jsp_2_0.xsd"/>


<!-- **************************************************** -->


<xsd:element name="web-app" type="j2ee:web-appType">
    <xsd:annotation>
    <xsd:documentation>

    The web-app element is the root of the deployment
    descriptor for a web application.

    </xsd:documentation>
    </xsd:annotation>

    <xsd:unique name="servlet-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The servlet element contains the name of a servlet.
    The name must be unique within the web application.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:servlet"/>
        <xsd:field    xpath="j2ee:servlet-name"/>
    </xsd:unique>

    <xsd:unique name="filter-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The filter element contains the name of a filter.
    The name must be unique within the web application.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:filter"/>
        <xsd:field    xpath="j2ee:filter-name"/>
    </xsd:unique>

    <xsd:unique name="ejb-local-ref-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The ejb-local-ref-name element contains the name of an EJB
    reference. The EJB reference is an entry in the web
    application's environment and is relative to the
    java:comp/env context.  The name must be unique within
    the web application.

    It is recommended that name is prefixed with "ejb/".

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:ejb-local-ref"/>
        <xsd:field    xpath="j2ee:ejb-ref-name"/>
    </xsd:unique>

    <xsd:unique name="ejb-ref-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The ejb-ref-name element contains the name of an EJB
    reference. The EJB reference is an entry in the web
    application's environment and is relative to the
    java:comp/env context.  The name must be unique within
    the web application.

    It is recommended that name is prefixed with "ejb/".

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:ejb-ref"/>
        <xsd:field    xpath="j2ee:ejb-ref-name"/>
    </xsd:unique>

    <xsd:unique name="resource-env-ref-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The resource-env-ref-name element specifies the name of
    a resource environment reference; its value is the
    environment entry name used in the web application code.
    The name is a JNDI name relative to the java:comp/env
    context and must be unique within a web application.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:resource-env-ref"/>
        <xsd:field    xpath="j2ee:resource-env-ref-name"/>
    </xsd:unique>

    <xsd:unique name="message-destination-ref-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The message-destination-ref-name element specifies the name of
    a message destination reference; its value is the
    environment entry name used in the web application code.
    The name is a JNDI name relative to the java:comp/env
    context and must be unique within a web application.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:message-destination-ref"/>
        <xsd:field    xpath="j2ee:message-destination-ref-name"/>
    </xsd:unique>

    <xsd:unique name="res-ref-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The res-ref-name element specifies the name of a
    resource manager connection factory reference.  The name
    is a JNDI name relative to the java:comp/env context.
    The name must be unique within a web application.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:resource-ref"/>
        <xsd:field    xpath="j2ee:res-ref-name"/>
    </xsd:unique>

    <xsd:unique name="env-entry-name-uniqueness">
    <xsd:annotation>
    <xsd:documentation>

    The env-entry-name element contains the name of a web
    application's environment entry.  The name is a JNDI
    name relative to the java:comp/env context.  The name
    must be unique within a web application.

    </xsd:documentation>
    </xsd:annotation>

        <xsd:selector xpath="j2ee:env-entry"/>
        <xsd:field    xpath="j2ee:env-entry-name"/>
        </xsd:unique>

    <xsd:key name="role-name-key">
    <xsd:annotation>
    <xsd:documentation>

    A role-name-key is specified to allow the references
    from the security-role-refs.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:security-role"/>
        <xsd:field    xpath="j2ee:role-name"/>
    </xsd:key>

    <xsd:keyref name="role-name-references"
            refer="j2ee:role-name-key">
    <xsd:annotation>
    <xsd:documentation>

    The keyref indicates the references from
    security-role-ref to a specified role-name.

    </xsd:documentation>
    </xsd:annotation>
        <xsd:selector xpath="j2ee:servlet/j2ee:security-role-ref"/>
        <xsd:field    xpath="j2ee:role-link"/>
    </xsd:keyref>

</xsd:element>


<!-- **************************************************** -->

<xsd:complexType name="auth-constraintType">
<xsd:annotation>
<xsd:documentation>

The auth-constraintType indicates the user roles that
should be permitted access to this resource
collection. The role-name used here must either correspond
to the role-name of one of the security-role elements
defined for this web application, or be the specially
reserved role-name "*" that is a compact syntax for
indicating all roles in the web application. If both "*"
and rolenames appear, the container interprets this as all
roles.  If no roles are defined, no user is allowed access
to the portion of the web application described by the
containing security-constraint.  The container matches
role names case sensitively when determining access.

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="description"
                 type="j2ee:descriptionType"
                 minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="role-name"
                 type="j2ee:role-nameType"
                 minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="auth-methodType">
<xsd:annotation>
<xsd:documentation>

The auth-methodType is used to configure the authentication
mechanism for the web application. As a prerequisite to
gaining access to any web resources which are protected by
an authorization constraint, a user must have authenticated
using the configured mechanism. Legal values are "BASIC",
"DIGEST", "FORM", or "CLIENT-CERT".

Used in: login-config

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:enumeration value="BASIC"/>
        <xsd:enumeration value="DIGEST"/>
        <xsd:enumeration value="FORM"/>
        <xsd:enumeration value="CLIENT-CERT"/>
    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:simpleType name="dispatcherType">
<xsd:annotation>
<xsd:documentation>

The dispatcher has three legal values, FORWARD and REQUEST
and INCLUDE. A value of FORWARD means the Filter
will be applied under RequestDispatcher.forward() calls.
A value of REQUEST means the Filter will be applied
under ordinary client calls to the path or servlet. A value of
INCLUDE means the Filter will be applied under
RequestDispatcher.include() calls.
The absence of any dispatcher elements in a
filter-mapping indicates a default of applying
filters only under ordinary client calls to the path or servlet.

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:enumeration value="FORWARD"/>
    <xsd:enumeration value="INCLUDE"/>
    <xsd:enumeration value="REQUEST"/>

    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:simpleType name="error-codeType">
<xsd:annotation>
<xsd:documentation>

The error-code contains an HTTP error code, ex: 404

Used in: error-page

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="positiveInteger"/>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="error-pageType">
<xsd:annotation>
<xsd:documentation>

The error-pageType contains a mapping between an error code
or exception type to the path of a resource in the web
application.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <choice>
        <xsd:element name="error-code"
                     type="j2ee:error-codeType"/>

        <xsd:element name="exception-type"
                     type="j2ee:fully-qualified-classType">
        <xsd:annotation>
        <xsd:documentation>

        The exception-type contains a fully qualified class
        name of a Java exception type.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
        </choice>

        <xsd:element name="location"
                     type="j2ee:pathType">
        <xsd:annotation>
        <xsd:documentation>

        The location element contains the location of the
        resource in the web application relative to the root of
        the web application. The value of the location must have
        a leading `/'.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="filter-mappingType">
<xsd:annotation>
<xsd:documentation>

Declaration of the filter mappings in this web
application is done by using filter-mappingType.
The container uses the filter-mapping
declarations to decide which filters to apply to a request,
and in what order. The container matches the request URI to
a Servlet in the normal way. To determine which filters to
apply it matches filter-mapping declarations either on
servlet-name, or on url-pattern for each filter-mapping
element, depending on which style is used. The order in
which filters are invoked is the order in which
filter-mapping declarations that match a request URI for a
servlet appear in the list of filter-mapping elements.The
filter-name value must be the value of the filter-name
sub-elements of one of the filter declarations in the
deployment descriptor.

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="filter-name"
                 type="j2ee:filter-nameType"/>
        <choice>
            <xsd:element name="url-pattern"
                     type="j2ee:url-patternType"/>
            <xsd:element name="servlet-name"
                     type="j2ee:servlet-nameType"/>
        </choice>
        <xsd:element name="dispatcher"
                     type="j2ee:dispatcherType"
                     minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="filter-nameType">
<xsd:annotation>
<xsd:documentation>

The logical name of the filter is declare
by using filter-nameType. This name is used to map the
filter.  Each filter name is unique within the web
application.

Used in: filter, filter-mapping

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string"/>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="filterType">
<xsd:annotation>
<xsd:documentation>

The filterType is used to declare a filter in the web
application. The filter is mapped to either a servlet or a
URL pattern in the filter-mapping element, using the
filter-name value to reference. Filters can access the
initialization parameters declared in the deployment
descriptor at runtime via the FilterConfig interface.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="display-name"
                     type="j2ee:display-nameType"
                     minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="icon"
                     type="j2ee:iconType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="filter-name"
                     type="j2ee:filter-nameType"/>
        <xsd:element name="filter-class"
                     type="j2ee:fully-qualified-classType">
        <xsd:annotation>
        <xsd:documentation>

        The fully qualified classname of the filter.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>

        <xsd:element name="init-param"
                     type="j2ee:param-valueType"
                     minOccurs="0" maxOccurs="unbounded">
        <xsd:annotation>
        <xsd:documentation>

        The init-param element contains a name/value pair as
        an initialization param of a servlet filter

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="form-login-configType">
<xsd:annotation>
<xsd:documentation>

The form-login-configType specifies the login and error
pages that should be used in form based login. If form based
authentication is not used, these elements are ignored.

Used in: login-config

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>

        <xsd:element name="form-login-page"
                 type="j2ee:war-pathType">
        <xsd:annotation>
        <xsd:documentation>

        The form-login-page element defines the location in the web app
        where the page that can be used for login can be found.
        The path begins with a leading / and is
        interpreted relative to the root of the WAR.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>

        <xsd:element name="form-error-page"
                 type="j2ee:war-pathType">
        <xsd:annotation>
        <xsd:documentation>

        The form-error-page element defines the location in
        the web app where the error page that is displayed
        when login is not successful can be found.
        The path begins with a leading / and is interpreted
        relative to the root of the WAR.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>

    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="http-methodType">
<xsd:annotation>

<xsd:documentation>
The http-method contains an HTTP method recognized by the web-app, i.e.
(GET | POST |...).

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:enumeration value="GET"/>
        <xsd:enumeration value="POST"/>
        <xsd:enumeration value="PUT"/>
        <xsd:enumeration value="DELETE"/>
        <xsd:enumeration value="HEAD"/>
        <xsd:enumeration value="OPTIONS"/>
        <xsd:enumeration value="TRACE"/>
    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="listenerType">
<xsd:annotation>
<xsd:documentation>

The listenerType indicates the deployment properties for a web
application listener bean.

Used in: web-app:listenerType

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="display-name"
                     type="j2ee:display-nameType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="icon"
                     type="j2ee:iconType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="listener-class"
                     type="j2ee:fully-qualified-classType">
        <xsd:annotation>
        <xsd:documentation>

        The listener-class element declares a class in the
        application must be registered as a web
        application listener bean. The value is the fully
        qualified classname of the listener class.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="locale-encoding-mapping-listType">
<xsd:annotation>
<xsd:documentation>

The locale-encoding-mapping-list contains one or more
locale-encoding-mapping(s).

</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
    <xsd:element name="locale-encoding-mapping"
        type="j2ee:locale-encoding-mappingType"
        maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="locale-encoding-mappingType">
<xsd:annotation>
<xsd:documentation>

The locale-encoding-mapping contains locale name and
encoding name. The locale name must be either "Language-code",
such as "ja", defined by ISO-639 or "Language-code_Country-code",
such as "ja_JP".  "Country code" is defined by ISO-3166.

</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
    <xsd:element name="locale"
        type="j2ee:string"/>
    <xsd:element name="encoding"
        type="j2ee:string"/>
</xsd:sequence>
</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="login-configType">
<xsd:annotation>
<xsd:documentation>

The login-configType is used to configure the authentication
method that should be used, the realm name that should be
used for this application, and the attributes that are
needed by the form login mechanism.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="auth-method"
                     type="j2ee:auth-methodType"
                     minOccurs="0"/>
        <xsd:element name="realm-name"
                     type="j2ee:string" minOccurs="0">
        <xsd:annotation>
        <xsd:documentation>

        The realm name element specifies the realm name to
        use in HTTP Basic authorization.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
        <xsd:element name="form-login-config"
                     type="j2ee:form-login-configType"
                     minOccurs="0"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="mime-mappingType">
<xsd:annotation>
<xsd:documentation>

The mime-mappingType defines a mapping between an extension
and a mime type.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:annotation>
        <xsd:documentation>

        The extension element contains a string describing an
        extension. example: "txt"

        </xsd:documentation>
        </xsd:annotation>

        <xsd:element name="extension"
                     type="j2ee:string"/>
        <xsd:element name="mime-type"
                     type="j2ee:mime-typeType"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="mime-typeType">
<xsd:annotation>
<xsd:documentation>

The mime-typeType is used to indicate a defined mime type.

Example:
"text/plain"

Used in: mime-mapping

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:pattern value="[\p{L}\-\p{Nd}]+/[\p{L}\-\p{Nd}\.]+"/>
    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="security-constraintType">
<xsd:annotation>
<xsd:documentation>

The security-constraintType is used to associate
security constraints with one or more web resource
collections

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="display-name"
                     type="j2ee:display-nameType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="web-resource-collection"
                     type="j2ee:web-resource-collectionType"
                     maxOccurs="unbounded"/>
        <xsd:element name="auth-constraint"
                     type="j2ee:auth-constraintType"
                     minOccurs="0"/>
        <xsd:element name="user-data-constraint"
                     type="j2ee:user-data-constraintType"
                     minOccurs="0"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="servlet-mappingType">
<xsd:annotation>
<xsd:documentation>

The servlet-mappingType defines a mapping between a
servlet and a url pattern.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="servlet-name"
                     type="j2ee:servlet-nameType"/>
        <xsd:element name="url-pattern"
                     type="j2ee:url-patternType"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="servlet-nameType">
<xsd:annotation>
<xsd:documentation>

The servlet-name element contains the canonical name of the
servlet. Each servlet name is unique within the web
application.

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string"/>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="servletType">
<xsd:annotation>
<xsd:documentation>

The servletType is used to declare a servlet.
It contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup
element is present, then the JSP should be precompiled and
loaded.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="display-name"
                     type="j2ee:display-nameType"
                     minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="icon"
                     type="j2ee:iconType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="servlet-name"
                     type="j2ee:servlet-nameType"/>
        <choice>
            <xsd:element name="servlet-class"
                         type="j2ee:fully-qualified-classType">
            <xsd:annotation>
            <xsd:documentation>

            The servlet-class element contains the fully
            qualified class name of the servlet.

            </xsd:documentation>
            </xsd:annotation>
            </xsd:element>

            <xsd:element name="jsp-file"
                         type="j2ee:jsp-fileType"/>

        </choice>

        <xsd:element name="init-param"
                     type="j2ee:param-valueType"
                     minOccurs="0" maxOccurs="unbounded"/>
        <xsd:element name="load-on-startup"
                     type="xsd:integer"
                     minOccurs="0">
        <xsd:annotation>
        <xsd:documentation>

        The load-on-startup element indicates that this
        servlet should be loaded (instantiated and have
        its init() called) on the startup of the web
        application. The optional contents of these
        element must be an integer indicating the order in
        which the servlet should be loaded. If the value
        is a negative integer, or the element is not
        present, the container is free to load the servlet
        whenever it chooses. If the value is a positive
        integer or 0, the container must load and
        initialize the servlet as the application is
        deployed. The container must guarantee that
        servlets marked with lower integers are loaded
        before servlets marked with higher integers. The
        container may choose the order of loading of
        servlets with the same load-on-start-up value.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
        <xsd:element name="run-as"
                     type="j2ee:run-asType"
                     minOccurs="0"/>
        <xsd:element name="security-role-ref"
                     type="j2ee:security-role-refType"
                     minOccurs="0" maxOccurs="unbounded"/>                     
        <xsd:element name="deployment-extension"
                     type="j2ee:deployment-extensionType"
                     minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="session-configType">
<xsd:annotation>
<xsd:documentation>

The session-configType defines the session parameters
for this web application.

Used in: web-app

</xsd:documentation>
	  <xsd:appinfo>
		<s2b:implements>java.lang.Cloneable</s2b:implements>
	  </xsd:appinfo>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="session-timeout"
                 type="xsd:nonNegativeInteger"
                 minOccurs="0">
        <xsd:annotation>
        <xsd:documentation>

        The session-timeout element defines the default
        session timeout interval for all sessions created
        in this web application. The specified timeout
        must be expressed in a whole number of minutes.
        If the timeout is 0 or less, the container ensures
        the default behaviour of sessions is never to time
        out. If this element is not specified, the container
        must set its default timeout period.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="transport-guaranteeType">
<xsd:annotation>
<xsd:documentation>

The transport-guaranteeType specifies that the communication
between client and server should be NONE, INTEGRAL, or
CONFIDENTIAL. NONE means that the application does not
require any transport guarantees. A value of INTEGRAL means
that the application requires that the data sent between the
client and server be sent in such a way that it can't be
changed in transit. CONFIDENTIAL means that the application
requires that the data be transmitted in a fashion that
prevents other entities from observing the contents of the
transmission. In most cases, the presence of the INTEGRAL or
CONFIDENTIAL flag will indicate that the use of SSL is
required.

Used in: user-data-constraint

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:enumeration value="NONE"/>
        <xsd:enumeration value="INTEGRAL"/>
        <xsd:enumeration value="CONFIDENTIAL"/>
    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="user-data-constraintType">
<xsd:annotation>
<xsd:documentation>

The user-data-constraintType is used to indicate how
data communicated between the client and container should be
protected.

Used in: security-constraint

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="transport-guarantee"
                     type="j2ee:transport-guaranteeType"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:simpleType name="web-app-versionType">
<xsd:annotation>
<xsd:documentation>

This type contains the recognized versions of
web-application supported. It is used to designate the
version of the web application.

Example:

<web-app>
    <version>2.4</version>
...
</web-app>

</xsd:documentation>
</xsd:annotation>

    <xsd:restriction base="j2ee:string">
        <xsd:enumeration value="2.4"/>
    </xsd:restriction>

</xsd:simpleType>

<!-- **************************************************** -->

<xsd:complexType name="web-appType">

    <xsd:sequence>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="display-name"
                     type="j2ee:display-nameType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="icon"
                     type="j2ee:iconType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="distributable"
                     type="j2ee:emptyType"
                     minOccurs="0"/>
        <xsd:element name="context-param"
                     type="j2ee:param-valueType"
                     minOccurs="0" maxOccurs="unbounded">
        <xsd:annotation>
        <xsd:documentation>

        The context-param element contains the declaration
        of a web application's servlet context
        initialization parameters.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>

        <xsd:element name="filter"
                     type="j2ee:filterType"
                     minOccurs="0" maxOccurs="unbounded">
 		   <xsd:key name="param-key">
 		      <xsd:selector xpath="init-param"/>
 		      <xsd:field xpath="param-name"/>
 		  </xsd:key>
 		</xsd:element>
	    <xsd:element name="filter" type="j2ee:filterType" minOccurs="0"/>
        <xsd:element name="filter-mapping"
                     type="j2ee:filter-mappingType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="listener"
                     type="j2ee:listenerType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="servlet"
                     type="j2ee:servletType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="servlet-mapping"
                     type="j2ee:servlet-mappingType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="session-config"
                     type="j2ee:session-configType"
                     minOccurs="0"/>
        <xsd:element name="mime-mapping"
                     type="j2ee:mime-mappingType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="welcome-file-list"
                     type="j2ee:welcome-file-listType"
                     minOccurs="0"/>
        <xsd:element name="error-page"
                     type="j2ee:error-pageType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="jsp-config"
                     type="j2ee:jsp-configType"
                     minOccurs="0"/>
        <xsd:element name="resource-env-ref"
                     type="j2ee:resource-env-refType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="message-destination-ref"
                     type="j2ee:message-destination-refType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="resource-ref"
                     type="j2ee:resource-refType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="security-constraint"
                     type="j2ee:security-constraintType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="login-config"
                     type="j2ee:login-configType"
                     minOccurs="0"/>
        <xsd:element name="security-role"
                     type="j2ee:security-roleType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="env-entry"
                     type="j2ee:env-entryType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="ejb-ref"
                     type="j2ee:ejb-refType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="ejb-local-ref"
                     type="j2ee:ejb-local-refType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="message-destination"
                     type="j2ee:message-destinationType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="locale-encoding-mapping-list"
                     type="j2ee:locale-encoding-mapping-listType"
                     minOccurs="0"
                     maxOccurs="1"/>                     
        <xsd:element name="deployment-extension"
                     type="j2ee:deployment-extensionType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
    </xsd:sequence>

    <xsd:attribute name="version"
                   type="j2ee:web-app-versionType"
                   use="required"/>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="web-resource-collectionType">
<xsd:annotation>
<xsd:documentation>

The web-resource-collectionType is used to identify a subset
of the resources and HTTP methods on those resources within
a web application to which a security constraint applies. If
no HTTP methods are specified, then the security constraint
applies to all HTTP methods.

Used in: security-constraint

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="web-resource-name"
                     type="j2ee:string">
        <xsd:annotation>
        <xsd:documentation>

        The web-resource-name contains the name of this web
        resource collection.

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
        <xsd:element name="description"
                     type="j2ee:descriptionType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="url-pattern"
                     type="j2ee:url-patternType"
                     maxOccurs="unbounded"/>
        <xsd:element name="http-method"
                     type="j2ee:http-methodType"
                     minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>

</xsd:complexType>

<!-- **************************************************** -->

<xsd:complexType name="welcome-file-listType">
<xsd:annotation>
<xsd:documentation>

The welcome-file-list contains an ordered list of welcome
files elements.

Used in: web-app

</xsd:documentation>
</xsd:annotation>

    <xsd:sequence>
        <xsd:element name="welcome-file"
                     type="j2ee:string"
                     maxOccurs="unbounded">
        <xsd:annotation>
        <xsd:documentation>

        The welcome-file element contains file name to use
        as a default welcome file, such as index.html

        </xsd:documentation>
        </xsd:annotation>
        </xsd:element>
    </xsd:sequence>

</xsd:complexType>

</xsd:schema>