Results 1 to 4 of 4

Thread: upgrade from 1.2.8 to 2.5.6

  1. #1
    Join Date
    Nov 2006
    Posts
    7

    Default upgrade from 1.2.8 to 2.5.6

    Last week I tried to upgrade an application from Spring 1.2.8 to 2.5.6.

    After added the 2.5.6 Spring libs to the project and restarting the application I was welcomed with a bunch of exceptions: bean dependency exceptions, bean creation in progress, .... Seems Spring 2.5.6 does not like the order in which the beans were declared in this project. It worked correctly with Spring 1.2.8 though.

    What has changed in the dependency mechanism from 1.2.8 to 2.x.x? Any help greatly appreciated, I hope I do not have to reorder the beans in the several application context XML files this project has.

  2. #2
    Join Date
    Jan 2006
    Location
    Seattle, Washington
    Posts
    467

    Default

    The order of beans in the Spring config means nothing.

    How about you be more specific about the structure of your application, including excerpts from your Spring configs, along with the actual detailed error messages you're getting?

  3. #3
    Join Date
    Nov 2006
    Posts
    7

    Default

    hi,


    see below:

    nested exception is org.springframework.beans.factory.BeanCurrentlyInC reationException: Error creating bean with name 'generateDocumentInterceptor': Requested bean is currently in creation: Is there an unresolvable circular reference?

  4. #4
    Join Date
    Nov 2006
    Posts
    7

    Default

    hi,


    seems that this interceptor is a org.springframework.aop.support.NameMatchMethodPoi ntcutAdvisor. It had singleton="false" which I changed to scope="prototype" after replacing the old DTD with the new XSD. After removing the prototype scope everything seems to work fine. Any ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •