title: DispatcherServlet don't mapping request
body: <p>I'm developing a project with spring in(spring mvc+spring webflow)+jsf 2+JPA+Hibernate, and have problem with the request with mapping spring mvc (DispatcherServlet)</p>
  
  <p>My web.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  id="WebApp_ID" version="3.0"&gt;
  
  &lt;display-name&gt;AirTour&lt;/display-name&gt;
  
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;!-- SPRING --&gt;
  
  &lt;!-- El contexloaderlistener es usado para iniciar el contexto de spring (sin mvc) para usar hibernete, jpa.... --&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;
          /WEB-INF/conf/applicationContext.xml
       &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  
  &lt;!-- SPRING MVC &amp; WEBFLOW --&gt;
  &lt;!-- Este servlet es utiizado para el contexto web de spring, es decir para la parte web de spring mvc --&gt;   
   &lt;servlet&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/conf/webflow-config.xml&lt;/param-value&gt;
  &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;!-- Este servlet se utilizara cuando se utilicen rutas /app/* --&gt;
   &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/app/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  
  
  &lt;!-- JSF --&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
      &lt;param-value&gt;Development&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
          &lt;param-value&gt;.xhtml&lt;/param-value&gt;
  &lt;/context-param&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;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I understand for this web.xml that the request terminate  with .xhtml are managed by jsf servlet, and the request with  the pattern /app/*, are managed by dispatcherSevler (spring mvc). is well?</p>
  
  <p>My index.xhtml</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"&gt;
  
  
  &lt;h:body&gt;
  
  &lt;h:dataTable value="#{gestorUsuarios.listar()}" var="usuarios"&gt;
      &lt;h:column&gt;
          &lt;f:facet name="header"&gt;
              &lt;h:outputText value="Nombre" /&gt;
          &lt;/f:facet&gt;
          &lt;h:outputText value="#{usuarios.nombre}" /&gt;
      &lt;/h:column&gt;
      &lt;h:column&gt;
          &lt;f:facet name="header"&gt;
              &lt;h:outputText value="Apellidos" /&gt;
          &lt;/f:facet&gt;
          &lt;h:outputText value="#{usuarios.apellidos}" /&gt;
      &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  &lt;h:link value="Registro" outcome="app/registro" /&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But when the views is render, the link "Registro" don't show because,  has been associated with a navigation case.</p>
  
  <p>My webflow-config.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  
  &lt;faces:resources /&gt;
  
  
  &lt;!--
      Maps request paths to flows in the flowRegistry; e.g. a path of
      /registration-flow looks for a flow with id "registration-flow"
  --&gt;
  &lt;bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"&gt;
      &lt;property name="flowRegistry" ref="flowRegistry" /&gt;
  &lt;/bean&gt;
  
  
  &lt;!-- Gestiona las solicitudes provenientes de un flujo y elas procesa.
       Es la conexión entre el dispacherServlet y webflow. Esta conectado con un 
       ejecutor de un flujo en aquellos fljos para los que se gestinan solicitudes
   --&gt;
  &lt;bean class="org.springframework.faces.webflow.JsfFlowHandlerAdapter"&gt;
      &lt;property name="flowExecutor" ref="flowExecutor" /&gt;
  &lt;/bean&gt;
  
  
  
  &lt;flow:flow-executor id="flowExecutor"&gt;
      &lt;flow:flow-execution-listeners&gt;
          &lt;flow:listener ref="facesContextListener" /&gt;
      &lt;/flow:flow-execution-listeners&gt;
  &lt;/flow:flow-executor&gt;
  
  
  &lt;flow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices"     base-path="/WEB-INF/flows"&gt;
      &lt;flow:flow-location-pattern value="/*-flow.xml" /&gt;
  &lt;/flow:flow-registry&gt;
  
  
  &lt;!-- Equivalente a org.springframework.webflow.mvc.servlet.FlowHandlerAdapter, 
      la gestiona solicitudes procedentes de un flujo y las procesas --&gt;
  &lt;bean class="org.springframework.faces.webflow.JsfFlowHandlerAdapter"&gt;
      &lt;property name="flowExecutor" ref="flowExecutor" /&gt;
  &lt;/bean&gt;
  
  &lt;faces:flow-builder-services id="flowBuilderServices" development="true" /&gt;
  
  &lt;bean id="facesContextListener"  class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>My project. Image</p>
  
  <p><a href="http://i.stack.imgur.com/OLhDd.png" rel="nofollow">http://i.stack.imgur.com/OLhDd.png</a></p>
  
  <p>Do i need a viewResolver in spring mvc?</p>