У меня такая ошибка при работе с webflow 2.3.0.RELEASE и richfaces 4.0.0.Final в jboss 7.0.1.FINAL:
12:16:46,989 INFO [stdout] (поток службы MSC 1-7) 20.09.2011 12:16:46,987 [поток службы MSC 1-7] ERROR (FrameworkServlet.java:314) � Ошибка инициализации контекста 12 :16:46,989 ИНФОРМАЦИЯ [stdout] (поток службы MSC 1-7) org.springframework.beans.factory.BeanCreationException: ошибка при создании компонента с именем 'flowExecutor': невозможно создать внутренний компонент '(внутренний компонент)' типа [org. springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] при установке свойства bean-компонента 'flowExecutionListenerLoader'; вложенным исключением является org.springframework.beans.factory.BeanCreationException: ошибка при создании компонента с именем «(внутренний компонент) № 1»: не удается разрешить ссылку на компонент «jpaFlowExecutionListener» при установке свойства компонента «слушатели»; вложенным исключением является org.springframework.beans.factory.BeanCreationException: ошибка при создании bean-компонента с именем «jpaFlowExecutionListener», определенным в ресурсе ServletContext [/WEB-INF/spring/transportes-webflow.xml]: не удается разрешить ссылку на bean-компонент «entityManagerFactory» при настройке аргумент конструктора; вложенным исключением является org.springframework.beans.factory.NoSuchBeanDefinitionException: компонент с именем 'entityManagerFactory' не определен.
Ну, я полагаю, что ошибка связана с тем, что у меня есть конфигурация Hibernate в META-INF, например:
- META-INF/spring/spring-master.xml
- META-INF/spring/spring-hibernate.xml
- META-INF/весна/весна-datasource.xml
- META-INF/весна/jdbc.properties
и конфигурация веб-потока в WEB-INF: WEB-INF/spring/transportes-webflow.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:context="http://www.springframework.org/schema/context"
xmlns:faces="http://www.springframework.org/schema/faces"
xsi: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.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!--Flow executor for Jpa integration and security -->
<webflow:flow-executor id="flowExecutor">
<webflow:flow-execution-listeners>
<webflow:listener ref="securityFlowExecutionListener"/>
<webflow:listener ref="jpaFlowExecutionListener"/>
</webflow:flow-execution-listeners>
</webflow:flow-executor>
<!-- Flow register -->
<webflow:flow-registry flow-builder-services="facesFlowBuilderServices"
id="flowRegistry" base-path="/WEB-INF/flows/">
<!-- <webflow:flow-location path="/welcome/welcome.xml"/> -->
<webflow:flow-location-pattern value="/**/*-flow.xml"/>
</webflow:flow-registry>
<faces:flow-builder-services id="facesFlowBuilderServices"
enable-managed-beans="true" development="true"/>
<!-- For use interface flow controller -->
<bean
class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<property name="flowExecutor" ref="flowExecutor"/>
<!-- need to tell Spring Web Flow about how to handle Ajax requests. -->
<property name="ajaxHandler">
<bean class="org.springframework.faces.richfaces.RichFacesAjaxHandler" />
</property>
</bean>
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="flowRegistry" ref="flowRegistry"/>
<property name="defaultHandler">
<bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
</property>
</bean>
<!-- LISTENER'S for SECURITY and JPA-->
<bean id="securityFlowExecutionListener"
class="org.springframework.webflow.security.SecurityFlowExecutionListener"/>
<bean id="jpaFlowExecutionListener"
class="org.springframework.webflow.persistence.HibernateFlowExecutionListener">
<constructor-arg ref="entityManagerFactory"/>
<constructor-arg ref="transactionManager"/>
</bean>
<!-- Facelets config -->
<bean id="faceletsViewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.faces.mvc.JsfView"/>
<property name="prefix" value="/WEB-INF/flows/"/>
<property name="suffix" value=".xhtml"/>
</bean>
This is my full prompt for downloaded:
https://rapidshare.com/files/335929555/prompt-jboss.zip
Благодарность