Skip to content

Commit d0e22a2

Browse files
committed
CLOUDSTACK-9456: Update Spring version in maven poms
- Bump spring-framework version to 4.x and Jetty to version that runs with JDK8 - Bump servet dependency version - Migrate spring xmls to version 4, fixes schema locations that are 3.0 dependent in various xmls. - Fix failing tests due to spring upgrade (Thanks @marcaurele Marc-Aurèle Brothier for fixing them) * Fix test DeploymentPlanningManagerImplTest * Fix GloboDNS test Signed-off-by: Rohit Yadav <[email protected]>
1 parent 3149705 commit d0e22a2

File tree

193 files changed

+604
-607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+604
-607
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</dependency>
3838
<dependency>
3939
<groupId>javax.servlet</groupId>
40-
<artifactId>servlet-api</artifactId>
40+
<artifactId>javax.servlet-api</artifactId>
4141
<version>${cs.servlet.version}</version>
4242
</dependency>
4343
<dependency>

api/resources/META-INF/cloudstack/api-config/spring-api-config-context.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:aop="http://www.springframework.org/schema/aop"
2323
xsi:schemaLocation="http://www.springframework.org/schema/beans
24-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
25-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
24+
http://www.springframework.org/schema/beans/spring-beans.xsd
25+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2626
http://www.springframework.org/schema/context
27-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
27+
http://www.springframework.org/schema/context/spring-context.xsd"
2828
>
2929

3030
<bean id="apiServiceConfiguration" class="org.apache.cloudstack.config.ApiServiceConfiguration" />

api/resources/META-INF/cloudstack/api-planner/spring-api-planner-context.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:aop="http://www.springframework.org/schema/aop"
2323
xsi:schemaLocation="http://www.springframework.org/schema/beans
24-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
25-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
24+
http://www.springframework.org/schema/beans/spring-beans.xsd
25+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2626
http://www.springframework.org/schema/context
27-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
27+
http://www.springframework.org/schema/context/spring-context.xsd"
2828
>
2929

3030
<bean id="UserDispersingPlanner" class="com.cloud.deploy.UserDispersingPlanner">

client/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
<version>4.10.0.0-SNAPSHOT</version>
2121
</parent>
2222

23+
<repositories>
24+
<repository>
25+
<id>juniper-contrail</id>
26+
<url>http://juniper.github.io/contrail-maven/snapshots</url>
27+
</repository>
28+
</repositories>
29+
2330
<dependencies>
2431
<dependency>
2532
<groupId>org.apache.cloudstack</groupId>

client/resources/META-INF/cloudstack/webApplicationContext.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
xmlns:context="http://www.springframework.org/schema/context"
2222
xmlns:aop="http://www.springframework.org/schema/aop"
2323
xsi:schemaLocation="http://www.springframework.org/schema/beans
24-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
25-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
24+
http://www.springframework.org/schema/beans/spring-beans.xsd
25+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2626
http://www.springframework.org/schema/context
27-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
27+
http://www.springframework.org/schema/context/spring-context.xsd"
2828
>
2929

3030
<!-- There is no reason to put anything here -->

core/resources/META-INF/cloudstack/allocator/spring-core-allocator-context.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
xmlns:context="http://www.springframework.org/schema/context"
2424
xmlns:aop="http://www.springframework.org/schema/aop"
2525
xsi:schemaLocation="http://www.springframework.org/schema/beans
26-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
27-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
26+
http://www.springframework.org/schema/beans/spring-beans.xsd
27+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2828
http://www.springframework.org/schema/context
29-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
29+
http://www.springframework.org/schema/context/spring-context.xsd"
3030
>
3131

3232
<bean id="usageEventUtils" class="com.cloud.event.UsageEventUtils" />

core/resources/META-INF/cloudstack/allocator/spring-core-lifecycle-allocator-context-inheritable.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
xmlns:context="http://www.springframework.org/schema/context"
2424
xmlns:aop="http://www.springframework.org/schema/aop"
2525
xsi:schemaLocation="http://www.springframework.org/schema/beans
26-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
27-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
26+
http://www.springframework.org/schema/beans/spring-beans.xsd
27+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2828
http://www.springframework.org/schema/context
29-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
29+
http://www.springframework.org/schema/context/spring-context.xsd"
3030
>
3131

3232
<bean class="org.apache.cloudstack.spring.lifecycle.registry.RegistryLifecycle">

core/resources/META-INF/cloudstack/api/spring-core-lifecycle-api-context-inheritable.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
xmlns:context="http://www.springframework.org/schema/context"
2424
xmlns:aop="http://www.springframework.org/schema/aop"
2525
xsi:schemaLocation="http://www.springframework.org/schema/beans
26-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
27-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
26+
http://www.springframework.org/schema/beans/spring-beans.xsd
27+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2828
http://www.springframework.org/schema/context
29-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
29+
http://www.springframework.org/schema/context/spring-context.xsd"
3030
>
3131

3232
<bean class="org.apache.cloudstack.spring.lifecycle.registry.RegistryLifecycle">

core/resources/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
xmlns:context="http://www.springframework.org/schema/context"
2424
xmlns:aop="http://www.springframework.org/schema/aop"
2525
xsi:schemaLocation="http://www.springframework.org/schema/beans
26-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
27-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
26+
http://www.springframework.org/schema/beans/spring-beans.xsd
27+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2828
http://www.springframework.org/schema/context
29-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
29+
http://www.springframework.org/schema/context/spring-context.xsd"
3030
>
3131

3232
<context:annotation-config />

core/resources/META-INF/cloudstack/bootstrap/spring-bootstrap-context.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
xmlns:context="http://www.springframework.org/schema/context"
2424
xmlns:aop="http://www.springframework.org/schema/aop"
2525
xsi:schemaLocation="http://www.springframework.org/schema/beans
26-
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
27-
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
26+
http://www.springframework.org/schema/beans/spring-beans.xsd
27+
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
2828
http://www.springframework.org/schema/context
29-
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
29+
http://www.springframework.org/schema/context/spring-context.xsd"
3030
>
3131

3232
<bean class="org.apache.cloudstack.spring.lifecycle.CloudStackLog4jSetup" />

0 commit comments

Comments
 (0)