You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Likitha Shetty (JIRA)" <ji...@apache.org> on 2013/08/22 12:29:52 UTC

[jira] [Updated] (CLOUDSTACK-4446) AWSAPI server fails to start because of error in bean creation.

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Likitha Shetty updated CLOUDSTACK-4446:
---------------------------------------

    Status: Ready To Review  (was: In Progress)
    
> AWSAPI server fails to start because of error in bean creation.
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4446
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4446
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: AWSAPI
>    Affects Versions: 4.2.0
>            Reporter: Likitha Shetty
>            Assignee: Likitha Shetty
>            Priority: Blocker
>             Fix For: 4.2.1
>
>
> Run mvn -Pawsapi -pl :cloud-awsapi jetty:run
> Jetty server will fail to start because of failures in bean creation.
> Aug 20, 2013 3:01:57 PM org.springframework.web.context.ContextLoader initWebApplicationContext 
> SEVERE: Context initialization failed 
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userContextInitializer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cloud.user.AccountService com.cloud.user.UserContextInitializer._accountMgr; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cloud.user.AccountService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()} 
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) 
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) 
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) 
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) 
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) 
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) 
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) 
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609) 
>         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) 
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469) 
>         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) 
>         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) 
>         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) 
>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) 
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) 
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) 
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) 
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) 
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) 
>         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) 
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) 
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) 
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) 
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) 
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) 
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) 
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) 
>         at org.apache.catalina.core.StandardService.start(StandardService.java:516) 
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) 
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593) 
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>         at java.lang.reflect.Method.invoke(Method.java:616) 
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 
> Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cloud.user.AccountService com.cloud.user.UserContextInitializer._accountMgr; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cloud.user.AccountService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()} 
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506) 
>         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) 
>         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284) 
>         ... 37 more 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira