title: JSF: /index.xhtml @12,80 value="#{LoginBean.username}": Target Unreachable, identifier 'LoginBean' resolved to null
body: <p>I'm new to JSF and can't figure out what's going on.<br>
  I keep getting this error: /index.xhtml @12,80 value="#{LoginBean.username}": Target Unreachable, identifier 'LoginBean' resolved to null</p>
  
  <p>I've isolated the problem down to this...</p>
  
  <p>index.xhtml</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"&gt;
  
      &lt;h:head&gt;
          &lt;title&gt;JSF 2.0 LoginApp&lt;/title&gt;
  &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;h2&gt;JSF 2.0 Login App&lt;/h2&gt;&lt;br/&gt;
          &lt;h:form&gt;
              Username: &lt;h:inputText id="username" value="#{LoginBean.username}"&gt;  //error here
              &lt;/h:inputText&gt; &lt;br/&gt;&lt;br/&gt;
              Password: &lt;h:inputSecret id="password" value="#{LoginBean.password}"&gt;  //and error here
              &lt;/h:inputSecret&gt; &lt;br/&gt;&lt;br/&gt;
              &lt;h:commandButton action="response.xhtml" value="Login" type="Submit"&gt;&lt;/h:commandButton&gt;
          &lt;/h:form&gt;
  
  
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>response.xhtml</p>
  
  <pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://xmlns.jcp.org/jsf/html"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Login Response&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;h:outputText id="result" escape="false" value="#{LoginBean.authenticate}"/&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>LoginBean.java</p>
  
  <pre><code>public class LoginBean {
  private String username;
  private String password;
  }
  </code></pre>