title: Debugging Spring autowiring failure for ApplicationContext
body: <p>I am currently in Spring Hell in trying to determine why an @Autowired instance of ApplicationContext is not being injected or is null in the target class for some JUnit tests. The class referencing the ApplicationContext variable is annotated as a @Component and other @Component classes in the same package are being wired properly with different variables. I have tried adding log4j debugging but I end up with a ridiculous amount of output that is not even possible to wade through.</p>
  
  <p>I am wondering if anyone can point me in the direction of the Spring package and classes that do the autoscanning so that I can try to step through the Spring code and see why the class is silently ignored. I have not found a good entry point to start the debugging effort and I am really tired of trial and error in trying to resolve this.</p>
  
  <p>Any suggestions appreciated.</p>