File tree 3 files changed +17
-0
lines changed
java/org/apache/tomcat/util/descriptor
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,14 @@ public class DigesterFactory {
145
145
addSelf (systemIds , "jakartaee_web_services_2_0.xsd" );
146
146
addSelf (systemIds , "jakartaee_web_services_client_2_0.xsd" );
147
147
148
+ // from JakartaEE 11
149
+ add (systemIds , XmlIdentifiers .WEB_61_XSD , locationFor ("web-app_6_1.xsd" ));
150
+ add (systemIds , XmlIdentifiers .WEB_FRAGMENT_61_XSD , locationFor ("web-fragment_6_1.xsd" ));
151
+ add (systemIds , XmlIdentifiers .TLD_40_XSD , locationFor ("web-jsptaglibrary_4_0.xsd" ));
152
+ addSelf (systemIds , "web-common_6_1.xsd" );
153
+ addSelf (systemIds , "jakartaee_11.xsd" );
154
+ addSelf (systemIds , "jsp_4_0.xsd" );
155
+
148
156
SERVLET_API_PUBLIC_IDS = Collections .unmodifiableMap (publicIds );
149
157
SERVLET_API_SYSTEM_IDS = Collections .unmodifiableMap (systemIds );
150
158
}
Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ public final class XmlIdentifiers {
91
91
public static final String WEB_FRAGMENT_60_XSD = JAKARTAEE_10_NS + "/web-fragment_6_0.xsd" ;
92
92
public static final String TLD_31_XSD = JAKARTAEE_10_NS + "/web-jsptaglibrary_3_1.xsd" ;
93
93
94
+ // from Jakarta EE 11
95
+ public static final String JAKARTAEE_11_NS = JAKARTAEE_10_NS ;
96
+ public static final String WEB_61_XSD = JAKARTAEE_11_NS + "/web-app_6_1.xsd" ;
97
+ public static final String WEB_FRAGMENT_61_XSD = JAKARTAEE_11_NS + "/web-fragment_6_1.xsd" ;
98
+ public static final String TLD_40_XSD = JAKARTAEE_11_NS + "/web-jsptaglibrary_4_0.xsd" ;
99
+
94
100
private XmlIdentifiers () {
95
101
}
96
102
}
Original file line number Diff line number Diff line change @@ -766,6 +766,9 @@ public String toXml() {
766
766
} else if ("6.0" .equals (version )) {
767
767
javaeeNamespace = XmlIdentifiers .JAKARTAEE_10_NS ;
768
768
webXmlSchemaLocation = XmlIdentifiers .WEB_60_XSD ;
769
+ } else if ("6.1" .equals (version )) {
770
+ javaeeNamespace = XmlIdentifiers .JAKARTAEE_11_NS ;
771
+ webXmlSchemaLocation = XmlIdentifiers .WEB_61_XSD ;
769
772
}
770
773
sb .append ("<web-app xmlns=\" " );
771
774
sb .append (javaeeNamespace );
You can’t perform that action at this time.
0 commit comments