title: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'registerBean' resolved to null
body: <p>I am trying to implement a sign up page on Tomcat server, but the backing bean isn't created, when I click the submit button I get the following error.</p>
  
  <blockquote>
    <p>Caused by: javax.el.PropertyNotFoundException: Target Unreachable,
    identifier 'registerBean' resolved to null    at
    org.apache.el.parser.AstValue.getTarget(AstValue.java:98)     at
    org.apache.el.parser.AstValue.getType(AstValue.java:82)   at
    org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:172)
      at
    com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)</p>
  </blockquote>
  
  <p>here is the RegisterBean.java</p>
  
  <pre><code>package com.please.beans;
  
  import java.io.Serializable;
  import javax.enterprise.context.SessionScoped;
  import javax.inject.Named;
  
  
  @Named
  @SessionScoped
  public class RegisterBean implements Serializable{
  
      private String emailAddress="3234234";
      private String userName;
      private String password;
  
      public String getEmailAddress() {
          return emailAddress;
      }
  
      public void setEmailAddress(String emailAddress) {
          this.emailAddress = emailAddress;
      }
  
      public String getUserName() {
          return userName;
      }
  
      public void setUserName(String userName) {
          this.userName = userName;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  
      public void doLogin(){
          System.out.println("Test sucessful");
  
      }
  
  }
  </code></pre>
  
  <p>Here is signup.xhtml </p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &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;Facelet Title&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          Hello from Facelets
          &lt;h:form&gt;
              &lt;h:outputText value="E-mail address" &gt;&lt;/h:outputText&gt;
              &lt;h:inputText id="emailaddress" value="#{registerBean.emailAddress}" required="true"&gt;&lt;/h:inputText&gt;
              &lt;h:outputText value="Password"&gt;&lt;/h:outputText&gt;
              &lt;h:inputSecret id="password" value="#{registerBean.password}"&gt;&lt;/h:inputSecret&gt;
  
              &lt;h:outputText value="#{registerBean.emailAddress}"&gt;&lt;/h:outputText&gt;
              &lt;h:commandButton action="#{registerBean.doLogin()}"&gt;&lt;/h:commandButton&gt;
  
          &lt;/h:form&gt;
      &lt;/h:body&gt;
  
  &lt;/html&gt;
  </code></pre>