From 6c0b510c98dc61a6eb8018ec9e1a7f5d85b2b20e Mon Sep 17 00:00:00 2001 From: "Michael J. Simons" Date: Thu, 4 Jan 2018 19:06:47 +0100 Subject: [PATCH] Remove hardcoded Spring versions from namespaces This fixes #4945. --- .../xml/aspectj/src/main/resources/aspectj-context.xml | 2 +- .../main/webapp/WEB-INF/applicationContext-security.xml | 6 +++--- .../src/main/webapp/WEB-INF/deployerConfigContext.xml | 8 ++------ .../resources/applicationContext-common-authorization.xml | 4 +--- .../main/resources/applicationContext-common-business.xml | 4 ++-- .../src/main/resources/applicationContext-security.xml | 2 +- .../contacts/src/main/webapp/WEB-INF/contacts-servlet.xml | 7 +++---- .../main/resources/applicationContext-dms-insecure.xml | 2 +- .../src/main/resources/applicationContext-dms-secure.xml | 2 +- .../src/main/resources/applicationContext-dms-shared.xml | 2 +- .../main/webapp/WEB-INF/applicationContext-security.xml | 2 +- samples/xml/gae/src/main/webapp/WEB-INF/gae-servlet.xml | 8 ++++---- .../src/main/resources/applicationContext-security.xml | 5 ++--- .../main/webapp/WEB-INF/applicationContext-security.xml | 2 +- .../main/webapp/WEB-INF/applicationContext-security.xml | 2 +- .../main/webapp/WEB-INF/applicationContext-security.xml | 2 +- .../src/main/resources/applicationContext-security.xml | 7 ++----- .../servletapi/src/main/webapp/WEB-INF/spring-servlet.xml | 8 ++++---- .../src/main/resources/applicationContext-business.xml | 4 ++-- .../main/webapp/WEB-INF/applicationContext-security.xml | 2 +- .../xml/tutorial/src/main/webapp/WEB-INF/bank-servlet.xml | 2 +- 21 files changed, 36 insertions(+), 47 deletions(-) diff --git a/samples/xml/aspectj/src/main/resources/aspectj-context.xml b/samples/xml/aspectj/src/main/resources/aspectj-context.xml index 8cbe51c357..b9ba51d94f 100644 --- a/samples/xml/aspectj/src/main/resources/aspectj-context.xml +++ b/samples/xml/aspectj/src/main/resources/aspectj-context.xml @@ -2,7 +2,7 @@ diff --git a/samples/xml/cas/cassample/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/cas/cassample/src/main/webapp/WEB-INF/applicationContext-security.xml index cd09db0707..6fe0a05827 100644 --- a/samples/xml/cas/cassample/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/cas/cassample/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -6,9 +6,9 @@ xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd - http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> diff --git a/samples/xml/cas/casserver/src/main/webapp/WEB-INF/deployerConfigContext.xml b/samples/xml/cas/casserver/src/main/webapp/WEB-INF/deployerConfigContext.xml index b3409d5a66..f156e1858a 100644 --- a/samples/xml/cas/casserver/src/main/webapp/WEB-INF/deployerConfigContext.xml +++ b/samples/xml/cas/casserver/src/main/webapp/WEB-INF/deployerConfigContext.xml @@ -37,12 +37,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" - xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util" - xmlns:sec="http://www.springframework.org/schema/security" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd - http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd - http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> diff --git a/samples/xml/dms/src/main/resources/applicationContext-dms-insecure.xml b/samples/xml/dms/src/main/resources/applicationContext-dms-insecure.xml index 24acf276ae..19c27c9b8a 100755 --- a/samples/xml/dms/src/main/resources/applicationContext-dms-insecure.xml +++ b/samples/xml/dms/src/main/resources/applicationContext-dms-insecure.xml @@ -6,7 +6,7 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> diff --git a/samples/xml/dms/src/main/resources/applicationContext-dms-secure.xml b/samples/xml/dms/src/main/resources/applicationContext-dms-secure.xml index ce489072e1..d2d6891dec 100755 --- a/samples/xml/dms/src/main/resources/applicationContext-dms-secure.xml +++ b/samples/xml/dms/src/main/resources/applicationContext-dms-secure.xml @@ -8,7 +8,7 @@ diff --git a/samples/xml/dms/src/main/resources/applicationContext-dms-shared.xml b/samples/xml/dms/src/main/resources/applicationContext-dms-shared.xml index cdd9167ed4..06a90810fc 100755 --- a/samples/xml/dms/src/main/resources/applicationContext-dms-shared.xml +++ b/samples/xml/dms/src/main/resources/applicationContext-dms-shared.xml @@ -5,7 +5,7 @@ --> + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> diff --git a/samples/xml/gae/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/gae/src/main/webapp/WEB-INF/applicationContext-security.xml index 14a29ac05f..e31a96d0a0 100644 --- a/samples/xml/gae/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/gae/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -3,7 +3,7 @@ diff --git a/samples/xml/gae/src/main/webapp/WEB-INF/gae-servlet.xml b/samples/xml/gae/src/main/webapp/WEB-INF/gae-servlet.xml index 34a38b2bcd..9ddb21a15e 100644 --- a/samples/xml/gae/src/main/webapp/WEB-INF/gae-servlet.xml +++ b/samples/xml/gae/src/main/webapp/WEB-INF/gae-servlet.xml @@ -1,9 +1,9 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd + http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"> diff --git a/samples/xml/jaas/src/main/resources/applicationContext-security.xml b/samples/xml/jaas/src/main/resources/applicationContext-security.xml index 42228d8414..0bdeb8a4d2 100644 --- a/samples/xml/jaas/src/main/resources/applicationContext-security.xml +++ b/samples/xml/jaas/src/main/resources/applicationContext-security.xml @@ -2,11 +2,10 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> diff --git a/samples/xml/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml index 16a8ead1a1..3b14814ce8 100644 --- a/samples/xml/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -1,7 +1,7 @@ diff --git a/samples/xml/openid/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/openid/src/main/webapp/WEB-INF/applicationContext-security.xml index b6a2ec55a4..658e47b90e 100644 --- a/samples/xml/openid/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/openid/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -7,7 +7,7 @@ diff --git a/samples/xml/preauth/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/preauth/src/main/webapp/WEB-INF/applicationContext-security.xml index 4698926782..b8ef229157 100644 --- a/samples/xml/preauth/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/preauth/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -8,7 +8,7 @@ diff --git a/samples/xml/servletapi/src/main/resources/applicationContext-security.xml b/samples/xml/servletapi/src/main/resources/applicationContext-security.xml index 966594acfb..afddaeec37 100644 --- a/samples/xml/servletapi/src/main/resources/applicationContext-security.xml +++ b/samples/xml/servletapi/src/main/resources/applicationContext-security.xml @@ -2,11 +2,8 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> @@ -20,4 +17,4 @@ - \ No newline at end of file + diff --git a/samples/xml/servletapi/src/main/webapp/WEB-INF/spring-servlet.xml b/samples/xml/servletapi/src/main/webapp/WEB-INF/spring-servlet.xml index b8b114d6f7..9af635556d 100644 --- a/samples/xml/servletapi/src/main/webapp/WEB-INF/spring-servlet.xml +++ b/samples/xml/servletapi/src/main/webapp/WEB-INF/spring-servlet.xml @@ -4,9 +4,9 @@ xmlns:b="http://www.springframework.org/schema/beans" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" - xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd"> + xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> @@ -21,4 +21,4 @@ p:prefix="/WEB-INF/views/" p:suffix=".jsp" /> - \ No newline at end of file + diff --git a/samples/xml/tutorial/src/main/resources/applicationContext-business.xml b/samples/xml/tutorial/src/main/resources/applicationContext-business.xml index 6745f83d34..4c86f16235 100644 --- a/samples/xml/tutorial/src/main/resources/applicationContext-business.xml +++ b/samples/xml/tutorial/src/main/resources/applicationContext-business.xml @@ -3,8 +3,8 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd +http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> diff --git a/samples/xml/tutorial/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/xml/tutorial/src/main/webapp/WEB-INF/applicationContext-security.xml index fc25528dbc..19a442aa68 100644 --- a/samples/xml/tutorial/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/xml/tutorial/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -8,7 +8,7 @@ diff --git a/samples/xml/tutorial/src/main/webapp/WEB-INF/bank-servlet.xml b/samples/xml/tutorial/src/main/webapp/WEB-INF/bank-servlet.xml index 006c9b9c5d..1aca17d3a4 100644 --- a/samples/xml/tutorial/src/main/webapp/WEB-INF/bank-servlet.xml +++ b/samples/xml/tutorial/src/main/webapp/WEB-INF/bank-servlet.xml @@ -2,7 +2,7 @@ + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">