This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException WebFlow

 
Ricardo Llontop
Greenhorn
Posts: 11
Eclipse IDE Linux Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a error like this working with webflow 2.3.0.RELEASE and richfaces 4.0.0.Final in jboss 7.0.1.FINAL:
12:16:46,989 INFO [stdout] (MSC service thread 1-7) 2011-09-20 12:16:46,987 [MSC service thread 1-7] ERROR (FrameworkServlet.java:314) � Context initialization failed 12:16:46,989 INFO [stdout] (MSC service thread 1-7) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1':Cannot resolve reference to bean 'jpaFlowExecutionListener' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaFlowExecutionListener' defined in ServletContext resource [/WEB-INF/spring/transportes-webflow.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined.

Well I suppose that the error is because I have the Hibernate configuracion in META-INF like this:
META-INF/spring/spring-master.xml
META-INF/spring/spring-hibernate.xml
META-INF/spring/spring-datasource.xml
META-INF/spring/jdbc.properties

and the webflow configuration in WEB-INF:
WEB-INF/spring/transportes-webflow.xml
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get a Spring exception, the best way to read it is to scroll to the bottom and work your way up looking for the first caused by. That will give you your actual real problem. While you did not post your entire stack trace here for us to scroll to the bottom.

I can guess that near the bottom it says in the root caused by

No bean named 'entityManagerFactory' is defined.

Mark
 
Ricardo Llontop
Greenhorn
Posts: 11
Eclipse IDE Linux Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Spritzler wrote:When you get a Spring exception, the best way to read it is to scroll to the bottom and work your way up looking for the first caused by. That will give you your actual real problem. While you did not post your entire stack trace here for us to scroll to the bottom.

I can guess that near the bottom it says in the root caused by

No bean named 'entityManagerFactory' is defined.

Mark


Well I know this, this is my promt in rapishare, because I can't attached file txt or zip here.
https://rapidshare.com/files/335929555/prompt-jboss.zip
Everything work fine I have only that error.
Thanks.
 
Ricardo Llontop
Greenhorn
Posts: 11
Eclipse IDE Linux Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved,
the error is in transportes-webflow.xml

constructor-arg ref="entityManagerFactory", is for jpa orm, I use hibernate (org.springframework.orm.hibernate3.HibernateTransactionManager), with sessionFactory, only change this and work:

sorry for the problems, thkns.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic