org.springframework.beans.factory.UnsatisfiedDependencyException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminController' defined in file [C:\Users\Kody\IdeaProjects\tomcat7-x64\webapps\library\WEB-INF\classes\libraryapp\controller\AdminController.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [libraryapp.repository.services.AdminServices]: : No qualifying bean of type [libraryapp.repository.services.AdminServices] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [libraryapp.repository.services.AdminServices] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {} at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835)[spring-context-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)[spring-context-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)[spring-web-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)[spring-web-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)[spring-web-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)[catalina.jar:7.0.72] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)[catalina.jar:7.0.72] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)[catalina.jar:7.0.72] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)[catalina.jar:7.0.72] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)[catalina.jar:7.0.72] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)[catalina.jar:7.0.72] at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1863)[catalina.jar:7.0.72] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_79] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.72] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)[na:1.7.0_79] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)[na:1.7.0_79] at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)[catalina.jar:7.0.72] at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)[catalina.jar:7.0.72] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_79] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.72] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)[na:1.7.0_79] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)[na:1.7.0_79] at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)[na:1.7.0_79] at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)[na:1.7.0_79] at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)[na:1.7.0_79] at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)[na:1.7.0_79] at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)[na:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_79] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)[na:1.7.0_79] at sun.rmi.transport.Transport$2.run(Transport.java:202)[na:1.7.0_79] at sun.rmi.transport.Transport$2.run(Transport.java:199)[na:1.7.0_79] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_79] at sun.rmi.transport.Transport.serviceCall(Transport.java:198)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)[na:1.7.0_79] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_79] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)[na:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_79] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_79] Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [libraryapp.repository.services.AdminServices] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {} at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)[spring-beans-4.2.2.RELEASE.jar:4.2.2.RELEASE] ... 62 more

Users with the same issue

marcbouvierdav
66 times, last one,
Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
Andreas Häber
6 times, last one,
serious2monkeys
20 times, last one,
217 more bugmates