title: @PostConstruct didn't get called by JSF if ManagedBean is inside jar library
body: <p>I'm running with the following problem.</p>
  
  <p>I have a few Managed Beans that are shared between, at this moment, two JSF applications. As I don't want to copy and paste the code in the two (more in the coming future) I've put this shared managed beans inside a JAR library. I've followed this blog: <a href="http://jsflive.wordpress.com/2011/03/24/custom-component-library/" rel="noreferrer">http://jsflive.wordpress.com/2011/03/24/custom-component-library/</a></p>
  
  <p>Well, even if I put the faces-config.xml inside JAR/META-INF/ the @ManagedBean and @ViewScoped didn't work. I couldn't realise why, but if I register the beans in faces-config.xml (JAR ones, not WAR ones) this problem goes away.</p>
  
  <p>I could live with this, but for my surprise the @PostConstruct annotation didn't get called for this managed beans inside JAR library. I don't get any error, warning or else. I suppose that the beans are getting loaded, but the their annotations aren't being processed.</p>
  
  <p>Have anyone faced this?</p>
  
  <p>My environment:
  Glassfish 3.1.1 (build 12)
  JSF 2.1.3</p>
  
  <p>Thanks in advance.</p>