5 Replies Latest reply on Nov 15, 2011 3:58 PM by Sverker Abrahamsson

    BeanManagerUnavailableException

    Sverker Abrahamsson Newbie

      Hi,
      I'm working on an application which use the combination JBoss AS7, Liferay, JBoss portlet bridge, Weld, Richfaces and certain modules from Seam 3. After adding the seam-faces module I get the following error and stacktrace:




      03:42:09,427 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/taxijournalen-portlets-1.0-SNAPSHOT].[taxijournalentaximanagementportlet Servlet]] (http--127.0.0.1-8080-1) Servlet.service() for servlet taxijournalentaximanagementportlet Servlet threw exception: java.lang.IllegalStateException: Could not wrap ExternalContext
              at org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:47) [seam-faces-3.1.0.Beta4.jar:]
              at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
              at org.richfaces.context.FileUploadFacesContextFactory.getFacesContext(FileUploadFacesContextFactory.java:143) [richfaces-components-ui-4.1.0-20111104.110358-193.jar:]
              at org.jboss.portletbridge.context.PortletFacesContextFactoryImpl.getFacesContext(PortletFacesContextFactoryImpl.java:22) [portletbridge-impl-3.0.0.lime-SNAPSHOT.jar:]
              at com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:121) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
              at org.jboss.portletbridge.AjaxPortletBridge.createFacesContext(AjaxPortletBridge.java:1180) [portletbridge-impl-3.0.0.lime-SNAPSHOT.jar:]
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:629) [portletbridge-impl-3.0.0.lime-SNAPSHOT.jar:]
              at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:567) [portletbridge-api-3.0.0.lime-SNAPSHOT.jar:]
              at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:475) [portletbridge-api-3.0.0.lime-SNAPSHOT.jar:]
      
              at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) [portlet.jar:private-2011/04/13-23:33:42]
              at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:446) [portletbridge-api-3.0.0.lime-SNAPSHOT.jar:]
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) [portlet.jar:private-2011/04/13-23:33:42]
      
      --- Cut ----
      
      Caused by: org.jboss.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers:
      org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider(20), org.jboss.solder.beanManager.DefaultJndiBeanManagerProvide
      r(11), org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
              at org.jboss.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:88) [solder-api-3.1.0.Beta3.jar:]
              at org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:39) [seam-
      faces-3.1.0.Beta4.jar:]
              ... 184 more
      
      



      Please advice on how this issue can be solved
      /Sverker