title: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfig'
body: <p>I am having this error whenever I run my Spring MVC App.  I have been trying to integrate Spring Security but have been unsuccessful at injecting my custom AuthenticationSuccessHandler and so I get the following error pertaining to the application context:</p>
  
  <pre><code>2017-11-07 16:05:03 ERROR ContextLoader:350 - Context initialization failed
  org.springframework.beans.factory.UnsatisfiedDependencyException: \
    Error creating bean with name 'webSecurityConfig': \
      Unsatisfied dependency expressed through field 'auth'; \
        nested exception is
          org.springframework.beans.factory.NoSuchBeanDefinitionException: \
            No qualifying bean of type \
              'org.springframework.security.web.authentication.AuthenticationSuccessHandler' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
      at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
  </code></pre>
  
  <p>I have my project on GitHub: <a href="https://github.com/riveraadrian571/Staging-Management-System-Modifed-.git" rel="nofollow noreferrer">https://github.com/riveraadrian571/Staging-Management-System-Modifed-.git</a> .  I am using an oracle database and in pom.xml file am using a jdbc driver that I have in my local repository so you may want to change that. I am also using tomcat server to run the app. Thanks in advance.</p>