0 Replies Latest reply on Oct 19, 2011 6:34 AM by fremak

    @EJB property injected into a JSF 2.0 ManagedBean is null soon after an hot redeploy

    fremak Newbie

      Hi all,

      I'm using jboss as 7 and I noticed that after an hot redeploy, if I try to reload the page I was browsing

      that is served by a  jsf managedbean, I got a NullPointerException since a reference that should be injected

      thanks to the @EJB annotation to my managed bean is null.

      I handled the issue, catching the NPE and logging it properly. It only happens once, the second time the property

      is accessed everything works fine. How am I supposed to handle correctly this situation?