Today in the WS and spring integration, unfortunately encountered this problem, Baidu for a long time, unexpectedly no one encountered this problem, and then Google a bit, are encountering this problem ... In See an article mentioned cxf.xml, so I decisively open this configuration file to look at, there is a very important place:
<bean id="cxf"class="Org.apache.cxf.bus.spring.SpringBus "destroy-method="shutdown"/>
Oh, so this bean is defined here, it should be that this file has not been imported into our spring file. After a closer look, I found that my WS's Spring configuration file was not scanned ==!.
It seems that the high version of spring will automatically load these files. If it is not loaded, then we will load it manually:
<!--some core configurations of CXF- <import resource="classpath:meta-inf/cxf/cxf.xml" / > <import resource="classpath:meta-inf/cxf/cxf-extension-soap.xml" /> <import resource="classpath:meta-inf/cxf/cxf-servlet.xml"
One of the problems we encountered was in ' Cxf.xml '.
CXF and Spring integration problems: No bean named ' CXF ' is defined