Skip to content

Commit bcff47d

Browse files
author
Alex Huang
committed
Changes to deploy cxf
1 parent bd17d35 commit bcff47d

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

engine/api/src/org/apache/cloudstack/engine/datacenter/entity/api/DataCenterResourceEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public interface DataCenterResourceEntity extends CloudStackEntity, StateObject<
3838
public enum State {
3939
Disabled("The resource is disabled so CloudStack should not use it. This is the initial state of all resources added to CloudStack."),
4040
Enabled("The resource is now enabled for CloudStack to use."),
41-
Deactivated("The resource is disactivated so CloudStack should not use it for new resource needs.");
41+
Deactivated("The resource is deactivated so CloudStack should not use it for new resource needs.");
4242

4343
String _description;
4444

engine/api/src/org/apache/cloudstack/engine/service/api/OrchestrationService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public interface OrchestrationService {
5454
* @return VirtualMachineEntity
5555
*/
5656
@POST
57+
@Path("/createvm")
5758
VirtualMachineEntity createVirtualMachine(
5859
@QueryParam("id") String id,
5960
@QueryParam("owner") String owner,

engine/service/src/main/java/org/apache/cloudstack/test/TimeService.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,12 @@ public String getDateTime()
3838
DateFormatter formatter = new DateFormatter("dd/MM/yyyy hh:mm:ss");
3939
return formatter.print(Calendar.getInstance().getTime(), Locale.getDefault());
4040
}
41+
42+
//
43+
// @GET @Produces("text/plain")
44+
// public ZoneEntity getZoneEntity() {
45+
// return new ZoneEntityImpl();
46+
// }
47+
4148
}
4249

engine/service/src/main/webapp/WEB-INF/beans.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<import resource="classpath:META-INF/cxf/cxf.xml" />
1111
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
1212

13-
<context:component-scan base-package="org.apache.cloudstack.engine.service.api" />
13+
<context:component-scan base-package="org.apache.cloudstack.test" resourcePattern="**/*.jar"/>
1414

1515
<jaxrs:server id="restContainer" address="/">
1616
<jaxrs:serviceBeans>
17-
<ref bean="provisioningService"/>
17+
<ref bean="timeService" />
1818
</jaxrs:serviceBeans>
1919
</jaxrs:server>
2020
</beans>

engine/service/src/main/webapp/WEB-INF/web.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
org.springframework.web.context.ContextLoaderListener
1313
</listener-class>
1414
</listener>
15+
<listener>
16+
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
17+
</listener>
1518
<servlet>
1619
<servlet-name>CXFServlet</servlet-name>
1720
<display-name>CXF Servlet</display-name>

0 commit comments

Comments
 (0)