title: Using PersistentFacesServlet and FacesServlet in the same war
body: <p>So I posted this question in the icefaces forum but didn't get much love, so I thought I would try here.</p>
  
  <p>In my webapp I am using IceFaces for the bulk of the application but I want to use regular JSF for a mobile piece of the solution. I can't seem to get the IceFaces Servlet to 'let go' and let it concede to the regular FacesServlet. partial web.xml is below...</p>
  
  <p>I have tried two different approaches 1) naming the mobile file as <strong>fileName.mobile</strong> and then also just trying <a href="http://myURL/AppName/mobile/" rel="nofollow noreferrer">http://myURL/AppName/mobile/</a> in hopes it would direct to the mobile path.</p>
  
  <p>An interesting behavior I get when I just do <a href="http://myURL/AppName/fileName.mobile" rel="nofollow noreferrer">http://myURL/AppName/fileName.mobile</a> is that it receives an error
  "javax.faces.FacesException: Problem in renderResponse: /<strong>fileName.xhtml</strong> Not Found in ExternalContext as a Resource
  at com.icesoft.faces.context.View.servePage(View.java:136)
  " </p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;Persistent Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Persistent Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Persistent Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.iface&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Persistent Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/xmlhttp/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Persistent Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.mobile&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/mobile/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>Any thoughts?</p>