title: Bean not being found
body: <p>I am trying to learn JavaEE; after following a tutorial I am unable to reach a bean that is clearly annotated correctly:</p>
  
  <pre><code>@Named("editPhotoBean")
  @SessionScoped
  public class EditPhoto implements Serializable `
  </code></pre>
  
  <p>calling a bean method using jsf tag: </p>
  
  <pre><code>`&lt;h:inputFile 
      id="file" 
      value="#{editPhotoBean.uploadedPart}"&gt; 
   &lt;f:validator validatorId="imageUploadValidator" /&gt;
   &lt;/h:inputFile&gt;`
  </code></pre>
  
  <p>I get: </p>
  
  <blockquote>
    <p>javax.el.PropertyNotFoundException: /upload.xhtml @30,63
    value="#{editPhotoBean.uploadedPart}": Target Unreachable, identifier
    'editPhotoBean' resolved to null</p>
  </blockquote>
  
  <p>formerly I had it as: </p>
  
  <pre><code>@Named(value = "editPhotoBean")
  </code></pre>
  
  <p>Something else that is telling is the fact that properties on other beans show up as unfound by netbeans: </p>
  
  <pre><code>            &lt;tr&gt;&lt;td align='center'&gt;
              &lt;label&gt;
                  &lt;c:if test="#{photoBook.currentPhoto.public}"&gt;
                      Everyone can see this photo
                  &lt;/c:if&gt;
                  &lt;c:if test="#{not photoBook.currentPhoto.public}"&gt;
                      Only you can see this photo
                  &lt;/c:if&gt;
  
              &lt;/label&gt;
          &lt;/td&gt;&lt;/tr&gt; 
          &lt;tr&gt;&lt;td align='center'&gt;
                  &lt;label&gt;Uploaded as #{photoBook.currentPhoto.filename}&lt;/label&gt;
  </code></pre>
  
  <p>though that bean is marked:</p>
  
  <pre><code>@Named("photoBook")
  @SessionScoped
   public class PhotoBook implements Serializable { 
  </code></pre>
  
  <p>I suspect it has something to do with my libraries, everything else has worked but I looked and realized that I don't have any JAvaEE libraries installed except what comes with glassfish: </p>
  
  <p><a href="https://i.stack.imgur.com/uim3C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uim3C.png" alt="enter image description here"></a></p>
  
  <p>any hints on what to install ? || is it something else ?
  Thanks!</p>