1 Reply Latest reply on Apr 15, 2010 10:18 AM by Stan Silvert

    @PostConstruct Not working with JBoss 5.1.0

    Ganesh Podaralla Newbie
      Hi,

       

      I am using JSF1.2 with JBoss 5.1.0-GA server. I am trying to use @PostConstruct on one of my methods but it is not being invoked. I verified that the web-app servlet version is 2.5 and the faces-config JSF version is 1.2. Even I tried using the context-param with JBoss InjectionProvider (JBossInjectionProvider) and Tomcat Injection Provider (WebContainerInjectionProvider) as below.


      <context-param>
      <param-name>com.sun.faces.injectionProvider</param-name>
      <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
      </context-param>

       


      <context-param>
      <param-name>com.sun.faces.injectionProvider</param-name>
      <param-value>com.sun.faces.vendor.WebContainerInjectionProvider</param-value>
      </context-param>

      Please let me know if you have any ideas to fix this issue.
      Thanks,
      Ganesh