Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 11
Eclipse IDE Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sweet.

Mark
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic