Skip to content

Commit 28bfaea

Browse files
committed
Fix some dependencies for awsapi. Axis2 and rampart versions should be
equal otherwise there will be conflicts with dependencies. Small change to EC2MainServlet, pass along the rootcause for easier debugging
1 parent 25e8deb commit 28bfaea

3 files changed

Lines changed: 40 additions & 9 deletions

File tree

awsapi/pom.xml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2020
<modelVersion>4.0.0</modelVersion>
2121
<artifactId>cloud-awsapi</artifactId>
22-
<version>4.1.0-SNAPSHOT</version>
2322
<name>Apache CloudStack AWS API Bridge</name>
23+
<packaging>war</packaging>
2424
<parent>
2525
<groupId>org.apache.cloudstack</groupId>
2626
<artifactId>cloudstack</artifactId>
@@ -45,7 +45,7 @@
4545
</dependency>
4646
<dependency>
4747
<groupId>org.apache.ws.commons.axiom</groupId>
48-
<artifactId>axiom-api</artifactId>
48+
<artifactId>axiom-impl</artifactId>
4949
<version>${cs.axiom.version}</version>
5050
</dependency>
5151
<dependency>
@@ -57,6 +57,16 @@
5757
<groupId>org.apache.neethi</groupId>
5858
<artifactId>neethi</artifactId>
5959
<version>${cs.neethi.version}</version>
60+
<exclusions>
61+
<exclusion>
62+
<groupId>org.apache.ws.commons.axiom</groupId>
63+
<artifactId>axiom-api</artifactId>
64+
</exclusion>
65+
<exclusion>
66+
<groupId>org.apache.ws.commons.axiom</groupId>
67+
<artifactId>axiom-impl</artifactId>
68+
</exclusion>
69+
</exclusions>
6070
</dependency>
6171
<dependency>
6272
<groupId>com.google.code.gson</groupId>
@@ -160,19 +170,19 @@
160170
<dependency>
161171
<groupId>org.slf4j</groupId>
162172
<artifactId>slf4j-jdk14</artifactId>
163-
<version>1.5.11</version>
173+
<version>1.6.1</version>
164174
<scope>runtime</scope>
165175
</dependency>
166176
<dependency>
167177
<groupId>org.slf4j</groupId>
168178
<artifactId>slf4j-api</artifactId>
169-
<version>1.5.11</version>
179+
<version>1.6.1</version>
170180
<scope>runtime</scope>
171181
</dependency>
172182
<dependency>
173183
<groupId>org.apache.ws.security</groupId>
174184
<artifactId>wss4j</artifactId>
175-
<version>1.5.8</version>
185+
<version>1.6.1</version>
176186
<scope>runtime</scope>
177187
</dependency>
178188
<dependency>
@@ -217,6 +227,12 @@
217227
<version>1.45</version>
218228
<scope>runtime</scope>
219229
</dependency>
230+
<dependency>
231+
<groupId>mysql</groupId>
232+
<artifactId>mysql-connector-java</artifactId>
233+
<version>5.1.21</version>
234+
<scope>runtime</scope>
235+
</dependency>
220236
</dependencies>
221237
<build>
222238
<defaultGoal>install</defaultGoal>
@@ -279,6 +295,22 @@
279295
</execution>
280296
</executions>
281297
</plugin>
298+
<plugin>
299+
<groupId>org.mortbay.jetty</groupId>
300+
<artifactId>maven-jetty-plugin</artifactId>
301+
<version>6.1.26</version>
302+
<configuration>
303+
<connectors>
304+
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
305+
<port>7080</port>
306+
<maxIdleTime>60000</maxIdleTime>
307+
</connector>
308+
</connectors>
309+
<contextPath>/awsapi</contextPath>
310+
<webXml>${basedir}/web/web.xml</webXml>
311+
<webAppSourceDirectory>${basedir}/target/cloud-awsapi-${project.version}</webAppSourceDirectory>
312+
</configuration>
313+
</plugin>
282314
</plugins>
283315
<!--
284316
<testSourceDirectory>test</testSourceDirectory>
@@ -343,5 +375,4 @@
343375
</plugins>
344376
</pluginManagement>
345377
</build>
346-
<packaging>war</packaging>
347378
</project>

awsapi/src/com/cloud/bridge/service/EC2MainServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void init( ServletConfig config ) throws ServletException {
6565
}
6666
logger.info("Value of EC2 API Flag ::" + value);
6767
}catch(Exception e){
68-
throw new ServletException("Error initializing awsapi: " + e.getMessage());
68+
throw new ServletException("Error initializing awsapi: " + e.getMessage(), e);
6969
}
7070
}
7171

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
<cs.xmlrpc.version>3.1.3</cs.xmlrpc.version>
7373
<cs.mail.version>1.4</cs.mail.version>
7474
<cs.axis.version>1.4</cs.axis.version>
75-
<cs.axis2.version>1.5.1</cs.axis2.version>
75+
<cs.axis2.version>1.6.2</cs.axis2.version>
7676
<cs.rampart.version>1.6.2</cs.rampart.version>
77-
<cs.axiom.version>1.2.8</cs.axiom.version>
77+
<cs.axiom.version>1.2.13</cs.axiom.version>
7878
<cs.neethi.version>2.0.4</cs.neethi.version>
7979
<cs.servlet.version>2.4</cs.servlet.version>
8080
<cs.jstl.version>1.2</cs.jstl.version>

0 commit comments

Comments
 (0)