Pessoal, não estou conseguindo fazer a injection da minha camada WEB para meu ejb ocorre o seguinte erro:
segue meus fontes…
@ManagedBean(name="TesteBean")
@RequestScoped
public class TesteBean {
@EJB private ApplicationWebFacadeLocal applicationWebFacadeLocal;
@PostConstruct
public void init() {
applicationWebFacadeLocal.findAllProduto();
}
}
@Stateless
public class ApplicationWebFacadeBean implements ApplicationWebFacadeLocal,ApplicationWebFacadeRemote {
@EJB ProdutoLocal produtoLocal;
/**
* Default constructor.
*/
public ApplicationWebFacadeBean() {
}
@Override
public List<VOProduto> findAllProduto() {
return produtoLocal.findAll();
}
}
@Local
public interface ApplicationWebFacadeLocal extends ApplicationWebFacade{
}
@Remote
public interface ApplicationWebFacadeRemote extends ApplicationWebFacade {
}
public interface ApplicationWebFacade {
public List<VOProduto> findAllProduto();
}
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>Projeto</display-name>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>aristo</param-value>
</context-param>
<filter>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
</web-app>
alguém pode me ajudar e me dizer oq tem de errado ??
desde ja agradeço!