Настройка Web Flow для использования с JSF

Я пытаюсь выполнить настройку веб-потока для использования с JSF. со следующего сайта

http://static.springsource.org/spring-webflow/docs/2.3.x/reference/html/ch13s04.html

но я получаю следующую ошибку:

Description Resource    Path    Location    Type
The prefix "si" for attribute "si:schemaLocation" associated with an element type "beans" is not bound. flowwithjsf.xml /WebFlowWithJSFIntegration/src/main/webapp/WEB-INF/spring   line 12 XML Problem

Вот мой XML, он выглядит так же, как сайт:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:webflow="http://www.springframework.org/schema/webflow-config"
    xmlns:faces="http://www.springframework.org/schema/faces"
    si:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/webflow-config
        http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd
        http://www.springframework.org/schema/faces
        http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">

    <!-- Executes flows: the central entry point into the Spring Web Flow system -->
    <webflow:flow-executor id="flowExecutor">
        <webflow:flow-execution-listeners>
            <webflow:listener ref="facesContextListener"/>
        </webflow:flow-execution-listeners>
    </webflow:flow-executor>

    <!-- The registry of executable flow definitions -->
    <webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices" base-path="/WEB-INF">
        <webflow:flow-location-pattern value="**/*-flow.xml" />
    </webflow:flow-registry>

    <!-- Configures the Spring Web Flow JSF integration -->
    <faces:flow-builder-services id="flowBuilderServices" />

    <!-- A listener maintain one FacesContext instance per Web Flow request. -->
    <bean id="facesContextListener" 
        class="org.springframework.faces.webflow.FlowFacesContextLifecycleListener" />  

</beans>

person techsjs2012    schedule 22.10.2012    source источник


Ответы (2)


попробуйте изменить si:schemaLocation="... на xsi:schemaLocation="...
Я думаю, именно поэтому у вас возникает эта ошибка

person rptmat57    schedule 22.10.2012
comment
это не помогло .. Я внес изменения, но теперь я получаю эту ошибку. stackoverflow.com/questions/13050584/ - person techsjs2012; 24.10.2012

«Чтобы использовать эту схему, включите ее в один из файлов bean-компонентов уровня инфраструктуры» 10.2 Документы Spring

person Aleksander Lewicki    schedule 22.09.2014