Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Springboot auto-configuration is disabled when you try to use WebMvcConfigurerAdapter and @EnableWebMvc. If WebConfig is not of the essence, remove it and use SpringBoot auto-configuration.

  2. ,
    Expert tip

    If you want to keep using @EnableWebMvc annotation, you have to add the code on the first answer of this page: https://goo.gl/JoHTKU to your code

Solutions on the web

via Stack Overflow by Ahmed-F
, 1 year ago
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myBlog.Services.UserRepository] found for dependency [com.myBlog.Services.UserRepository]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
via Stack Overflow by Florin Lei
, 1 year ago
Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency
via Stack Overflow by OASE Software GmbH
, 1 year ago
dependency [at.oase.masterproject.security.jwt.JwtAuthenticationProvider]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true
via Stack Overflow by umapathi
, 6 months ago
Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency
via Stack Overflow by Albertus
, 1 year ago
: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.hibernate.SessionFactory] found for dependency [org.hibernate.SessionFactory]: expected at least 1 bean which
via Stack Overflow by sirajnadwar
, 1 year ago
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.data.mongodb.core.MongoTemplate] found for dependency [org.springframework.data.mongodb.core.MongoTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'userDetailsService': Error creating bean with name 'secUserDetailsService': Unsatisfied dependency expressed through field 'userRepository': No qualifying bean of type [com.myBlog.Services.UserRepository] found for dependency [com.myBlog.Services.UserRepository]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myBlog.Services.UserRepository] found for dependency [com.myBlog.Services.UserRepository]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'secUserDetailsService': Unsatisfied dependency expressed through field 'userRepository': No qualifying bean of type [com.myBlog.Services.UserRepository] found for dependency [com.myBlog.Services.UserRepository]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myBlog.Services.UserRepository] found for dependency [com.myBlog.Services.UserRepository]: 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$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569)	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:349)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)	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)	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)	at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)	at org.mortbay.jetty.Server.doStart(Server.java:224)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)	at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)	at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)