Error with Management bean
<p>I'm getting the error:</p>

<pre><code>com.sun.faces.mgbean.ManagedBeanCreationException: No se puede crear el bean administrado loginBean.  
Se han encontrado los problemas siguientes:- No se encuentra el bean o la clase de propiedad com.pf.mbean.loginBean para el bean administrado loginBean.
</code></pre>

<p>In english it would be something like:</p>

<pre><code>Cannot create management bean loginBean there are found following troubles: Cannot find bean or property class com.pf.mbean.loginBean for the managment bean loginBean
</code></pre>

<p>My bean is the following:</p>

<pre><code>    package com.pf.mbean;
import java.io.Serializable;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.servlet.http.HttpSession;
import org.primefaces.context.RequestContext;

@ManagedBean(name="loginBean")
public class loginBean implements Serializable 
{
    private static final long serialVersionUID = -2152389656664659476L;
    private String nombre;
    private String clave;
    private boolean logeado = false;

    public boolean estaLogeado() 
    {
        return logeado;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getClave() {
        return clave;
    }

    public void setClave(String clave) {
        this.clave = clave;
    }

    public boolean isLogeado() {
        return logeado;
    }

    public void setLogeado(boolean logeado) {
        this.logeado = logeado;
    }

    public void login(ActionEvent actionEvent) 
    {
        RequestContext context = RequestContext.getCurrentInstance();
        FacesMessage msg = null;
        if (nombre != null &amp;&amp; nombre.equals("admin") &amp;&amp; clave != null &amp;&amp; clave.equals("admin")) 
        {
            logeado = true;
            msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Bienvenido: ", nombre);
        } 
        else 
        {
            logeado = false;
            msg = new FacesMessage(FacesMessage.SEVERITY_WARN, "Login Error","Credenciales no válidas");
        }
        FacesContext.getCurrentInstance().addMessage(null, msg);
        context.addCallbackParam("estaLogeado", logeado);
        if (logeado)
            context.addCallbackParam("view", "gauge.xhtml");
    } 

    public void logout() 
    {
        HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
        session.invalidate();
        logeado = false;
    }
}
</code></pre>

<p>And my faces-config.xml I have set the following configuration:</p>

<pre><code>&lt;managed-bean&gt;
    &lt;managed-bean-name&gt;loginBean&lt;/managed-bean-name&gt;
    &lt;managed-bean-class&gt;com.pf.mbean.loginBean&lt;/managed-bean-class&gt;
    &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt; &lt;/managed-bean&gt;
</code></pre>

<p>In my login.xhtml I'm refer to the bean at this way:</p>

<pre><code>&lt;p:inputText value="#{loginBean.nombre}" id="username"
                         required="true" label="username" /&gt;
                      &lt;h:outputLabel for="password" value="Clave:" /&gt;
                    &lt;p:password value="#{loginBean.clave}" id="password" required="true"
                       label="password" /&gt;
</code></pre>

<p>But I have no idea why the class has not been found, any idea?</p>