title: Target Unreachable, identifier resolved to null in JSF 2.2
body: <p>I have a problem with JSF 2.2 and CDI, my managerbean is not solved and this error appear</p>
  
  <blockquote>
    <p>"value="#{userBean.user.name}": Target Unreachable, identifier 'userBean' resolved to null"</p>
  </blockquote>
  
  <p>This is my manager bean.
  </p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class UserBean implements Serializable {
      private User user;
  
      public void setUser(user) {
          this.user = user;
      }
      ...
  }
  </code></pre>
  
  <p>My view is:</p>
  
  <pre><code>&lt;h:form id="login-form"&gt;
      &lt;h:outputText value="User"/&gt;
      &lt;h:inputText value="#{userBean.user.name}" id="username"/&gt;
  
      &lt;h:outputText value="Senha"/&gt;
      &lt;h:inputSecret value="#{userBean.user.password}" id="pasword"/&gt;
  
      &lt;h:commandButton id="button" value="Login" action="#{userBean.login}"/&gt;
  
      &lt;h:messages /&gt;
  &lt;/h:form&gt;
  </code></pre>