Announcement Announcement Module
Collapse
No announcement yet.
3.1.2 -> 3.2.0 issue with EntityManagerFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 3.1.2 -> 3.2.0 issue with EntityManagerFactory

    Hi,

    I have a small project where I wanted to updated from Spring 3.1.2 to 3.2.0. But after updating the libraries, my application does not start anymore. I tried to update other libraries in the project but it did not help. I am using the following artifact to create a project: https://github.com/kolorobot/spring-...tart-archetype

    After the library update I get following error:

    org.springframework.beans.factory.NoSuchBeanDefini tionException: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInC reationException: Error creating bean with name 'configureEntityManagerFactory': Requested bean is currently in creation: Is there an unresolvable circular reference?
    I had similar problem while I tried to migrate from 3.1.2 -> 3.1.3 as described here: https://github.com/kolorobot/spring-...type/issues/11

    Any feedback appreciated.

  • #2
    I solved this by putting whole configuration in the root container (similar what greenhouse application is doing). But still I don't know why it worked well before.

    Comment

    Working...
    X