temporary fix: autowriring failing for missing storage allocator

The storage allocator beans were given with the wrong package namespace
of com.cloud and not org.apache.cloudstack. Removed and correctedt the
namespace. Server coems up successfully.

Edison to revisit and complete the fix.

Signed-off-by: Prasanna Santhanam <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d14e094d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d14e094d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d14e094d

Branch: refs/heads/affinity_groups
Commit: d14e094df64e31d732f0236f54be12fb27819d8c
Parents: 8c034e5
Author: Prasanna Santhanam <[email protected]>
Authored: Wed Feb 27 20:01:16 2013 +0530
Committer: Prachi Damle <[email protected]>
Committed: Thu Mar 14 15:13:12 2013 -0700

----------------------------------------------------------------------
 client/tomcatconf/componentContext.xml.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d14e094d/client/tomcatconf/componentContext.xml.in
----------------------------------------------------------------------
diff --git a/client/tomcatconf/componentContext.xml.in 
b/client/tomcatconf/componentContext.xml.in
index 49b7e34..0907760 100644
--- a/client/tomcatconf/componentContext.xml.in
+++ b/client/tomcatconf/componentContext.xml.in
@@ -101,11 +101,19 @@
   <bean id="FirstFitRouting" 
class="com.cloud.agent.manager.allocator.impl.FirstFitRoutingAllocator">
     <property name="name" value="FirstFitRouting"/>
   </bean>
+
   
   <!--
     Storage pool allocators
   -->
 
+  <bean id="LocalStoragePoolAllocator" 
class="org.apache.cloudstack.storage.allocator.LocalStoragePoolAllocator">
+    <property name="name" value="LocalStorage"/>
+  </bean>
+  <bean id="FirstFitStoragePoolAllocator" 
class="org.apache.cloudstack.storage.allocator.FirstFitStoragePoolAllocator">
+    <property name="name" value="Storage"/>
+  </bean>
+
   <bean id="UserConcentratedAllocator" 
class="com.cloud.agent.manager.allocator.impl.UserConcentratedAllocator">
     <property name="name" value="User First"/>
   </bean>

Reply via email to