As I see, there is a feature to let cxf detect REST services automatically through "basePackages" attribute of "jaxrs:server" tag.
it supposed to scan classpath and create beans for classes with @Path(and @Provider) annotation. the problem is Spring Autowiring doesn't work for these beans, so there is no way to initialize REST services properly.
I saw the code and think found the problem. in JAXRSServerFactoryBeanDefinitionParser if you change
everything works fine. it simply tells spring to enable autowiring in bean creation.