title: Unable to configure jsf with spring in jboss
body: <p>I'm performing migration of project that uses JSP to JSF. I've created a template xhtml page that working properly. The problems began when I've started integration with Spring. As describes <a href="http://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/web-integration.html#jsf-springbeanfaceselresolver" rel="nofollow">documentation</a> and on this <a href="http://zeroturnaround.com/rebellabs/will-they-blend-how-to-use-spring-with-jsf-for-resource-bundling/" rel="nofollow">tutorial</a>, I need to modify <code>faces-config.xml</code> by setting the resolver.</p>
  
  <pre><code>&lt;application&gt;
      &lt;el-resolver&gt;org.springframework.web.jsf.el.SpringBeanFacesELResolver&lt;/el-resolver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>With this configuration I should be able to represent messages of message source bean. But, it does not happen. After setting configuration in <code>faces-config.xml</code> I'm starting to get the following error when trying to access to the frontend page:</p>
  
  <pre><code>javax.servlet.ServletException: javax/faces/context/FacesContext
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      com.accenture.flow.frontend.login.LoginFilter.doFilter(LoginFilter.java:49)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
  
  ...
  
  java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
      org.springframework.web.jsf.el.SpringBeanFacesELResolver.getWebApplicationContext(SpringBeanFacesELResolver.java:89)
      org.springframework.web.jsf.el.SpringBeanFacesELResolver.getBeanFactory(SpringBeanFacesELResolver.java:78)
      org.springframework.beans.factory.access.el.SpringBeanELResolver.getValue(SpringBeanELResolver.java:49)
  </code></pre>
  
  <p>I think that this error is very strange, because <code>FacesContext</code> class is located in <code>jsf-api.jar</code>, which was loaded when jboss server was starting. 
  I've tried to include <code>jsf-api.jar</code>and <code>jsf-impl.jar</code>in my EAR, then I've tried to import it as a module of jboss, but always getting the same error.</p>
  
  <p>Will appreciate some suggestions. </p>