WELD-001524: Unable to load proxy class for bean Managed Bean

0

I have an error when trying to deploy my application with glassfish v5 , netbeans 8.2 and jsf 2.2

I here attach the error :

  

Severe: Exception while invoking class com.sun.enterprise.web.WebApplication start method   java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Managed Bean [class org.glassfish.soteria.mechanisms.CustomFormAuthenticationMechanism] with qualifiers [@Any @Default] with class class org.glassfish.soteria.mechanisms.CustomFormAuthenticationMechanism using classloader org.glassfish.soteria.javax.security .enterprise [155]

I add the code where I declare the EJB:

@Named
@ViewScoped
public class EmpresasController implements Serializable{

@EJB
private EmpresasFacadeLocal empresaEJB;   
@Inject
private Empresas empresa;

private List<Empresas> listaEmpresas;


@PostConstruct
public void init(){
    //empresa = new Empresas();
    listaEmpresas = empresaEJB.findAll();
}

I enclose my CompanyFacadeLocal:

@Local
public interface EmpresasFacadeLocal {

void create(Empresas empresas);

void edit(Empresas empresas);

void remove(Empresas empresas);

Empresas find(Object id);

List<Empresas> findAll();

List<Empresas> findRange(int[] range);

int count();

}

And here my EmpresaFacade:

@Stateless
 public class EmpresasFacade extends AbstractFacade<Empresas> implements            EmpresasFacadeLocal {

@PersistenceContext(unitName = "****PU")
private EntityManager em;

@Override
protected EntityManager getEntityManager() {
    return em;
}

public EmpresasFacade() {
    super(Empresas.class);
}

}

(The unit name I put it with * for privacy issues)

    
asked by javiLC 27.08.2018 в 08:55
source

0 answers