1 Reply Latest reply on Jul 21, 2010 11:15 AM by Pete Muir

    Seam Faces integration at Tomcat 7

    Adriano de Almeida Newbie

      Hi,


      I'm having some issues related to the Seam Faces integration on a Tomcat Environment. I've already tried on version 6 and 7, and I'm stuck at the same point at both versions.


      java.lang.IllegalStateException: Could not wrap ExternalContext
           org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:35)
           com.sun.faces.context.InjectionExternalContextFactory.getExternalContext(InjectionExternalContextFactory.java:109)
           com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:302)
           org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
      cause mère
      
      java.lang.IllegalStateException: Could not locate a BeanManager from the providers org.jboss.seam.faces.beanManager.FacesServletContextBeanManagerProvider(20), org.jboss.weld.extensions.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.weld.extensions.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.weld.extensions.beanManager.JBossJndiBeanManagerProvider(10), org.jboss.weld.extensions.beanManager.JBossJndiBeanManagerProvider(10)
           org.jboss.weld.extensions.beanManager.BeanManagerAware.getBeanManager(BeanManagerAware.java:88)
           org.jboss.weld.extensions.beanManager.BeanManagerAccessor.getManager(BeanManagerAccessor.java:33)
           org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:26)
           com.sun.faces.context.InjectionExternalContextFactory.getExternalContext(InjectionExternalContextFactory.java:109)
           com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:302)
           org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
      




      My faces-config.xml has both listeners declared, the one from weld and the seam faces integration


      <listener>
          <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
      </listener>
           
      <listener>
          <listener-class>org.jboss.seam.faces.beanManager.BeanManagerServletContextListener</listener-class>
      </listener>
      



      As I'm not using maven, here are the jars versions I'm using:




      • seam-faces-3.0.0.Alpha3

      • seam-faces-api-3.0.0.Alpha3

      • seam-international-3.0.0.Alpha1

      • seam-international-3.0.1.Alpha1

      • weld-extensions-1.0.0.Alpha2





      Does anyone have any thoughts? If you need any other information just let me know.


      Cheers,
      Adriano