Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ERROR] [pool-2-thread-1 11:28:36] (ContextLoader.java:initWebApplicationContext:307) Context initialization failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'assetDownloadController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.krams.tutorial.service.RepositoryService org.krams.tutorial.controller.AssetDownloadController.assetDownloadController; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- 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:4779)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
- at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
- at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
- at java.util.concurrent.FutureTask.run(FutureTask.java:166)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
- at java.lang.Thread.run(Thread.java:722)
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.krams.tutorial.service.RepositoryService org.krams.tutorial.controller.AssetDownloadController.assetDownloadController; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- 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)
- ... 27 more
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:828)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
- ... 29 more
- Aug 20, 2012 11:28:36 AM org.apache.catalina.core.StandardContext listenerStart
- SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'assetDownloadController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.krams.tutorial.service.RepositoryService org.krams.tutorial.controller.AssetDownloadController.assetDownloadController; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- 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:4779)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
- at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
- at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
- at java.util.concurrent.FutureTask.run(FutureTask.java:166)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
- at java.lang.Thread.run(Thread.java:722)
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.krams.tutorial.service.RepositoryService org.krams.tutorial.controller.AssetDownloadController.assetDownloadController; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- 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)
- ... 27 more
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.krams.tutorial.service.RepositoryService] is defined: expected single matching bean but found 2: [fileSystemRepositoryService, amazonS3RepositoryService]
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:828)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
- ... 29 more
Add Comment
Please, Sign In to add comment