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()