Github user remibergsma commented on the pull request:
https://github.com/apache/cloudstack/pull/1225#issuecomment-164174234
@borisroman I can't get it to run. It builds but after start it errors out
like this:
```
2015-12-12 10:01:33,843 WARN [o.a.c.s.m.c.ResourceApplicationContext]
(main:null) (logid:) Exception encountered during context initialization -
cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle#0':
Injection of autowired dependencies failed; nested excep
tion is org.springframework.beans.factory.BeanCreationException: Could not
autowire field: org.apache.cloudstack.framework.config.ConfigDepotAdmin
org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle.c
onfigDepotAdmin; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [com.cloud.ha.KVMInvestigator] for bean with name 'KVMInvestigator'
defined in URL [jar:f
ile:/root/.m2/repository/org/apache/cloudstack/cloud-plugin-hypervisor-kvm/4.7.0-SNAPSHOT/cloud-plugin-hypervisor-kvm-4.7.0-SNAPSHOT.jar!/META-INF/cloudstack/kvm-compute/spring-kvm-compute-context.xml];
neste
d exception is java.lang.ClassNotFoundException:
com.cloud.ha.KVMInvestigator
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:755)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
at
org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:71)
at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:58)
at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:62)
at
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
<cut>
Caused by: org.springframework.beans.factory.BeanCreationException: Could
not autowire field: org.apache.cloudstack.framework.config.ConfigDepotAdmin
org.apache.cloudstack.spring.lifecycle.ConfigDepotLifeCycle.configDepotAdmin;
nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [com.cloud.ha.KVMInvestigator] for bean with name 'KVMInvestigator'
defined in URL
[jar:file:/root/.m2/repository/org/apache/cloudstack/cloud-plugin-hypervisor-kvm/4.7.0-SNAPSHOT/cloud-plugin-hypervisor-kvm-4.7.0-SNAPSHOT.jar!/META-INF/cloudstack/kvm-compute/spring-kvm-compute-context.xml];
nested exception is java.lang.ClassNotFoundException:
com.cloud.ha.KVMInvestigator
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:526)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
... 66 more
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [com.cloud.ha.KVMInvestigator] for bean with name
'KVMInvestigator' defined in URL
[jar:file:/root/.m2/repository/org/apache/cloudstack/cloud-plugin-hypervisor-kvm/4.7.0-SNAPSHOT/cloud-plugin-hypervisor-kvm-4.7.0-SNAPSHOT.jar!/META-INF/cloudstack/kvm-compute/spring-kvm-compute-context.xml];
nested exception is java.lang.ClassNotFoundException:
com.cloud.ha.KVMInvestigator
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1278)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347)
... 75 more
Caused by: java.lang.ClassNotFoundException: com.cloud.ha.KVMInvestigator
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 83 more
```
Any hint? Will clean all and try again.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---