Guest User

Untitled

a guest
Sep 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ERROR] [pool-2-thread-1 11:28:36] (ContextLoader.java:initWebApplicationContext:307) Context initialization failed
  2. 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]
  3.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
  4.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  5.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  6.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  7.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
  8.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
  9.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
  10.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  11.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
  12.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
  13.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
  14.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
  15.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
  16.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
  17.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
  18.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
  19.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  20.     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
  21.     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
  22.     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
  23.     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
  24.     at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
  25.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  26.     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  27.     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  28.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  29.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  30.     at java.lang.Thread.run(Thread.java:722)
  31. 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]
  32.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
  33.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  34.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
  35.     ... 27 more
  36. 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]
  37.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:828)
  38.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
  39.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
  40.     ... 29 more
  41. Aug 20, 2012 11:28:36 AM org.apache.catalina.core.StandardContext listenerStart
  42. SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  43. 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]
  44.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
  45.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
  46.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  47.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  48.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
  49.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
  50.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
  51.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
  52.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
  53.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
  54.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
  55.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
  56.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
  57.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
  58.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
  59.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
  60.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  61.     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
  62.     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
  63.     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
  64.     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
  65.     at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1585)
  66.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  67.     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  68.     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  69.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  70.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  71.     at java.lang.Thread.run(Thread.java:722)
  72. 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]
  73.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
  74.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  75.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
  76.     ... 27 more
  77. 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]
  78.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:828)
  79.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735)
  80.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
  81.     ... 29 more
Add Comment
Please, Sign In to add comment