1 2 3 Previous Next 36 Replies Latest reply on Feb 23, 2011 9:41 AM by Ryan Slominski

    JBoss 6M2: WELD-000702 Unable to find BeanManager for org.apache.catalina.core.ApplicationContextFacade@b8c4f5

    Marcos Antonio Newbie
      Hello, everybody!

      I'm trying JBoss 6 M2 and I'm getting the following error when I try to execute my web application:

      2010-04-16 14:35:44,609 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/solicitacoes].[Faces Servlet]] (http-127.0.0.1-8080-1) Servlet.service() for servlet Faces Servlet threw exception: org.jboss.weld.exceptions.ForbiddenArgumentException: WELD-000702 Unable to find BeanManager for org.apache.catalina.core.ApplicationContextFacade@b8c4f5
           at org.jboss.weld.servlet.ServletHelper.getModuleBeanManager(ServletHelper.java:44)
           at org.jboss.weld.servlet.BeanProvider.httpSessionManager(BeanProvider.java:51)
           at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener.java:167)
           at org.jboss.weld.jsf.WeldPhaseListener.beforeRestoreView(WeldPhaseListener.java:118)
           at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:87)
           at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
           at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
           at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:318)
           at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:559)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
           at java.lang.Thread.run(Thread.java:619)

      2010-04-16 14:35:44,609 WARN  [org.apache.catalina.authenticator.FormAuthenticator] (http-127.0.0.1-8080-1) Unexpected error forwarding to login page: javax.servlet.ServletException: WELD-000702 Unable to find BeanManager for org.apache.catalina.core.ApplicationContextFacade@b8c4f5
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
           at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:318)
           at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:559)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.weld.exceptions.ForbiddenArgumentException: WELD-000702 Unable to find BeanManager for org.apache.catalina.core.ApplicationContextFacade@b8c4f5
           at org.jboss.weld.servlet.ServletHelper.getModuleBeanManager(ServletHelper.java:44)
           at org.jboss.weld.servlet.BeanProvider.httpSessionManager(BeanProvider.java:51)
           at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener.java:167)
           at org.jboss.weld.jsf.WeldPhaseListener.beforeRestoreView(WeldPhaseListener.java:118)
           at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:87)
           at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
           at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
           ... 21 more

      I'm not using Seam. Just Weld. Below are the contents of the files of my simple application:

      *solicitacoes-web.war*
      META-INF/beans.xml
      META-INF/MANIFEST.MF
      modelos/layout.xhtml
      resources/css/
      resources/imagens/
      resources/script/
      WEB-INF/jboss-web.xml
      WEB-INF/web.xml
      WEB-INF/classes/br/urca/solicitacoes/web/Pagina.class
      WEB-INF/classes/br/urca/solicitacoes/web/jndi.properties
      errologin.xhtml
      login.xhtml
      novasolicitacao.xhtml

      *solicitacoes-ejb.jar*
      META-INF/beans.xml
      META-INF/MANIFEST.MF
      META-INF/persistence.xml
      br/urca/solicitacoes/ejb/LocalizadorSetores.class
      br/urca/solicitacoes/ejb/LocalizadorSetoresBean.class
      br/urca/solicitacoes/ejb/Utils.class
      br/urca/solicitacoes/ejb/seguranca/ModuloLogin$Login$Dados.class
      br/urca/solicitacoes/ejb/seguranca/ModuloLogin$Login$SenhaSituacao.class
      br/urca/solicitacoes/ejb/seguranca/ModuloLogin$Login$Login.class
      br/urca/solicitacoes/ejb/seguranca/ModuloLogin$Login$LoginFuncionario.class
      br/urca/solicitacoes/ejb/seguranca/ModuloLogin.class

      *solicitacoes-ejbClient.jar*
      META-INF/MANIFEST.MF
      br/urca/solicitacoes/AdministracaoFuncionario.class
      br/urca/solicitacoes/CategoriaFuncionario.class
      br/urca/solicitacoes/CodigoAdministracaoFuncionario.class
      br/urca/solicitacoes/CodigoPermissaoFuncionario.class
      br/urca/solicitacoes/CodigoSetor.class
      br/urca/solicitacoes/Funcionario.class
      br/urca/solicitacoes/ILocalizadorSetores.class
      br/urca/solicitacoes/PermissaoFuncionario.class
      br/urca/solicitacoes/Setor.class
      br/urca/solicitacoes/TipoPermissao.class
      br/urca/solicitacoes/TipoSolicitacao.class
      br/urca/solicitacoes/TipoUsuario.class

      Thank you in advance.

      Marcos
        1 2 3 Previous Next