exception
javax.servlet.ServletException: Um erro ocorreu ao realizar a injeção de recurso no bean gerenciado resultadoBean
root cause
com.sun.faces.mgbean.ManagedBeanCreationException: Um erro ocorreu ao realizar a injeção de recurso no bean gerenciado resultadoBean
root cause
com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=br.com.manegedbeans.ResultadoBean/repositorio,Remote 3.x interface =br.com.infra.modelo.RepositorioSorteios,ejb-link=null,lookup=null,mappedName=,jndi-name=br.com.infra.modelo.RepositorioSorteios,refType=Session into class br.com.manegedbeans.ResultadoBean
root cause
com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=br.com.manegedbeans.ResultadoBean/repositorio,Remote 3.x interface =br.com.infra.modelo.RepositorioSorteios,ejb-link=null,lookup=null,mappedName=,jndi-name=br.com.infra.modelo.RepositorioSorteios,refType=Session into class br.com.manegedbeans.ResultadoBean
root cause
javax.naming.NamingException: Lookup failed for ‘java:comp/env/br.com.manegedbeans.ResultadoBean/repositorio’ in SerialContext [Root exception is javax.naming.NamingException: Exception resolving Ejb for ‘Remote ejb-ref name=br.com.manegedbeans.ResultadoBean/repositorio,Remote 3.x interface =br.com.infra.modelo.RepositorioSorteios,ejb-link=null,lookup=null,mappedName=,jndi-name=br.com.infra.modelo.RepositorioSorteios,refType=Session’ . Actual (possibly internal) Remote JNDI name used for lookup is ‘br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios’ [Root exception is javax.naming.NamingException: Lookup failed for ‘br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios’ in SerialContext [Root exception is javax.naming.NameNotFoundException: br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios not found]]]
root cause
javax.naming.NamingException: Exception resolving Ejb for ‘Remote ejb-ref name=br.com.manegedbeans.ResultadoBean/repositorio,Remote 3.x interface =br.com.infra.modelo.RepositorioSorteios,ejb-link=null,lookup=null,mappedName=,jndi-name=br.com.infra.modelo.RepositorioSorteios,refType=Session’ . Actual (possibly internal) Remote JNDI name used for lookup is ‘br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios’ [Root exception is javax.naming.NamingException: Lookup failed for ‘br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios’ in SerialContext [Root exception is javax.naming.NameNotFoundException: br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios not found]]
root cause
javax.naming.NamingException: Lookup failed for ‘br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios’ in SerialContext [Root exception is javax.naming.NameNotFoundException: br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios not found]
root cause
javax.naming.NameNotFoundException: br.com.infra.modelo.RepositorioSorteios#br.com.infra.modelo.RepositorioSorteios not found.
Alguem sabe a razão ? Estou fazendo um exemplo simples… só uma entidade mapeada e um repositório.