Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3447

Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.3
    • 2.4, 2.3.4
    • Core
    • None

    Description

      Frameworks being used: cxf with jax-rs 2.3.3, and spring 3.0.2
      App Server: Tomcat 6.0

      Issue occurs when using Spring AOP with AspectJ pointcuts

      2011-04-09 00:31:31,673 [qtp12141980-21] ERROR DefaultListableBeanFactory - Destroy method on bean with name '(inner bean)#1' threw an exception
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'cxf' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?

      ===

      able to resolve this by reversing the expressions (in the local build) in the following statement of BusExtensionPostProcessor::postProcessBeforeInitialization

      [before the change]
      null != getBus() && bean instanceof BusExtension

      [after the change]
      bean instanceof BusExtension && null != getBus()

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            apachecontrib.k Srini K
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: