Skip to content

Commit

Permalink
Update deployment descriptors to Servlet 3.1
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1480975 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed May 10, 2013
1 parent bd978f9 commit e52ed47
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 66 deletions.
8 changes: 4 additions & 4 deletions conf/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">

<!-- ======================== Introduction ============================== -->
<!-- This document defines default values for *all* web applications -->
Expand Down
6 changes: 3 additions & 3 deletions java/org/apache/catalina/deploy/WebXml.java
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,12 @@ public String toXml() {
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");

// Root element
sb.append("<web-app xmlns=\"http://java.sun.com/xml/ns/javaee\"\n");
sb.append("<web-app xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\"\n");
sb.append(" xmlns:xsi=");
sb.append("\"http://www.w3.org/2001/XMLSchema-instance\"\n");
sb.append(" xsi:schemaLocation=");
sb.append("\"http://java.sun.com/xml/ns/javaee" +
" http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd\"\n");
sb.append("\"http://xmlns.jcp.org/xml/ns/javaee" +
" http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd\"\n");
sb.append(" version=\"");
sb.append(getVersion());
sb.append("\"\n");
Expand Down
8 changes: 4 additions & 4 deletions res/META-INF/tomcat-websocket.jar/web-fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<name>org_apache_tomcat_websocket</name>
<distributable/>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-1lifecyclecallback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<post-construct>
<lifecycle-callback-class>test.TestServlet</lifecycle-callback-class>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-1ordering.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<absolute-ordering>
<name>bar</name>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-2lifecyclecallback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<post-construct>
<lifecycle-callback-class>test.TestServlet</lifecycle-callback-class>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-2ordering.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<absolute-ordering>
<name>foo</name>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-fragment-1name.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<name>name1</name>
</web-fragment>
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-fragment-1ordering.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<ordering>
<before>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-fragment-2name.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<name>name1</name>
<name>name2</name>
Expand Down
8 changes: 4 additions & 4 deletions test/org/apache/catalina/startup/web-fragment-2ordering.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<ordering>
<after>
Expand Down
9 changes: 4 additions & 5 deletions webapps/ROOT/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">

<display-name>Welcome to Tomcat</display-name>
Expand Down
8 changes: 4 additions & 4 deletions webapps/docs/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">

<display-name>Tomcat Documentation</display-name>
Expand Down
8 changes: 4 additions & 4 deletions webapps/examples/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="false">

<description>
Expand Down
9 changes: 4 additions & 5 deletions webapps/host-manager/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">

<display-name>Tomcat Host Manager Application</display-name>
Expand Down
9 changes: 4 additions & 5 deletions webapps/manager/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">

<display-name>Tomcat Manager Application</display-name>
Expand Down

0 comments on commit e52ed47

Please sign in to comment.