Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Missing dependencies in deployment environment
    Spring Beans
    275
    47
    14

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mainController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.solr.repository.SolrCurrencyRepository Controller.MainController.searchRepository; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.solr.repository.SolrCurrencyRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

Solution

rp3 years ago

Check Servers Launch Configuration in Eclipse. See the details below.

Check the source of this solution for more info

External results for this pattern (10)

  1. Unknown authorvia Google Groups2 weeks ago
    Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl
    Show stack trace
  2. kazuki43zoovia GitHub2 months ago
    Error creating bean with name 'dozerDemoApplication': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.dozer.Mapper com.example.dozerdemo.DozerDemoApplication.mapper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.dozermapper.springboot.autoconfigure.DozerAutoConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.github.dozermapper.springboot.autoconfigure.DozerAutoConfiguration$$EnhancerBySpringCGLIB$$de69aaab]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.github.dozermapper.springboot.autoconfigure.DozerAutoConfiguration$$EnhancerBySpringCGLIB$$de69aaab.<init>()
    Show stack trace
  3. chucklaivia Stack Overflow3 months ago
    Error creating bean with name 'validator' defined in file [/Users/laiyinan/Documents/后台开发/SaveBearAdmin/out/artifacts/savebear_war_exploded/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is
    Show stack trace
  4. Глеб Канунниковvia Google Groups3 months ago
    Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: [43,55]: [ERR 101] Line 43:55 no viable alternative at input '' [52,55]: [ERR 101] Line 52:55 no viable alternative at input '' [61,55]: [ERR 101] Line 61:55 no viable alternative at input '' [43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15" [52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16" [61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17" [0,0]: Parser returned a null Package
    Show stack trace
  5. ehoogerbeetsvia GitHub3 months ago
    Error creating bean with name 'authenticatedRestTemplateTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.box.l10n.mojito.rest.resttemplate.AuthenticatedRestTemplate com.box.l10n.mojito.rest.resttemplate.AuthenticatedRestTemplateTest.authenticatedRestTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticatedRestTemplate': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.box.l10n.mojito.rest.resttemplate.ResttemplateConfig com.box.l10n.mojito.rest.resttemplate.AuthenticatedRestTemplate.resttemplateConfig; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resttemplateConfig' defined in file [/Users/ehoogerbeets/src/mojito/restclient/target/classes/com/box/l10n/mojito/rest/resttemplate/ResttemplateConfig.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
    Show stack trace
  6. ed uvia Stack Overflow3 months ago
    Error creating bean with name 'loginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.maskkk.service.UserService com.maskkk.controller.LoginController.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.maskkk.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    Show stack trace
  7. jeffwilsvia GitHub3 months ago
    Error creating bean with name 'grails.plugin.springsecurity.LoginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void grails.plugin.springsecurity.LoginController.setTagLibraryLookup(org.grails.taglib.TagLibraryLookup); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.grails.taglib.TagLibraryLookup] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
    Show stack trace
  8. raffianvia GitHub3 months ago
    Error creating bean with name 'app': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'servicename' in value "${servicename}"
    Show stack trace
  9. Error creating bean with name 'com.foo.data.repository.RepositoryTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.foo.data.repository.UserRepository com.foo.data.repository.RepositoryTest.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: No [ManagedType] was found for the key class [com.foo.data.model.User] in the Metamodel - please verify that the [Managed] class was referenced in persistence.xml using a specific <class>com.foo.data.model.User</class> property or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element.
    Show stack trace