title: How to remove NullPointerException from JSR 330 Spring application
body: <p>I am implementing Spring+JSF application following the guidlines of <a href="http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/" rel="nofollow">http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/</a> but I am using the latest Spring version (i.e. 3.x, it already contains the JSR 330 implementation, according to the documentation, so this should not be an issue) and my own classes, that is the difference from the mentioned example.</p>
  
  <p>I am stuck with <code>NullPointerException</code> that indicates that the bean (that acts as JSF managed) bean has not received injection of the instance of Spring bean. All the beans use JSR 330 annotations at appropriate places (<code>@Named</code>, <code>@Inject</code>) and the interfaces of the beans and the variables (under <code>@Inject</code> annotation) follow the usual naming patterns...</p>
  
  <p>So - how to debug this situation. E.g. is there way to see all the beans that sit into the Spring application context. E.g. so we can determine that the Spring context is not initialized appropriately. Maybe there are other methods how to see what is happening in app (debug injection)?</p>