Amigos,
Estou tentando logar numa aplicação que usa ejb remote e esta dando esse erro:
Eu fui ver…e a exception ocorre nesse código:
public ControleAcessoDelegate() throws DelegateException{
try{
stub = (ControleAcesso) ServiceLocator.getInstance().getEJBRemoteStatefull(ControleAcessoBean.class.getSimpleName());
}catch(ServiceLocatorException e){
System.out.println("Erro ControleAcessoDelegate: "+e);
logger.error("BAE:: Erro ao executar ServiceLocator.getInstance().getEJBRemoteStatefull(ControleAcessoBean)");
throw new DelegateException(e);
}
}
E o getEJBRemoteStatefull é:
public Object getEJBRemoteStatefull(String jndiHomeName) throws ServiceLocatorException {
Object ejb = null;
try {
System.out.println("jndiHomeName: "+jndiHomeName);
ejb = ic.lookup("BAE/" + jndiHomeName + "/remote");
} catch (NamingException ne) {
throw new ServiceLocatorException(ne);
} catch (Exception e) {
throw new ServiceLocatorException(e);
}
return ejb;
}
Alguém pode me ajudar?